当前位置: 首页 > Skill >

Wan 2.6 & 2.5 — AI Video & Image Generation by Alibaba

Wan 2.6 & 2.5 — AI Video & Image Generation by Alibaba

Wan 2.6 & 2.5 — AI Video & Image Generation by Alibaba

使用阿里Wan 2.6和2.5生成AI视频与图像,支持文生视频、图生视频、视频生视频、文生图及图像编辑。

1.0.2 2026.11.21 718
获取Skill文件查看使用说明
作 者:陆禾 许可证: 更新时间:2026.11.21
本文目录展开

Wan 2.6 & 2.5 — AI Video & Image Generation by Alibaba

Generate AI videos and images using Alibaba's Wan 2.6 and Wan 2.5 — featuring text-to-video, image-to-video, video-to-video, text-to-image, and image editing with up to 1080p resolution, 15-second duration, multi/single camera modes, audio-guided generation, and built-in prompt expansion.

Wan 2.6 is the latest flagship model with cinematic motion quality, multi-camera shot types, audio URL input for guided generation, and video-to-video transfer with character-level prompt control. Wan 2.5 offers a cost-effective alternative with 480p support and Flash variants for rapid prototyping.

Data usage note: This skill sends text prompts, image URLs, audio URLs, and video files to the Atlas Cloud API (api.atlascloud.ai) for generation. No data is stored locally beyond the downloaded output files. API usage incurs charges based on resolution, duration, and model selected.

Key Capabilities

  • Text-to-Video — Generate video clips from text descriptions with optional audio (2.6 / 2.5)
  • Image-to-Video — Animate still images into dynamic video (2.6 / 2.5)
  • Video-to-Video — Transfer style or replace characters in existing videos using characterX prompt notation (2.6)
  • Text-to-Image — Generate images from text descriptions, 27 preset sizes (2.6)
  • Image Editing — Edit images with prompt-based instructions, up to 4 reference images (2.6)
  • Audio-Guided Generation — Provide an audio URL to guide video generation with synchronized sound (2.6)
  • Multi/Single Camera — multi_camera for dynamic shots, single_camera for stable framing (2.6)
  • Prompt Expansion — Built-in prompt optimization for better results
  • Up to 1080p — Resolutions: 480p, 720p, 1080p
  • Up to 15s — Duration: 5/10/15 seconds (2.6), 5/10 seconds (2.5)
  • Flash Variants — Fast, budget-friendly generation for drafts (2.6 I2V Flash, 2.5 Fast)

Setup

  1. Sign up at https://www.atlascloud.ai
  2. Console → API Keys → Create new key
  3. Set env: export ATLASCLOUD_API_KEY="your-key"

The API key is tied to your Atlas Cloud account and its pay-as-you-go balance. All usage is billed to this account. Atlas Cloud does not currently support scoped keys — the key grants access to all models available on your account.

Script Usage

This skill includes Python scripts for both video and image generation. Zero external dependencies required.

List available models

python scripts/generate_video.py list-models
python scripts/generate_image.py list-models

Generate a video

python scripts/generate_video.py generate 
  --model "alibaba/wan-2.6/text-to-video" 
  --prompt "Your prompt here" 
  --output ./output 
  duration=5

Generate an image

python scripts/generate_image.py generate 
  --model "alibaba/wan-2.6/text-to-image" 
  --prompt "Your prompt here" 
  --output ./output

Image-to-video

python scripts/generate_video.py generate 
  --model "alibaba/wan-2.6/image-to-video" 
  --image "https://example.com/photo.jpg" 
  --prompt "Animate this scene" 
  --output ./output 
  resolution=1080p duration=5

Upload a local file

python scripts/generate_video.py upload ./local-file.jpg

Run python scripts/generate_video.py generate --help or python scripts/generate_image.py generate --help for all options. Extra model params can be passed as key=value.

Pricing

Wan 2.6 — Video Models (per second, by resolution)

All video prices are per second of video generated. Atlas Cloud pricing varies by resolution.

Text-to-Video & Video-to-Video

