CQTAI
Qwen Video · Video

Video EditingNEW

📌 What is thisGenerate an edited video from a source video + instruction; supports instruction-only edits (restyle) and reference-image local replacement (e.g. clothing swap).
💡 When to useUse 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 intervalVideo 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)
durationintegerOutput duration in seconds; default = same as input, truncates only within [2,10]. Post-paid: final charge follows real usage, not this value
aspectRatiostringRatio / resolution mapping
webhookUrlstringCompletion 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"
  }
}

Billing & Credits

wan2.7-videoedit: 720P=60 / 1080P=100 credits/sec; happyhorse-1.0-video-edit: 720P=90 / 1080P=160. Note: video editing is POST-PAID — no charge at submit (only a balance floor check); on success it bills the real usage (~2x output seconds); nothing is charged/refunded on failure. E.g. wan2.7-videoedit 1080P at 12s usage = 1200 credits. (x your user rate). Auto-refunded on failure.