FFmpeg Media · FFmpeg Media
ThumbnailComing Soon
🚧 Coming soon — docs preview only, online run not yet available.
📌 What is this:Capture a single frame at a given time.
💡 When to use:Use to get a cover or preview image.
Endpoints
| Usage | Method | Path |
|---|---|---|
| Submit task | POST | /v1/ffmpeg/thumbnail |
| Query Result | GET | /v1/ffmpeg/info?id={taskId} |
⏱ Recommended polling interval:Poll every 3-5s (response includes progress 0-100) until status = succeeded / failed. Single-task timeout is 300s with auto-refund.
Request Parameters
| Param | Type | Required | Description |
|---|---|---|---|
| inputUrl | string | Required | Input media URL, must be on the platform CDN allowlist (upload first to obtain it) |
| time | number | — | Capture time (sec, >=0), default 0 |
| format | string | — | Image format: jpg / png, default jpg |
| webhookUrl | string | — | Completion webhook URL (optional) |
Request Example
curl -X POST https://api.cqtai.com/v1/ffmpeg/thumbnail \
-H 'Authorization: Bearer <API_KEY>' \
-H 'Content-Type: application/json' \
-d '{ "inputUrl": "https://cdn.novapi.ai/tmp/video.mp4", "time": 3.5, "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
}
}Billing & Credits
Flat 1 credit (x your user rate). Auto-refunded on failure.