Cut a person out of a video (matte) or an image
remove_backgroundA clip: its matte, white on black mp4 (not transparent; combine with the original). An image: the same picture with a transparent background. Returns the job id. THE CARD: this call already opened the aicut card: do not call show_generation for this job. WAIT: wait_for_generation (this id, media), never timers or background shells. No card? Give the user the url. COST: a clip per second (1 to 30 s, MP4), measured by the server; an image a flat price. SPENDS TOKENS: price with estimate_only: true, state the price in the same message as your ask, wait for a go naming THIS purchase (SPENDING RULES: get_recipe spending-rules). idempotency_key: IDEMPOTENCY (this server's instructions).
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "remove_background"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | No | Clip only. sam-3 masks what prompt names, clips from 5 s. Only if the user asked; never to save tokens, never carried over. | |
| prompt | No | sam-3 only, required: what to keep, e.g. person. | |
| source_image | No | Instead of source_video: PNG, JPEG or WebP, 256-4096 px a side, up to 5 MB. | |
| source_video | No | A URL from this account's generations or uploads, or a public https URL (imported first); another account's is refused. | |
| estimate_only | No | Price only; creates nothing. | |
| idempotency_key | No | Retry key (IDEMPOTENCY). |