Video
Wan 2.5 Video video
Wan 2.5 — text-to-video. 5s/10s.
Category: Create · wan-2-5-video
How to use & limits
- Text-to-video, with an image-to-video option (image_urls with 1 image).
- prompt: up to 1,500 characters.
- Duration: 5 or 10 seconds.
- In text-to-video the size comes from aspect_ratio (presets like 1280*720); in image-to-video use resolution (480p/720p/1080p).
- Optional controls: audio (text descriptor), negative_prompt and seed.
Capabilities
What this model supports, straight from the schema — no pricing, no infrastructure detail.
| Capability | Value |
|---|---|
billing_unit Billing unit | per_video |
text_to_video Text-to-video | Yes |
image_to_video Image-to-video | Yes |
allowed_durations Allowed durations | 5, 10 |
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 | Required | — | — | — | Video description, up to 1,500 characters. |
duration | Duration | select | Optional | 5 | — | — | Duration: 5 or 10 seconds. |
resolution | Resolution | select | Optional | 720p | 480p · 720p · 1080p | — | Resolution (image-to-video): 480p, 720p or 1080p. |
image_urls | Reference image (1) | multi_select | Optional | — | — | — – 1 | One reference image for image-to-video. |
aspect_ratio | Aspect ratio | select | Optional | 832*480 | 832*480 · 480*832 · 1280*720 · 720*1280 · 1920*1080 · 1080*1920 | — | Size preset (text-to-video): 832*480, 480*832, 1280*720, 720*1280, 1920*1080 or 1080*1920. |
negative_prompt | Negative prompt | textarea | Optional | — | — | — | Describes what to avoid in the generation. |
audio | Audio (descriptor) | text | Optional | — | — | — | Audio descriptor as text (boolean not accepted). |
seed | Seed | number | Optional | — | — | — | Integer seed for reproducible results. |
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-5-video",
"prompt": "Cinematic time-lapse of a bustling city street transitioning from day to night.",
"params": {
"aspect_ratio": "1280*720",
"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-5-video",
"prompt": "Cinematic time-lapse of a bustling city street transitioning from day to night.",
"params": {
"aspect_ratio": "1280*720",
"duration": 5
}
}),
});
const { data } = await res.json();
Example response
{
"id": "9f0c1a7e-…",
"object": "generation",
"model": "wan-2-5-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. |