Resolution fal.ai Atlas Cloud Savings
480p - $0.04/s -
720p $0.10/s $0.08/s 20% off
1080p $0.15/s $0.12/s 20% off

Image-to-Video

Resolution fal.ai Atlas Cloud Savings
720p $0.10/s $0.10/s -
1080p $0.15/s $0.15/s -

Image-to-Video Flash

Resolution Atlas Cloud
All $0.018/s

Wan 2.6 — Image Models (per image)

Model Original Atlas Cloud Savings
Text-to-Image $0.03 $0.021 30% off
Image Edit $0.035 $0.021 40% off

Wan 2.5 — Video Models (per second, flat rate)

Model Atlas Cloud Duration
Text-to-Video $0.035/s 5/10 seconds
Image-to-Video $0.035/s 5/10 seconds

fal.ai pricing sourced from fal.ai/models/wan.

Available Models

Wan 2.6 Video

Model ID Type Resolution Duration
alibaba/wan-2.6/text-to-video Text-to-Video 480p–1080p 5/10/15s
alibaba/wan-2.6/image-to-video Image-to-Video 720p–1080p 5/10/15s
alibaba/wan-2.6/image-to-video-flash Image-to-Video (Fast) 720p–1080p 5/10/15s
alibaba/wan-2.6/video-to-video Video-to-Video 480p–1080p 5/10s

Wan 2.6 Image

Model ID Type Max Size
alibaba/wan-2.6/text-to-image Text-to-Image 2184×936
alibaba/wan-2.6/image-edit Image Editing 24 presets

Wan 2.5 Video

Model ID Type Resolution Duration
alibaba/wan-2.5/text-to-video Text-to-Video 480p–1080p 5/10s
alibaba/wan-2.5/image-to-video Image-to-Video 480p–1080p 5/10s

Parameters

Wan 2.6 — Text-to-Video

Parameter Type Required Default Description
prompt string Yes - Video description
negative_prompt string No - What to exclude from the video
size string No 1280*720 Output size (see Size Options below)
duration integer No 5 5, 10, or 15 seconds
shot_type string No - multi_camera for dynamic shots, single_camera for stable framing
audio string No - Audio URL to guide generation with synchronized sound
generate_audio boolean No false Generate synchronized audio
enable_prompt_expansion boolean No false Expand prompt for better results
seed integer No random For reproducible results

Wan 2.6 — Image-to-Video

Same as text-to-video (without size), plus:

Parameter Type Required Default Description
image string Yes - Source image URL
resolution string No 720p 720p, 1080p

Wan 2.6 — Video-to-Video

Parameter Type Required Default Description
prompt string Yes - Video description (use character1, character2 to reference characters in video)
negative_prompt string No - What to exclude
videos array Yes - Source video URLs (max 100MB each, 2-30s duration)
size string No 1280*720 Output size
duration integer No 5 5 or 10 seconds
shot_type string No - multi_camera or single_camera
enable_prompt_expansion boolean No false Expand prompt for better results
seed integer No random For reproducible results

Wan 2.6 — Text-to-Image

Parameter Type Required Default Description
prompt string Yes - Image description
negative_prompt string No - What to exclude
size string No 1024*1024 Output size (27 presets, see below)
enable_prompt_expansion boolean No false Expand prompt
enable_sync_mode boolean No false Wait for result synchronously
enable_base64_output boolean No false Return Base64 instead of URL
seed integer No random For reproducible results

Wan 2.6 — Image Edit

Same as text-to-image, plus:

Parameter Type Required Default Description
images array Yes - Images to edit (max 4, 384-5000px per side)

Wan 2.5 — Text-to-Video

Parameter Type Required Default Description
prompt string Yes - Video description
negative_prompt string No - What to exclude
size string No 1280*720 Output size (13 presets, including 480p)
duration integer No 5 5 or 10 seconds
audio string No - Audio URL for guided generation
generate_audio boolean No false Generate synchronized audio
enable_prompt_expansion boolean No false Expand prompt
seed integer No random For reproducible results

Wan 2.5 — Image-to-Video

