Create Background Removal
Changed onSubmits a video for background removal and returns a job; poll Get Background Removal with its id. A completed job has download URLs for the requested layers: foreground, mask and background. For idempotency, send request_id in the body. Available on all plans with sufficient credits. API requests cost $0.15 per input-video minute (9 API quota units, 18 on the enterprise base card, or 3 plan/generative credits per minute), rounded up to whole wallet units. Failed jobs are refunded. An insufficient-credit response allows retrying the same request_id after topping up; a concurrent replay may return a pending job that is removed if payment is refused. After a job is claimed, other submission failures retain a failed job; use a new request_id to try again. The request_id inside an error body identifies the HTTP request for support; it is not this idempotency key. Web/editor background removal remains free.
Request
- Base URLhttps://api.heygen.com
- URLhttps://api.heygen.com/v3/background-removals
- Auth
- API key in header x-api-key
- or HTTP bearer
Request body
Response
Successful response
Changes
- info
endpoint added
- info