How to use remove.bg API

How to use remove.bg API in this link https://www.remove.bg/api?

2 Likes

What you tried… Please show…

$ curl -H 'X-API-Key: INSERT_YOUR_API_KEY_HERE'           \
       -F '[email protected]/path/to/file.jpg'                 \
       -F 'size=auto'                                     \
       -f https://api.remove.bg/v1.0/removebg -o no-bg.png

theoretically it would be possible using the web component…
however the web component does not support multipart/formdata, i.e. a mixture of binary data and text
so the web component unfortunately is not able to do it

you could try to use the Terminal / Shell Extension by @juananton1991, but I’m not sure, if this will be possible there… you might want to try it and let us know, whast you find out…


Taifun

1 Like

http://kio4.com/appinventor/278_extension_shell.htm Could it be with this?

And, lots of options down the page!

yes, just try it to find it out yourself… and use the curl example code…
Taifun

1 Like

Have you got solution? If yes,then write it here and marked as a solution!
It can help others KODERS also!

No. I haven’t a solution.

I think these blocks will work, So Please try. If my way worked please mark it as solution.

No, this is not working.

Please Show How you have used it. @bedirekim

sent me this aia
I think these blocks will work, So Please try. If my way worked please mark it as solution.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

I just found by accident this thread… :wink:
there are at least 2 errors in your blocks

  1. the request headers have to be a list of lists… you currently are using only a list…
  2. the double quotes have to be removed

Taifun

3 Likes

Thank you!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.