DOCUMENT:
Replace Background | Clipdrop APIs
Request Body Parameters
image_file (required)
- Type: file
- Required: Yes
- Description: The original image to process. The image should be a PNG, JPG, or WEBP file, with a maximum width and height of 2048 pixels and a max file size of 20 MB.
- Example: "image_file=@wine_bottle.jpg"
prompt (required)
- Type: text
- Required: Yes
- Description: A text description of the scene you want to teleport your item to. This field can be an empty string, in which case a scene will be generated based on your item.
- Example: "a cozy marble kitchen with wine glasses"
Example Requests
CURL Example
curl -X POST <https://clipdrop-api.co/replace-background/v1> \\\\
-H 'x-api-key: YOUR_API_KEY' \\\\
-F 'image_file=@wine_bottle.jpg' \\\\
-F 'prompt=a cozy marble kitchen with wine glasses' \\\\
-o result.png