Remove background
remove_backgroundRemove the background of an image (transparent PNG; default background-removal/birefnet) or a video (default background-removal/bria-v3; background-removal/veed keeps semi-transparent parts, webm only; background-removal/birefnet-matting and background-removal/ben-v2 output webm or mp4). Video output_format: webm keeps transparency, prores (Bria models) is a ProRes 4444 .mov, mp4 has no transparency. Returns a job; check_job returns the permanent URL once it is completed. Submitting charges credits, refunded automatically if the job fails; estimate_generation prices a request without charging.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"media_url": "<media_url>",
"type": "<type>"
},
"name": "remove_background"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | Yes | Kind of media at media_url. | |
| model | No | Background-removal model ID. | |
| extras | No | Model-specific parameters as listed by get_model_params. They are merged with the top-level fields. | |
| force_new | No | An identical request submitted in the last 10 minutes returns that job without charging again; true generates it again. | |
| media_url | Yes | Image or video to process (https URL). | |
| skills_used | No | Optional workflow analytics: names of the skills (or skill/reference paths) followed for this call. Stored with generation jobs only. Never include private data, local paths or media URLs. | |
| output_format | No | Video only. | |
| budget_project | No | Optional budget project this generation's cost counts toward, for tracking spend per client or job. Pass its slug; an id or the exact display name also works. Create one with create_budget_project and find slugs with list_budget_projects. An unknown project never stops the generation: it runs without one, and the result warns how to add it with assign_to_budget_project. |