CQTAI
FFmpeg Media · FFmpeg

Burn SubtitleNEW

📌 What is thisAdd subtitles to a video: soft = a switchable subtitle track (no re-encode); hard = burned into the pixels (permanent, forces a re-encode).
💡 When to useUse to caption a video. Pick soft to keep a toggleable track; pick hard to always show captions (e.g. short/vertical clips). Recognizes .srt / .ass / .vtt (others treated as .srt); Chinese hard subtitles use a built-in Noto CJK font, no extra config needed.

Endpoints

UsageMethodPath
Submit taskPOST/v1/ffmpeg/burn_subtitle
Query ResultGET/v1/ffmpeg/info?id={taskId}
Recommended polling intervalPoll 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
subtitleUrlstringRequiredSubtitle file URL (trusted allowlist domain); recognizes .srt / .ass / .vtt, other extensions treated as .srt
modestringMode: soft (mov_text switchable track, no re-encode, mp4 output) / hard (burned into pixels, video re-encoded, audio copied), default soft
webhookUrlstringCompletion webhook URL (optional)

Request Example

curl -X POST https://api.cqtai.com/v1/ffmpeg/burn_subtitle \
  -H 'Authorization: Bearer <API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{ "inputUrl": "https://cdn.novapi.ai/veo31/1788164205419_de868f9d69d445baaf577d42e87a236f.mp4", "subtitleUrl": "https://cdn.novapi.ai/tmp/captions.srt", "mode": "hard" }'
# -> { "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

Factor 1.3; 1 min 720P ~ 4 credits (x your user rate). Auto-refunded on failure.