Remove image background

Remove the background from an image and optionally replace it with a solid colour, blur effect, or transparent layer.

Synchronous: Unlike image generation, this endpoint processes the image immediately and returns the result in the same response — no polling required.

Credit cost: 1 credit per request.

Idempotency: Duplicate requests with the same image and background settings return the existing result.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required

Source image to process. Must be a public HTTPS URL or an upload key returned by POST /upload/get-signed-image-upload-url.

enum

What to replace the background with. Defaults to transparent.

ValueResult
"transparent"Transparent (RGBA) background
"white"Solid white background
"blur"Blurred version of the original background
"#rrggbb" or "#rgb"Any hex colour
[r, g, b]RGB array, each value 0–255

Named background type.

Headers
string
required
^[a-zA-Z0-9_\-~]+$

A stable, unique identifier for the end-user making the request. Accepts alphanumeric characters, dashes (-), underscores (_), and tildes (~). This maps the request to the correct credit balance and output history.

Responses

Language
Credentials
Bearer
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json