# Qwen Video · Introduction

Qwen video generation uses the qwen gateway; select the concrete video model with the request body model field. Based on the Wan 3.0 / Wan 2.7 / Wan 2.5 preview, HappyHorse and Vidu families, covering text-to-video / image-to-video / reference-to-video / video editing. The submit endpoint returns a id; video jobs are asynchronous and require polling.

• Wan 3.0 (all-in-one): a single model name handles text / image / reference-to-video, decided automatically from the request payload (pass a reference image for image-to-video, first/last frame for keyframes, nothing for text-to-video); the name contains no t2v/i2v/r2v token. Comes as standard wan3.0-video and high-speed wan3.0-video-prime (same capability, faster, ~1.5x price); supports 480P / 720P / 1080P (default 1080P); duration 2-30 (pass -1 for smart duration).
• Wan 2.7: text-to-video, image-to-video with optional audio, reference-to-video, video editing; 720P / 1080P. wan2.7-i2v supports three tasks: first-frame, first+last frame (pass lastFrameUrl), and video continuation (pass a .mp4/.mov in imageUrls).
• Wan 2.5 preview: text-to-video (wan2.5-t2v-preview), image-to-video (wan2.5-i2v-preview, audio on by default); 480P / 720P / 1080P; duration only 5 / 10.
• HappyHorse 1.0 / 1.1: text / image / reference to video and video editing (happyhorse-1.0/1.1-t2v / -i2v / -r2v, video-edit 1.0 only). 720P / 1080P; duration 3-15; r2v accepts multiple reference images (<=9).
• Vidu (vidu/viduq3-pro_img2video): image-to-video. Note: account not enabled / allowlist closed — currently unavailable.

> This page uses the unified API: create with `POST /v1/videos`, poll with `GET /v1/videos/{id}`, authenticate with `Authorization: Bearer <key>`; errors use the OpenAI format.

## How to call
1. Create: `POST /v1/videos`
2. Get: `GET /v1/videos/{id}`
3. Download: `GET /v1/videos/{id}/content`

Creating returns a video object right away (`status: queued`). Poll `GET /v1/videos/{id}` until `status` is `completed` or `failed`; `url` is the result address, or download it with `GET /v1/videos/{id}/content`.

## Capability map
- **Text to Video** — Generate a video directly from a text prompt.
- **Image to Video** — Animate a reference image into a video. wan2.7-i2v supports three tasks: first-frame, first+last frame (pass lastFrameUrl), and video continuation (pass a .mp4/.mov clip in imageUrls).
- **Reference to Video** — Use one or more reference images to guide characters, style, or scene before generating video.
- **Video Editing** — Generate an edited video from a source video + instruction; supports instruction-only edits (restyle) and reference-image local replacement (e.g. clothing swap).
