FFmpeg Media · IntroductionNEW
FFmpeg media processing API: transcode, compress, scale, trim, frame extraction, single-frame grab, watermark, subtitle burn-in, character nameplates, concat, concat with transitions, mux, timeline audio mux, audio extraction, GIF conversion, thumbnail, media probe, deep QC, and file upload. Flow: (1) upload a file to get a CDN URL → (2) call an operation (use that URL as input) → (3) poll by taskId until succeeded / failed. Inputs only accept URLs on a trusted allowlist domain (platform CDN or a trusted-source CDN); if an asset is already on a trusted CDN you can skip upload and use it directly. Billed by credits: charged when the task starts running (the price can only be determined after probing the input), not yet charged while queued, auto-refunded in full on failure; invalid parameters and insufficient balance are rejected before any charge. A busy platform is not an error: when every node is busy, submit still returns a taskId and the task waits as queued, then starts automatically — just keep polling, no need to retry yourself.
This page has been rewritten for the unified API: create with POST /v1/ffmpeg/jobs (the operation field names the operation), poll with GET /v1/ffmpeg/jobs/{id}, authenticate with Authorization: Bearer <key>. File upload still uses POST /v1/ffmpeg/upload. See the ffmpeg guide for the common parts. ffmpeg guide
How to call
- Upload:
POST /v1/ffmpeg/upload(multipart), get a CDN URL. - Create:
POST /v1/ffmpeg/jobs - Get:
GET /v1/ffmpeg/jobs/{id}
Creating returns a job object right away (status: queued). Poll GET /v1/ffmpeg/jobs/{id} until status is completed or failed; a failed job is still HTTP 200 with status: failed and an error.
Operations
💰 See the pricing page for prices →
Concurrency & Limits
- Per-account concurrent tasks: limited by your account quota (shared with generation tasks on the site); both queued and running count. Submissions beyond the quota return 429 with your limit in the message (max N)
- A busy platform is not an error: when every node is busy, submit still returns a id and the task waits as queued, then starts automatically — just keep polling, no need to retry
- Single-task timeout: 300s (refunded on timeout)
- Upload limit 200MB; task input download limit 1GB
- Input URLs must be on a trusted allowlist domain (platform CDN + trusted-source CDN)
Common errors
Errors use the OpenAI format; decide by the status code and error.code.
The key's model allowlist is checked against the operation name (403 model_not_allowed); a missing input_url / input_urls returns 400 invalid_request; other reasons are in message.