Using Remove.bg for image background removal (tutorial)
Posted: Wed Dec 09, 2020 8:31 pm
We just setup a new Switch flow using the amazing service remove.bg for removing backgrounds on all kind of images. I though I would share this here if anyone else would like to know how to setup a similar flow (since the HTTP request setup imho is a bit tricky).
1. Register an account on https://remove.bg and buy some credit or an subscription.
2. On the remove.bg account choose API and generate a API key
3. Use the flow element HTTP Request and do the following parameters:
a. URL: https://api.remove.bg/v1.0/removebg
b. Request type: POST
c. Attached file: [Job.Path]
d. Use MIME encoding: YES
e. File varible: image_file
f. Authentication scheme: none
g. Parameters: size=auto (here you can choose your wanted parameters from remove.bg API documentation)
h. Headers: X-API-Key: YOUR-API-KEY-HERE
i. Response: Inject as new job
j. Filename: [Job.NameProper].png
k. Input job: discard
4. Done
Enjoy!
1. Register an account on https://remove.bg and buy some credit or an subscription.
2. On the remove.bg account choose API and generate a API key
3. Use the flow element HTTP Request and do the following parameters:
a. URL: https://api.remove.bg/v1.0/removebg
b. Request type: POST
c. Attached file: [Job.Path]
d. Use MIME encoding: YES
e. File varible: image_file
f. Authentication scheme: none
g. Parameters: size=auto (here you can choose your wanted parameters from remove.bg API documentation)
h. Headers: X-API-Key: YOUR-API-KEY-HERE
i. Response: Inject as new job
j. Filename: [Job.NameProper].png
k. Input job: discard
4. Done
Enjoy!