Video GenerationWan
Wan 2.6 Flash
Fast image-to-video generation with optional audio, multi-shot support, and up to 15 seconds at 1080p.
POST /v2/videos/generate — model: "wan-2.6-flash"
Speed-optimized image-to-video generation. Turns a single image into smooth video clips up to 15 seconds at 720p or 1080p with optional synchronized audio. Supports multi-shot narrative segmentation.
This model is image-to-video only — the image parameter is required.
See Video Generation overview for common request fields, response format, and error codes.
Model-specific parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
wanParams.image | string | Yes | — | Image URL for video generation |
wanParams.duration | number | No | 5 | Video duration in seconds: 5, 10, or 15 |
wanParams.resolution | string | No | "720p" | Video resolution: "720p", "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.audio_enabled | boolean | No | true | Set to false for silent video output |
wanParams.enable_prompt_expansion | boolean | No | — | Enable automatic prompt optimization |
wanParams.multi_shots | boolean | No | — | Enable multi-shot narrative segmentation (requires enable_prompt_expansion: true) |
wanParams.seed | number | No | — | Random seed for reproducible generation |
Credit cost
With audio (default):
| Variant | Credits |
|---|---|
720p-5s-audio | 3 |
720p-10s-audio | 5 |
720p-15s-audio | 7 |
1080p-5s-audio | 4 |
1080p-10s-audio | 7 |
1080p-15s-audio | 10 |
Without audio (audio_enabled: false):
| Variant | Credits |
|---|---|
720p-5s | 2 |
720p-10s | 3 |
720p-15s | 5 |
1080p-5s | 3 |
1080p-10s | 5 |
1080p-15s | 7 |
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": "The race car driver pulls down her helmet visor as the camera zooms out",
"model": "wan-2.6-flash",
"wanParams": {
"image": "https://example.com/driver.jpg",
"duration": 5,
"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": "The race car driver pulls down her helmet visor as the camera zooms out",
"model": "wan-2.6-flash",
"wanParams": {
"image": "https://example.com/driver.jpg",
"duration": 5,
"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: "The race car driver pulls down her helmet visor as the camera zooms out",
model: "wan-2.6-flash",
wanParams: {
image: "https://example.com/driver.jpg",
duration: 5,
resolution: "720p",
},
}),
});
console.log(await response.json());Silent video (no audio)
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 figure skater performing in a bioluminescent cavern",
"model": "wan-2.6-flash",
"wanParams": {
"image": "https://example.com/skater.jpg",
"duration": 10,
"audio_enabled": false
}
}'Try it
POST
/v2/videos/generateTry it