Video GenerationWan
Wan 2.5 Fast
Speed-optimized variant of Wan 2.5 for faster text-to-video and image-to-video generation.
POST /v2/videos/generate — model: "wan-2.5-fast"
Speed-optimized variant of Wan 2.5. Same capabilities — combined text-to-video and image-to-video at 720p/1080p with audio sync — but with faster generation times.
See Video Generation overview for common request fields, response format, and error codes.
Model-specific parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
wanParams.image | string | No | — | Image URL for image-to-video (omit for text-to-video) |
wanParams.duration | number | No | 5 | Video duration in seconds: 5 or 10 |
wanParams.resolution | string | No | "720p" | Video resolution: "720p" or "1080p" |
wanParams.negative_prompt | string | No | — | Elements to avoid in the generated video |
wanParams.audio | string | No | — | Audio file URL (wav/mp3, 3–30s, ≤15 MB) for synchronization |
wanParams.enable_prompt_expansion | boolean | No | — | Enable automatic prompt optimization |
wanParams.seed | number | No | — | Random seed for reproducible generation |
Credit cost
| Variant | Credits |
|---|---|
720p-5s | 58 |
720p-10s | 87 |
1080p-5s | 116 |
1080p-10s | 174 |
Code examples
curl -X POST https://api.apiframe.ai/v2/videos/generate \
-H "X-API-Key: afk_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{
"prompt": "A hyperspeed POV bike ride through a neon-lit city at night",
"model": "wan-2.5-fast",
"wanParams": {
"duration": 10,
"resolution": "720p"
}
}'import requests
response = requests.post(
"https://api.apiframe.ai/v2/videos/generate",
headers={
"X-API-Key": "afk_your_api_key_here",
"Content-Type": "application/json",
},
json={
"prompt": "A hyperspeed POV bike ride through a neon-lit city at night",
"model": "wan-2.5-fast",
"wanParams": {
"duration": 10,
"resolution": "720p",
},
},
)
print(response.json())const response = await fetch("https://api.apiframe.ai/v2/videos/generate", {
method: "POST",
headers: {
"X-API-Key": "afk_your_api_key_here",
"Content-Type": "application/json",
},
body: JSON.stringify({
prompt: "A hyperspeed POV bike ride through a neon-lit city at night",
model: "wan-2.5-fast",
wanParams: {
duration: 10,
resolution: "720p",
},
}),
});
console.log(await response.json());Try it
POST
/v2/videos/generateTry it