Remove or replace
Remove the background to place the subject on white, or replace it with a solid hex colour or your own image. If you don't pass a background, the background is removed (white).
Send the URL of an image and get it back with the background removed or replaced.
Learn more about Image Background Remove / Replace#10b981The result shows up here
Upload your image on the left and hit Run.
Send the URL of an image and get it back with the background removed or replaced. The subject is cut out with clean edges — including fine detail like hair — and composited over a base of your choice:
The response is synchronous: you get the URL of the finished PNG directly in the reply, at the same resolution as the source image.
Remove the background to place the subject on white, or replace it with a solid hex colour or your own image. If you don't pass a background, the background is removed (white).
The cutout is refined for crisp edges and fine detail like hair before compositing, so the result looks natural. Output resolution matches the input.
No job to poll — the finished image URL comes back directly in the response body.
Profile and product images
Remove clutter from headshots or product shots for a clean, consistent look.
Thumbnail and banner creation
Swap a background for a brand colour or graphic before assembling a layout.
Pipeline preprocessing
Clean the background before passing an image to generation or embedding services.
input
Source image URL; optional background spec (hex colour or replacement image URL)
output
Output image URL (PNG) returned synchronously
imageUrlrequiredstringPublic URL of the source image (jpg, png, webp, etc.)
back_groundstringOmit or null to remove the background (white). A hex colour (#RRGGBB) fills with a solid colour. A URL replaces the background with that image.
imageBackgroundUrlstringReplacement background image URL. Takes precedence over back_ground when both are set.
Billed per image processed.
| Service | Unit | Price |
|---|---|---|
| Image Background Remove/Replace | image | 5 credits/image |
One image is charged per request, regardless of output size or background mode.