Background removal with No Code & Bubble.io
Learn how to remove backgrounds from images in your Bubble.io app effortlessly with this step-by-step guide, showcasing the power of no-code development.
Remove backgrounds instantly: Learn how to integrate a powerful API connector for seamless image editing in your Bubble app.
Custom states magic: Discover how to use custom states to display processed images without saving to your database, maximizing efficiency.
Streamline your workflow: Create a simple yet powerful image processing page with just a few elements and API calls.
Removing Background Images with No Code and Bubble.io
Here's how you can remove the background from your images in your Bubble app just like this website here and I'm going to show you how I've built this simple page and API connection to remove the green background from this image of me. One of the images that we use on our videos and if you want to see more videos like this then click the link down in the description because we've got hundreds of Bubble's tutorial videos just like this one but I'm going to dive right in now into the API here.
Setting Up the API Connection
So I've signed up for an account with these guys and I then I've gone into the API documentation and I've looked for their image file, C, URL and I've taken what they've got written here and translated that into the Bubble API connector. So I've added the Bubble API connector, I've added the name remove.bg and then I have to authenticate because it's like a password it's how you know if I used the service a lot they'd want to know who to bill which account so I add the private key in header it's got this name and here's my key value which I'll be deleting as soon as I publish this video and then I go ahead and I add an API call and so I can name this anything I like I've said upload and process I've set it as an action and the data type as image.
Understanding API Response and Form Data
Now in 99% of our demonstrations with a Bubble API connector this is set to JSON because we get a load of text data in JSON code back but actually this API in some ways is nice and clean it just responds back with the processed image. Then I need form data again most of the time we use JSON but in this case we use form data and then I have the parameters image file and I set that to be send file.
API Documentation and Implementation
Now I've got all of that from this documentation here which is here's the end point and then I've actually not added in the size parameter doesn't need it but we can see that this goes in the header just explain that and then we have image and then the file. Now you can do this two different ways you could just point at an image URL and you could do that just as easily with Bubble but I've gone with image file because the image might not be a public image if you've got the right privacy rules set up around uploading files and images and attach files in your privacy rules then your images even if you were to direct links them may not be accessible and so this third party service wouldn't be able to pick the image up from the URL so we're actually just sending the file instead we're not saying look here here's the file we're saying here's the file okay then let's dive in a little bit deeper I had to initialize it by uploading a file here and I've got no errors and so it's successfully initialized that means that I can go onto my page and my page is called image demo and on the page I have a custom state that I've called processed image and it's of type image because I want to be able to display the results by adding an image element to my page and saying go to my custom state and show the process image it's just my way of recalling it without necessarily saving the image to my database.
Image Processing and Storage
Now the image is not saved to a field in my database but the image will take up space in the file manager of my Bubble app so I am still taking up space of my Bubble app quota by doing this to the image I've then got an image uploader and I've got a button so let's have a look when the button is clicked I run my API call now I see this in here and if I wanted to find it again I could go into plugins and search for my remove background and so it's remove background upload and process and that's just because that's exactly what I've named it here okay so yours may be different then I say take the result of step one and set the state so I'm populating the custom state with the image and the end of all of that and it literally just takes seconds to do is a rather quick and impressive background removal tool built completely with no code using the background removal API and combining that with my Bubble app.
The best way to learn Bubble.io?
Start building with total confidence
No more delays. With 30+ hours of expert content, you’ll have the insights needed to build effectively.
Find every solution in one place
No more searching across platforms for tutorials. Our bundle has everything you need, with 500+ videos covering every feature and technique.
Dive deep into every detail
Get beyond the basics with comprehensive, in-depth courses & no code tutorials that empower you to create a feature-rich, professional app.

Frequently Asked Questions
Find answers to common questions about our courses, tutorials & content.
No. Our Beginner Essentials course and AI No-Code Coach are designed for total newcomers. You’ll learn Bubble.io step by step - no coding required.
Simply type your question in plain English, and our AI taps into the entire video library to recommend the exact lessons you need. It’s like having a personal instructor on demand.
As long as you’re subscribed! With our monthly subscription, you get unlimited access to all 500+ videos, our growing course library, and the AI No-Code Coach.
Your subscription includes:
- Bubble Beginner Essentials – Get up and running fast.
- Build a ChatGPT Clone – Integrate AI into your no-code apps.
- Build Your SaaS Website with AI – Learn to create a scalable startup site.
Plus, new tutorials every week!
The AI No-Code Coach is your first stop for instant answers. If you need deeper help, you can book 1:1 Bubble coaching for expert guidance.
Yes! If you don’t see real progress within 14 days, let us know, and we’ll issue a full refund—no questions asked.
Absolutely. Your subscription is month-to-month, and you can cancel anytime—no lock-ins, no hidden fees.
Absolutely. Your subscription is month-to-month, and you can cancel anytime—no lock-ins, no hidden fees.
If you’re serious about building a successful SaaS startup, check out Mastery—our intensive mentorship program. Mastery goes beyond Bubble.io development and includes:
- 1:1 mentorship to fast-track your progress
- Marketing strategies tailored for no-code founders
- Product management insights to scale your startup
- Personalized support from experienced founders