Wan video generation
Image + text with Wan models for natural lighting and cinematic motion.Quick flow
Basics
- Endpoint:
POST /v1/video/generations - Auth:
Bearer Token(Authorization: Bearer sk-xxxxxx) - Content-Type:
application/json
Request body
| Field | Type | Required | Description |
|---|---|---|---|
| model | string | Yes | e.g. wan2.6-i2v-flash. |
| prompt | string | Yes | Describe motion (e.g. a kitten running on grass). |
| input_reference | string | Yes | Reference image URL—visual anchor for the clip. |
| duration | integer | Yes | Length in seconds, e.g. 5. |
Response
200 OK (created)| Field | Type | Description |
|---|---|---|
| id | string | Task id. |
| task_id | string | Same, for polling. |
| object | string | video. |
| model | string | Model used. |
| status | string | e.g. queued. |
| progress | integer | 0–100. |
| created_at | integer | Unix time. |
Request example
Response example
Notes
- Image quality caps how good the video can look—prefer sharp, clear framing.
- Async: Save
task_idand poll the status API or use callbacks. - Prompts: Focus on motion and atmosphere, not restating static objects in the frame.
- Environments: Example points at
http://192.168.5.29:4000for testing—use production host when live.

