ApiframeApiframe Docs
Video GenerationWan

Wan 2.5 Fast

Speed-optimized variant of Wan 2.5 for faster text-to-video and image-to-video generation.

Use in Apiframe Studio

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

ParameterTypeRequiredDefaultDescription
wanParams.imagestringNoImage URL for image-to-video (omit for text-to-video)
wanParams.durationnumberNo5Video duration in seconds: 5 or 10
wanParams.resolutionstringNo"720p"Video resolution: "720p" or "1080p"
wanParams.negative_promptstringNoElements to avoid in the generated video
wanParams.audiostringNoAudio file URL (wav/mp3, 3–30s, ≤15 MB) for synchronization
wanParams.enable_prompt_expansionbooleanNoEnable automatic prompt optimization
wanParams.seednumberNoRandom seed for reproducible generation

Credit cost

VariantCredits
720p-5s58
720p-10s87
1080p-5s116
1080p-10s174

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

On this page