Qwen Video · Video
Video EditingNEW
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.
This page has been rewritten for the unified API: create with
POST /v1/videos, poll with GET /v1/videos/{id}, authenticate with Authorization: Bearer <key>, errors use the OpenAI format. See the video guide for the common parts. Video guideSubmit task
POST/ v1/ videos
Query Result
GET/ v1/ videos/ {id}
Download the video
GET/ v1/ videos/ {id}/ content
⏱ Recommended polling interval:Creating returns a video object right away (
status: queued). Poll GET /v1/videos/{id} until status is completed or failed; when done, url is the result address, and you can also download it with GET /v1/videos/{id}/content.Authorization
AuthorizationstringheaderRequired
API key, sent as a Bearer token in the Authorization header.
Request body
application/jsonmodelstringRequired
wan2.7-videoedit / happyhorse-1.0-video-edit
promptstringRequired
Edit 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
model, prompt, seconds, size and input_reference are the common fields of the unified interface. The other fields in the table are specific to this model channel and go in the same request body under their own names. seconds and size (which must be WIDTHxHEIGHT, for example 1280x720) are only translated into channel fields when you did not send the matching channel field yourself.
Response fields
idstring
Task ID, starts with
video_; used to query and download.objectstring
Always
video.modelstring
The model passed when creating.
statusstring
queued, in_progress, completed or failed.progressinteger
Progress percent; 100 when done.
created_atinteger
Creation time (Unix seconds).
completed_atinteger | null
Completion time; null until finished.
expires_atinteger | null
Expiry time; currently null.
secondsstring
Returned only if
seconds was sent when creating.sizestring
Returned only if
size was sent when creating.errorobject | null
{code, message} on failure; code is video_generation_failed.urlstring
Extension field: the result address once completed.