Video
Wan 2.7 Video video
Alibaba Wan 2.7 — text-to-video. 720p/1080p. Per-second pricing.
Category: Create · wan-2-7-video
How to use & limits
- Four workflows in one model: text-to-video, image-to-video, reference-to-video and video edit.
- prompt: up to 5,000 characters (required for text, reference and edit).
- image_urls: 1 or 2 images (index 0 = start, index 1 = end) for image-to-video.
- Reference-to-video uses reference_image_urls and/or reference_video_urls; edit uses video_url + optional reference_image_url.
- Duration per workflow: text 5/10/15; image 2–15; reference 2–10; edit 2–10 (0 = detect the source video duration).
- Resolution 720p or 1080p; aspect ratio 16:9, 9:16, 1:1, 4:3 or 3:4; optional audio via audio_url.
Capabilities
What this model supports, straight from the schema — no pricing, no infrastructure detail.
| Capability | Value |
|---|---|
video_edit Video edit | Yes |
audio_input Audio input | Yes |
multi_shots Multi-shot | Yes |
text_to_video Text-to-video | Yes |
image_to_video Image-to-video | Yes |
max_prompt_length Max prompt length | 5000 |
reference_to_video Reference-to-video | Yes |
Parameters
Fields accepted in params (or first-class, where applicable) for POST /generations.
| Name | Label | Type | Required | Default | Options | Min / Max | Description |
|---|---|---|---|---|---|---|---|
prompt | Prompt | textarea | Optional | — | — | — | Video description, up to 5,000 characters. |
image_urls | Image references | multi_select | Optional | — | — | — – 2 | 1 or 2 images (image-to-video): index 0 = start, index 1 = end. |
reference_image_urls | Reference images | multi_select | Optional | — | — | — | Reference images for the reference-to-video workflow. |
audio_url | Audio track | url | Optional | — | — | — | Optional audio track (text-to-video and image-to-video). |
aspect_ratio | Aspect ratio | select | Optional | 16:9 | 16:9 · 9:16 · 1:1 · 4:3 · 3:4 | — | Aspect ratio: 16:9, 9:16, 1:1, 4:3 or 3:4. |
resolution | Resolution | select | Optional | 720p | 720p · 1080p | — | Resolution: 720p or 1080p. |
duration | Duration | number | Optional | 5 | — | 2 – 15 | Duration in seconds, integer 2–15 (varies by workflow). |
multi_shots | Multi-shot | boolean | Optional | false | — | — | Multi-scene control for image, reference and edit workflows. |
audio_setting | Audio setting | text | Optional | — | — | — | Optional audio setting for video edit. |
seed | Seed | number | Optional | — | — | 0 – 2147483647 | Integer seed (0 to 2147483647) for reproducibility. |
negative_prompt | Negative prompt | textarea | Optional | — | — | — | Describes what to avoid in the generation. |
enable_safety_checker | Safety filter | boolean | Optional | true | — | — | Enables the safety filter. |
reference_video_urls | Reference videos | multi_select | Optional | — | — | — | Reference videos for the reference-to-video workflow. |
reference_image_url | Reference image | url | Optional | — | — | — | Single reference image for the video edit workflow. |
video_url | Source video | url | Optional | — | — | — | Source video (required for edit; optional for image-to-video). |
Example request
curl -X POST https://caranguejo.art/api/v1/dev/generations \
-H "Authorization: Bearer $CK" \
-H "Content-Type: application/json" \
-d '{
"model": "wan-2-7-video",
"prompt": "Cinematic tracking shot of a glass greenhouse at sunrise, soft light, slow camera movement.",
"params": {
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": 5
}
}'
const res = await fetch("https://caranguejo.art/api/v1/dev/generations", {
method: "POST",
headers: {
"Authorization": "Bearer " + process.env.CK,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "wan-2-7-video",
"prompt": "Cinematic tracking shot of a glass greenhouse at sunrise, soft light, slow camera movement.",
"params": {
"aspect_ratio": "16:9",
"resolution": "720p",
"duration": 5
}
}),
});
const { data } = await res.json();
Example response
{
"id": "9f0c1a7e-…",
"object": "generation",
"model": "wan-2-7-video",
"type": "video",
"status": "completed",
"output": {
"assets": [
{
"url": "https://media.caranguejo.art/outputs/example.mp4",
"type": "video"
}
]
}
}
The job's real cost is returned as credits_charged on the completed response — check GET /balance for the account balance.
Common errors for this job type:
insufficient_credits | Account balance can't cover the job cost. |
content_policy_violation | Prompt or media rejected by content policy. |
generation_timeout | The job exceeded the maximum processing time. |
rate_limited | Too many requests per minute. |
invalid_input | A required parameter is missing or outside the model's schema. |
generation_failed | Generic processing failure. |