ApiframeApiframe Docs
Video GenerationWan

Wan 2.6 Flash

Fast image-to-video generation with optional audio, multi-shot support, and up to 15 seconds at 1080p.

Use in Apiframe Studio

POST /v2/videos/generatemodel: "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

ParameterTypeRequiredDefaultDescription
wanParams.imagestringYesImage URL for video generation
wanParams.durationnumberNo5Video duration in seconds: 5, 10, or 15
wanParams.resolutionstringNo"720p"Video resolution: "720p", "1080p"
wanParams.negative_promptstringNoElements to avoid in the generated video
wanParams.audiostringNoAudio file URL (wav/mp3, 3–30s, ≤15 MB) for synchronization
wanParams.audio_enabledbooleanNotrueSet to false for silent video output
wanParams.enable_prompt_expansionbooleanNoEnable automatic prompt optimization
wanParams.multi_shotsbooleanNoEnable multi-shot narrative segmentation (requires enable_prompt_expansion: true)
wanParams.seednumberNoRandom seed for reproducible generation

Credit cost

With audio (default):

VariantCredits
720p-5s-audio3
720p-10s-audio5
720p-15s-audio7
1080p-5s-audio4
1080p-10s-audio7
1080p-15s-audio10

Without audio (audio_enabled: false):

VariantCredits
720p-5s2
720p-10s3
720p-15s5
1080p-5s3
1080p-10s5
1080p-15s7

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

On this page