API Reference

Create remove-background video task

Remove the background from a video. The default foreground output is a transparent WebM; set output_type=mask for an MP4 mask.

Model:remove-background-video
Credit:5/second
post/v1/videos/remove-background

AuthorizationThis endpoint requires an API key. Pass it in the api-key header on every request. Learn more

Parameters

NameTypeStatusDescription
task_id
stringRequired
output_type
stringOptionalReturn transparent foreground WebM or mask MP4.
foregroundmask
(default: foreground)

Responses

Task createdTaskCreatedResponse

FieldTypeDescription
task_idstringUnique task identifier. Poll the matching task-status endpoint for results.
statusstring
created_atintegerUnix timestamp of task creation
curl -X POST "https://api.snapedit.app/v1/videos/remove-background" \
  -H "api-key: YOUR_API_KEY" \
  -F "task_id=value" \
  -F "output_type=foreground"
Response
{
  "task_id": "task_abc123",
  "status": "CREATED",
  "created_at": 1745827200
}

Examples (2 examples)

Parameters

output_type=foreground (default)

Input

Output