Same as Wan 2.5 text-to-video (without size), plus:

Parameter Type Required Default Description
image string Yes - Source image URL
resolution string No 720p 480p, 720p, 1080p

Video Size Options (Wan 2.6)

T2V / V2V (10 presets): 1280*720, 720*1280, 960*960, 1920*1080, 1080*1920, 1280*960, 960*1280, 1920*816, 816*1920, 1280*544

Image Size Options (Wan 2.6 — 27 presets): 1024*1024, 1280*720, 720*1280, 1280*960, 960*1280, 1536*1024, 1024*1536, 1280*1280, 1536*1536, 2048*1024, 1024*2048, 1536*1280, 1280*1536, 1680*720, 720*1680, 2016*864, 864*2016, 1536*864, 864*1536, 2184*936, 936*2184, 1400*1050, 1050*1400, 1680*1050, 1050*1680, 1176*1176, 1560*1560

Workflow: Submit → Poll → Download

Text-to-Video Example (Wan 2.6)

# Step 1: Submit
curl -s -X POST "https://api.atlascloud.ai/api/v1/model/generateVideo" 
  -H "Authorization: Bearer $ATLASCLOUD_API_KEY" 
  -H "Content-Type: application/json" 
  -d '{
    "model": "alibaba/wan-2.6/text-to-video",
    "prompt": "A drone shot flying over ancient ruins at golden hour, camera slowly descending toward a central courtyard",
    "size": "1920*1080",
    "duration": 10,
    "shot_type": "multi_camera",
    "generate_audio": true,
    "enable_prompt_expansion": true
  }'
# Returns: { "code": 200, "data": { "id": "prediction-id" } }

# Step 2: Poll (every 5 seconds until completed)
curl -s "https://api.atlascloud.ai/api/v1/model/prediction/{prediction-id}" 
  -H "Authorization: Bearer $ATLASCLOUD_API_KEY"
# Returns: { "code": 200, "data": { "status": "completed", "outputs": ["https://...video-url..."] } }

# Step 3: Download
curl -o output.mp4 "VIDEO_URL_FROM_OUTPUTS"

Image-to-Video Example (Wan 2.6)

curl -s -X POST "https://api.atlascloud.ai/api/v1/model/generateVideo" 
  -H "Authorization: Bearer $ATLASCLOUD_API_KEY" 
  -H "Content-Type: application/json" 
  -d '{
    "model": "alibaba/wan-2.6/image-to-video",
    "image": "https://example.com/landscape.jpg",
    "prompt": "The camera slowly zooms in as clouds drift across the sky and leaves rustle in the wind",
    "resolution": "1080p",
    "duration": 5,
    "generate_audio": true
  }'

Video-to-Video Example (Wan 2.6)

curl -s -X POST "https://api.atlascloud.ai/api/v1/model/generateVideo" 
  -H "Authorization: Bearer $ATLASCLOUD_API_KEY" 
  -H "Content-Type: application/json" 
  -d '{
    "model": "alibaba/wan-2.6/video-to-video",
    "videos": ["https://example.com/original-video.mp4"],
    "prompt": "Transform character1 into a cartoon anime character, keep the background unchanged",
    "size": "1280*720",
    "duration": 5,
    "shot_type": "single_camera"
  }'

Audio-Guided Generation Example (Wan 2.6)

curl -s -X POST "https://api.atlascloud.ai/api/v1/model/generateVideo" 
  -H "Authorization: Bearer $ATLASCLOUD_API_KEY" 
  -H "Content-Type: application/json" 
  -d '{
    "model": "alibaba/wan-2.6/text-to-video",
    "prompt": "A jazz band performing on stage, musicians playing saxophone and piano",
    "audio": "https://example.com/jazz-music.mp3",
    "size": "1920*1080",
    "duration": 10
  }'

Text-to-Image Example (Wan 2.6)

