Wan 2.6 API

Wan 2.6 的 Buble API 参数、mode、价格与调用示例。

Wan 2.6 API

Wan 2.6 支持文生视频和参考图视频,并可配合音频输入生成更长的音频驱动场景。

模型 key

  • wan/wan2.6 — Wan2.6

支持的 mode 与输入

模型Mode名称输入要求
wan/wan2.6text_to_video文生视频Prompt max 2000 chars
Audio: 1-1 files, 50 MB, max 120s, formats mp3, wav, aac, m4a
wan/wan2.6reference_to_video参考图生成视频Prompt max 2000 chars
Images reference: 1-1 files, 10 MB, formats jpg, png, webp
Audio: 1-1 files, 10 MB, max 120s, formats mp3, wav, aac, m4a

参数

模型参数默认值可选值适用 mode
wan/wan2.6duration5s5s, 10s, 15s全部 mode
wan/wan2.6aspect_ratio16:916:9, 9:16, 1:1, 4:3, 3:4text_to_video
wan/wan2.6resolution720p720p, 1080p全部 mode
wan/wan2.6short_typesinglesingle, multi全部 mode
wan/wan2.6audiofalsetrue, false全部 mode

价格

模型价格
wan/wan2.6每秒 4 credits;参数倍率:resolution={"720p":1,"1080p":1.5}

生产建议

  • 显式传入 mode
  • 只使用上表列出的参数值。
  • 媒体输入类 mode 请先用 POST /api/v1/files 上传素材。
  • 如果页面包含多个变体,请使用你真正需要的模型 key。

示例:文生视频

curl https://buble.ai/api/v1/generations \
  -H "Authorization: Bearer $BUBLE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "wan/wan2.6",
    "mode": "text_to_video",
    "prompt": "A cinematic product launch shot with slow camera movement, premium lighting, and realistic motion",
    "duration": "5s",
    "resolution": "720p",
    "aspect_ratio": "16:9",
    "short_type": "single",
    "audio": "false"
  }'

示例:素材驱动视频

curl https://buble.ai/api/v1/generations \
  -H "Authorization: Bearer $BUBLE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "wan/wan2.6",
    "mode": "reference_to_video",
    "prompt": "Animate the source into a polished cinematic motion shot with natural camera movement",
    "image_urls": ["https://example.com/reference.png"],
    "duration": "5s",
    "resolution": "720p",
    "aspect_ratio": "16:9",
    "short_type": "single",
    "audio": "false"
  }'