FFmpeg Media · FFmpeg

Timeline Audio MuxNEW

Place multiple audio clips into a video at their own time offsets — positioning and muxing the whole track in one call.

💡 When to use:Use to anchor N audio clips (e.g. multiple voice lines or sound effects) at different moments of a video. mux only places a single track from 0s; here each clip carries its own offset in seconds.

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
Submit task
POST/ v1/ ffmpeg/ jobs
Query Result
GET/ v1/ ffmpeg/ jobs/ {id}
⏱ Recommended polling interval: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.

Authorization

AuthorizationstringheaderRequired
API key, sent as a Bearer token in the Authorization header.

Request body

application/json
input_urlstringRequired
Input media URL on a trusted allowlist domain (platform CDN or a trusted-source CDN); upload first to obtain one, or use an asset URL already on a trusted CDN
audio_urlsstring[]Required
Audio URL array, 1-100, all on allowlist domains
offsetsnumber[]Required
Start offset (sec) per audio; length must equal audioUrls, non-negative and non-decreasing
modestring
replace drops the original track (default) / add mixes with it (auto-falls back to replace when the video has no audio track)
keepVideoLengthboolean
Whether output equals the video length: true (default) pads silence if short, trims if long; false leaves it unconstrained
webhook_urlstring
Completion webhook URL (optional)

Every field in the request body other than operation is a parameter of this operation. Input slots use snake_case (input_url, input_urls, image_url, audio_url, audio_urls, subtitle_url, webhook_url); the old camelCase names (such as inputUrl) are still accepted, and the old name wins if both are present.

Response fields

idstring
Job ID.
objectstring
Always ffmpeg.job.
operationstring
The operation used when creating.
statusstring
queued, in_progress, completed or failed.
progressinteger
Progress percent; 100 when done.
result_urlstring
Address of the output once completed.
costinteger
Credits actually charged.
errorobject
{message, code} on failure; code is ffmpeg_job_failed.