CQTAI
Qwen Video · Video

Video EditingNEW

📌 What is this:Generate an edited video from a source video + instruction; supports instruction-only edits (restyle) and reference-image local replacement (e.g. clothing swap).
💡 When to use:Use to restyle, alter visuals, or edit an existing video.

Endpoints

UsageMethodPath
Submit taskPOST/api/cqt/generator/qwen
Query ResultGET/api/cqt/info/qwen?id={taskId}
⏱ Recommended polling interval:Video jobs usually take 1-5 minutes. Poll every 15-20s until status = succeeded / failed.

Request Parameters

ParamTypeRequiredDescription
modelstringRequiredwan2.7-videoedit / happyhorse-1.0-video-edit
promptstringRequiredEdit instruction
imageUrlsstring[]—First item is the source video URL (required, 2-10s, mp4/mov, <=100MB); the rest are reference images for local replacement (jpg/png; wan2.7 <=4, happyhorse <=5)
durationinteger—Output duration in seconds; default = same as input, truncates only within [2,10]. Post-paid: final charge follows real usage, not this value
aspectRatiostring—Ratio / resolution mapping
webhookUrlstring—Completion webhook URL

Request Example

curl -X POST https://api.cqtai.com/api/cqt/generator/qwen \
  -H 'Authorization: Bearer <API_KEY>' \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "wan2.7-videoedit",
    "prompt": "把视频改成冬季雪景氛围",
    "imageUrls": ["https://example.com/source-video.mp4"],
    "duration": 5
  }'
# -> { "code":200, "data":"<taskId>" }

Response Example

{
  "code": 200,
  "data": {
    "id": "<taskId>",
    "status": "succeeded",
    "resultUrl": "https://.../result.mp4",
    "createTime": "2026-06-15 10:00:00",
    "completeTime": "2026-06-15 10:02:00"
  }
}