hello, I am working with an API and attempting to figure out how to display the results. Here is the rather simple API documentation:
Does the parameter -0 no-bg.png
have something to do with the output method? If so I’m not sure how?
$ curl -H 'X-API-Key: INSERT_YOUR_API_KEY_HERE' \
-F 'image_file=@/path/to/file.jpg' \
-F 'size=auto' \
-f https://api.remove.bg/v1.0/removebg -o no-bg.png
Based on the feedback from the server my API is set up correctly. Where I am stuck is I am trying to determine how to display the results:
Here is a sample of what a successful request:
curl -X POST "https://api.remove.bg/v1.0/removebg"
-H "accept: image/*"
-H "X-API-Key: rVxRF7WbuAJd1FFeDYAziAVX"
-H "Content-Type: multipart/form-data"
-F "size=preview" -F "bg_color=" -F "scale=original"
-F "image_url=https://www.remove.bg/example-hd.jpg"
-F "format=auto" -F "type=auto" -F "type_level=1"
Here is the information from the documents regarding responses:
Image background removed
Schema: string($binary)
Example: (binary image data)
Headers:
X-Type --------------- string
X-Width -------------- integer
X-Credits---------------- float
This is what I have tried:
Community Page
Last updated:
Last updated: