CQTAI
FFmpeg Media · FFmpeg

Extract FramesNEW

📌 What is this:Export image frames by interval or FPS; the output is packaged into a single .zip and resultUrl points to that archive.
💡 When to use:Use to turn a video into an image sequence. Up to 1000 frames per run; extras beyond that are truncated.

Endpoints

UsageMethodPath
Submit taskPOST/v1/ffmpeg/frames
Query ResultGET/v1/ffmpeg/info?id={taskId}
⏱ Recommended polling interval:Poll every 3-5s (response includes progress 0-100) until status = succeeded / failed. status = queued means the task is enqueued and waiting to start (not charged yet) — just keep polling. Single-task timeout is 300s with auto-refund.

Request Parameters

ParamTypeRequiredDescription
inputUrlstringRequiredInput 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
intervalnumber—Interval (sec) [0.5,60], default 1; or use fps
fpsnumber—Frames per sec [0.1,5]; or use interval
formatstring—Image format: jpg / png, default jpg
webhookUrlstring—Completion webhook URL (optional)

Request Example

curl -X POST https://api.cqtai.com/v1/ffmpeg/frames \
  -H 'Authorization: Bearer <API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{ "inputUrl": "https://cdn.novapi.ai/veo31/1788164205419_de868f9d69d445baaf577d42e87a236f.mp4", "interval": 2, "format": "jpg" }'
# -> { "code":200, "data":"<taskId>" }

Response Example

{
  "code": 200,
  "msg": "success",
  "data": {
    "taskId": "<taskId>",
    "operation": "transcode",
    "status": "succeeded",
    "progress": 100,
    "resultUrl": "https://cdn.novapi.ai/ffmpeg/xxx.mp4",
    "costPoints": 3,
    "errorMsg": null
  }
}