Video models
Wan 2.7 Video
On this page
Wan 2.7 Video — high-quality AI video generation.
| modelId | wan-2-7-text-to-video, wan-2-7-image-to-video, wan-2-7-r2v, wan-2-7-videoedit |
| Modality | video |
| Pricing | See this model on the Pricing page for the current per-call price (with your markup). |
Operations
| Operation | modelId | Endpoint | Required input |
|---|---|---|---|
| Text To Video | wan-2-7-text-to-video | POST /api/v1/generate | prompt |
| Image To Video | wan-2-7-image-to-video | POST /api/v1/generate | prompt |
| Reference to Video | wan-2-7-r2v | POST /api/v1/generate | prompt |
| Video Edit | wan-2-7-videoedit | POST /api/v1/generate | video_url |
| Poll task | — | GET /api/v1/task/{id}?model=wan-2-7-text-to-video | — |
Text To Video — wan-2-7-text-to-video
| Field | Type | Required | Values / example |
|---|---|---|---|
| prompt | string | Yes | The positive prompt for the generation Max 5000 characters. (default: A sandcastle builds itself grain by grain on an empty beach in time-lapse. Audio: soft waves, distant seagulls.) |
| negative_prompt | string | No | The negative prompt for the generation Max 500 characters. |
| audio_url | string | No | Audio URL for the generation (image URL) |
| resolution | string | No | The resolution of output (options: 720p | 1080p) (default: 1080p) |
| ratio | string | No | The ratio of output (options: 16:9 | 9:16 | 1:1 | 4:3 | 3:4) (default: 16:9) |
| duration | number | No | Total duration of output (range 2-15) (default: 5) |
| prompt_extend | boolean | No | Wether to enable the prompt optimizer (true/false) (default: true) |
| watermark | boolean | No | Wether to enable the watermark (true/false) (default: false) |
| seed | number | No | The random seed to use for the generation.(>=0,<=2147483647) (default: 0) |
| nsfw_checker | boolean | No | A configurable parameter. Defaults to true in the Playground. (true/false) (default: true) |
bash
curl -X POST https://you.bot/api/v1/generate \
-H "Authorization: Bearer $YOUBOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"modelId":"wan-2-7-text-to-video","input":{"prompt":"A cinematic aerial shot of a coastal town at golden hour, gentle waves rolling onto the shore, warm light, slow camera push-in.","negative_prompt":"blurry, low quality, distorted, watermark, text","audio_url":"https://example.com/input.mp3","resolution":"720p","ratio":"16:9","duration":5,"prompt_extend":true,"watermark":false,"seed":0,"nsfw_checker":true}}'Image To Video — wan-2-7-image-to-video
| Field | Type | Required | Values / example |
|---|---|---|---|
| prompt | string | Yes | The positive prompt for the generation Max 5000 characters. (default: Animate the first frame: the manta ray glides forward with slow, graceful wing-beats, a gentle parallax through drifting plankton as shafts of sunlight sway across its broad back.) |
| negative_prompt | string | No | The negative prompt for the generation Max 500 characters. |
| first_frame_url | string | No | The first frame of output (image URL) |
| last_frame_url | string | No | The last frame of output (image URL) |
| first_clip_url | string | No | Audio URL to guide generation (image URL) |
| driving_audio_url | string | No | Audio URL for the generation (image URL) |
| resolution | string | No | The resolution of output (options: 720p | 1080p) (default: 1080p) |
| duration | number | No | Total duration of output (range 2-15) (default: 5) |
| prompt_extend | boolean | No | Wether to enable the prompt optimizer (true/false) (default: true) |
| watermark | boolean | No | Wether to enable the watermark (true/false) (default: false) |
| seed | number | No | The random seed to use for the generation(>=0,<=2147483647) (default: 0) |
| nsfw_checker | boolean | No | A configurable parameter. Defaults to true in the Playground. (true/false) (default: true) |
bash
curl -X POST https://you.bot/api/v1/generate \
-H "Authorization: Bearer $YOUBOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"modelId":"wan-2-7-image-to-video","input":{"prompt":"A cinematic aerial shot of a coastal town at golden hour, gentle waves rolling onto the shore, warm light, slow camera push-in.","negative_prompt":"blurry, low quality, distorted, watermark, text","first_frame_url":"https://example.com/input.jpg","last_frame_url":"https://example.com/input.jpg","first_clip_url":"https://example.com/input.mp4","driving_audio_url":"https://example.com/input.mp3","resolution":"720p","duration":5,"prompt_extend":true,"watermark":false,"seed":0,"nsfw_checker":true}}'Reference to Video — wan-2-7-r2v
| Field | Type | Required | Values / example |
|---|---|---|---|
| prompt | string | Yes | The positive prompt for the generation Max 5000 characters. (default: Bring the reference scene to life: drift the camera slowly forward as low fog creeps across an alpine wildflower meadow, blossoms swaying in a faint breeze and shafts of dawn light gradually brightening the frame.) |
| negative_prompt | string | No | The negative prompt for the generation Max 500 characters. |
| reference_image | string[] | No | An array of reference image URLs. At least one of the following must be provided: a reference image or a reference video; the total number of images and videos cannot exceed 5. (image URL) |
| reference_video | string[] | No | An array of reference video URLs. At least one of the reference images and reference videos must be passed in; the total number of images and videos cannot exceed 5 (image URL) |
| first_frame | string | No | The URL of the first frame image; a maximum of one image can be passed. The aspect_ratio will be automatically ignored after passing the URL, and an approximate aspect ratio video will be generated based on the aspect ratio of the first frame image. (image URL) |
| reference_voice | string | No | Audio URL. Used to specify the timbre of the main character in the reference material. (image URL) |
| resolution | string | No | The resolution of output (options: 720p | 1080p) (default: 1080p) |
| aspect_ratio | string | No | Output Video Aspect Ratio. If first_frame is not passed: the video will be generated according to the specified aspect_ratio. First_frame has been passed in: Aspect_ratio is automatically ignored, and an approximate aspect ratio video is generated based on the aspect ratio of the first frame. (options: 16:9 | 9:16 | 1:1 | 4:3 | 3:4) (default: 16:9) |
| duration | number | No | Output video duration, in seconds. Values must be integers between 2 and 10, with a default value of 5 (range 2-10) (default: 9) |
| prompt_extend | boolean | No | Enable intelligent prompt rewriting. Enabling it uses a larger model to expand the input prompt, which works better for short prompts, but increases processing time (true/false) (default: true) |
| watermark | boolean | No | Add a watermark. The watermark is located in the bottom right corner of the video, and the text is fixed as "AI generated". (true/false) (default: false) |
| seed | number | No | The random seed to use for the generation(>=0,<=2147483647) (default: 0) |
| nsfw_checker | boolean | No | A configurable parameter. Defaults to true in the Playground. (true/false) (default: true) |
bash
curl -X POST https://you.bot/api/v1/generate \
-H "Authorization: Bearer $YOUBOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"modelId":"wan-2-7-r2v","input":{"prompt":"A cinematic aerial shot of a coastal town at golden hour, gentle waves rolling onto the shore, warm light, slow camera push-in.","negative_prompt":"blurry, low quality, distorted, watermark, text","reference_image":["https://example.com/input.jpg"],"reference_video":["https://example.com/input.mp4"],"first_frame":"https://example.com/input.jpg","reference_voice":"https://example.com/input.mp3","resolution":"720p","aspect_ratio":"16:9","duration":5,"prompt_extend":true,"watermark":false,"seed":0,"nsfw_checker":true}}'Video Edit — wan-2-7-videoedit
| Field | Type | Required | Values / example |
|---|---|---|---|
| video_url | string | Yes | The source video to edit (image URL) |
| prompt | string | No | The positive for the generation Max 5000 characters. (default: Restyle the clip into a neo-noir cityscape at dusk, deepening the shadows and adding warm sodium streetlights with drifting fog, while preserving the original camera motion and timing.) |
| reference_image | string | No | List of reference images for video editing (image URL) |
| negative_prompt | string | No | The negative for the generation Max 500 characters. |
| resolution | string | No | Output video resolution (options: 720p | 1080p) (default: 720p) |
| duration | string | No | Output video duration in seconds. Default 0 means using the full input video duration without truncation If a value is provided, the output is clipped from second 0 to the specified length Valid values are 0 or any integer in [2,10] (options: 0 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10) (default: 9) |
| aspect_ratio | string | No | Output video aspect ratio (options: 16:9 | 9:16 | 1:1 | 4:3 | 3:4) (default: 16:9) |
| audio_setting | string | No | auto:The model intelligently determines whether to regenerate audio based on the prompt. origin:Force preservation of original audio from input video (options: auto | origin) (default: auto) |
| prompt_extend | boolean | No | Enable intelligent prompt rewriting. Enabling it uses a larger model to expand the input prompt, which works better for short prompts, but increases processing time. (true/false) (default: true) |
| watermark | boolean | No | Add a watermark. The watermark is located in the bottom right corner of the video, and the text is fixed as "AI generated". (true/false) (default: false) |
| seed | number | No | Random seed, range 0-2147483647. Automatically generated by the system if not transmitted. (default: 0) |
| nsfw_checker | boolean | No | A configurable parameter. Defaults to true in the Playground. (true/false) (default: true) |
bash
curl -X POST https://you.bot/api/v1/generate \
-H "Authorization: Bearer $YOUBOT_API_KEY" \
-H "Content-Type: application/json" \
-d '{"modelId":"wan-2-7-videoedit","input":{"video_url":"https://example.com/input.mp4","prompt":"A cinematic aerial shot of a coastal town at golden hour, gentle waves rolling onto the shore, warm light, slow camera push-in.","reference_image":"https://example.com/input.jpg","negative_prompt":"blurry, low quality, distorted, watermark, text","resolution":"720p","duration":"0","aspect_ratio":"16:9","audio_setting":"auto","prompt_extend":true,"watermark":false,"seed":0,"nsfw_checker":true}}'