curl -s -X POST "https://api.atlascloud.ai/api/v1/model/generateImage" 
  -H "Authorization: Bearer $ATLASCLOUD_API_KEY" 
  -H "Content-Type: application/json" 
  -d '{
    "model": "alibaba/wan-2.6/text-to-image",
    "prompt": "A cyberpunk cityscape at night, neon signs reflected in rain puddles, photorealistic",
    "size": "1680*720",
    "enable_prompt_expansion": true
  }'
# Returns: { "code": 200, "data": { "id": "prediction-id" } }

Image Editing Example (Wan 2.6)

curl -s -X POST "https://api.atlascloud.ai/api/v1/model/generateImage" 
  -H "Authorization: Bearer $ATLASCLOUD_API_KEY" 
  -H "Content-Type: application/json" 
  -d '{
    "model": "alibaba/wan-2.6/image-edit",
    "prompt": "Change the background to a sunset beach scene, keep the person unchanged",
    "images": ["https://example.com/photo.jpg"],
    "size": "1280*720"
  }'

Image-to-Video Flash Example (Wan 2.6)

curl -s -X POST "https://api.atlascloud.ai/api/v1/model/generateVideo" 
  -H "Authorization: Bearer $ATLASCLOUD_API_KEY" 
  -H "Content-Type: application/json" 
  -d '{
    "model": "alibaba/wan-2.6/image-to-video-flash",
    "image": "https://example.com/portrait.jpg",
    "prompt": "The person slowly turns and smiles",
    "resolution": "720p",
    "duration": 5
  }'

Polling Logic

  • processing / starting / running → wait 5s, retry (typically takes ~30-120s for video, ~5-10s for image)
  • completed / succeeded → done, get URL from data.outputs[]
  • failed → error, read data.error

Atlas Cloud MCP Tools (if available)

If the Atlas Cloud MCP server is configured, use built-in tools:

atlas_generate_video(model="alibaba/wan-2.6/text-to-video", params={...})
atlas_generate_image(model="alibaba/wan-2.6/text-to-image", params={...})
atlas_get_prediction(prediction_id="...")

Implementation Guide

  1. Determine task type:

    • Text-to-video: user describes a scene/action in text → 2.6 T2V or 2.5 T2V
    • Image-to-video: user provides an image to animate → 2.6 I2V or 2.6 I2V Flash (budget)
    • Video-to-video: user wants to transform an existing video → 2.6 V2V
    • Text-to-image: user wants to generate an image → 2.6 T2I
    • Image editing: user wants to modify existing images → 2.6 Image Edit
  2. Choose model version:

    • Wan 2.6 (recommended): Latest generation, best quality, multi-camera, audio-guided, V2V
    • Wan 2.6 Flash: Budget I2V at $0.018/s — ideal for drafts
    • Wan 2.5: Cost-effective at $0.035/s flat rate, supports 480p
  3. Extract parameters:

    • Prompt: describe scene, action, camera movement
    • Negative prompt: exclude undesired elements ("blurry, distorted, watermark")
    • Resolution: 480p for drafts, 720p default, 1080p for final output
    • Duration: 5s default, up to 15s for 2.6, up to 10s for 2.5
    • Shot type (2.6 only): multi_camera for dynamic shots, single_camera for stable framing
    • Audio: provide URL for audio-guided generation, or set generate_audio: true
    • Prompt expansion: set enable_prompt_expansion: true for auto-optimized prompts
  4. Execute: POST to generateVideo/generateImage API → poll result → download

  5. Present result: show file path, offer to play/open

Prompt Tips

  • Scene + Action: "A samurai draws his sword in a bamboo forest at dawn, mist rising from the ground"
  • Camera direction: "Camera slowly dollies forward...", "Aerial tracking shot of...", "First-person POV walking through..."
  • Multi-camera: Use shot_type: "multi_camera" with prompts like "Cut between close-up and wide shot..."
  • V2V character control: Reference characters as character1, character2 — e.g., "Transform character1 into an anime character"
  • Audio-guided: Provide an audio URL to sync video with music, dialogue, or sound effects
  • Negative prompts: "blurry, low quality, distorted faces, watermark, text overlay"

Model Comparison

Feature Wan 2.6 Wan 2.5
Video T2V Price (720p) $0.08/s $0.035/s
Video I2V Price (720p) $0.10/s $0.035/s
Max Resolution 1080p 1080p
Max Duration 15s 10s
Shot Type Control Yes No
Audio-Guided Yes Yes
Video-to-Video Yes No
Text-to-Image Yes ($0.021) No
Image Editing Yes ($0.021) No
Flash/Fast Variants I2V Flash ($0.018/s) Yes
Prompt Expansion Yes Yes

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,034
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,018
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,017
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,013
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,013
Skill 文件
  • SKILL.md
    • Wan 2.6 & 2.5 — AI Video & Image Generation by Alibaba
    • Key Capabilities
    • Setup
    • Script Usage
      • List available models
      • Generate a video
      • Generate an image
      • Image-to-video
      • Upload a local file
    • Pricing
      • Wan 2.6 — Video Models (per second, by resolution)
        • Text-to-Video & Video-to-Video
        • Image-to-Video
        • Image-to-Video Flash
      • Wan 2.6 — Image Models (per image)
      • Wan 2.5 — Video Models (per second, flat rate)
    • Available Models
      • Wan 2.6 Video
      • Wan 2.6 Image
      • Wan 2.5 Video
    • Parameters
      • Wan 2.6 — Text-to-Video
      • Wan 2.6 — Image-to-Video
      • Wan 2.6 — Video-to-Video
      • Wan 2.6 — Text-to-Image
      • Wan 2.6 — Image Edit
      • Wan 2.5 — Text-to-Video
      • Wan 2.5 — Image-to-Video
      • Video Size Options (Wan 2.6)
    • Workflow: Submit → Poll → Download
      • Text-to-Video Example (Wan 2.6)
      • Image-to-Video Example (Wan 2.6)
      • Video-to-Video Example (Wan 2.6)
      • Audio-Guided Generation Example (Wan 2.6)
      • Text-to-Image Example (Wan 2.6)
      • Image Editing Example (Wan 2.6)
      • Image-to-Video Flash Example (Wan 2.6)
      • Polling Logic
      • Atlas Cloud MCP Tools (if available)
    • Implementation Guide
    • Prompt Tips
    • Model Comparison
  • 项目或源文件

相关 Skill

更多
Agnes AI 免费图片视频生成 Agnes AI 免费图片视频生成 Generate images and videos using Agnes AI models (agnes-image-2.0-flash, agnes-image-2.1-flash, agnes-video-v2.0). Trigger when user wants to generate images from text, edit images, create videos from text or images, or mentions '生图', '生视频', 'image generation', 'video generation', 'Agnes AI', 'agnes-ai.com'.
Router9 Router9 All-in-one AI skills via Router9 API — speech recognition, text-to-speech, image description, OCR, image generation, and file storage. Use when the user asks...
gpt-image-prompting-guide gpt-image-prompting-guide 基于 OpenAI 官方《GPT Image Generation Models Prompting Guide》的专业提示词生成技能。帮助用户按照官方最佳实践创建高质量、可控的 GPT Image 2 提示词。
Self Dev Ai Drama Video Production Self Dev Ai Drama Video Production AI竖屏短剧全流程生产Skill。图生视频(z-ai video)为主管线,FFmpeg后制合成,覆盖分镜图生成、TTS配音、Motion Prompt增强、批量图生视频、ffmpeg拼接烧录字幕、标准化交付检查全链路。
即梦-文生图 CLI 技能,让你的智能体通过 即梦 CLI 生成图片 即梦-文生图 CLI 技能,让你的智能体通过 即梦 CLI 生成图片 Provides comprehensive guidance for executing text-to-image generation via the dreamina CLI for 即梦 (Dreamina/Jimeng). The dreamina CLI is ByteDance's command-line tool for submitting image generation tasks to 即梦 models (3.0 through 5.0), supporting credit management, synchronous and asynchronous task submission, result polling, and session-based project organization. Use when the user wants to run an approved prompt through the CLI to generate an image; mentions "dreamina", "即梦CLI", "命令行生图", "生成