Video Alibaba

Wan API

Use the Wan API via RunAPI with a model skill, unified auth, and pay-as-you-go pricing.

runapi.ai
curl -X POST https://runapi.ai/api/v1/wan/image_to_video \
  -H "Authorization: Bearer $RUNAPI_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "wan-2.7-text-to-video",
  "image_url": "https://cdn.runapi.ai/public/samples/image.jpg",
  "prompt": "Generate a 5-second video of a cat jumping onto a bookshelf, natural indoor lighting, handheld camera feel."
}'
import { WanClient } from "@runapi.ai/wan";

const client = new WanClient();
const result = await client.imageToVideo.run({
    model: "wan-2.7-text-to-video",
    image_url: "https://cdn.runapi.ai/public/samples/image.jpg",
    prompt: "Generate a 5-second video of a cat jumping onto a bookshelf, natural indoor lighting, handheld camera feel.",
});
<?php

require __DIR__ . "/vendor/autoload.php";

use RunApi\Wan\WanClient;

$client = new WanClient();
$result = $client->imageToVideo->run([
        'model' => 'wan-2.7-text-to-video',
        'image_url' => 'https://cdn.runapi.ai/public/samples/image.jpg',
        'prompt' => 'Generate a 5-second video of a cat jumping onto a bookshelf, natural indoor lighting, handheld camera feel.',
]);
require "runapi/wan"

client = RunApi::Wan::Client.new
result = client.image_to_video.run(
    model: "wan-2.7-text-to-video",
    image_url: "https://cdn.runapi.ai/public/samples/image.jpg",
    prompt: "Generate a 5-second video of a cat jumping onto a bookshelf, natural indoor lighting, handheld camera feel."
)
npx skills add runapi-ai/wan -g
# Claude Code
claude mcp add runapi -s user -- npx -y @runapi.ai/mcp

# Codex
codex plugin install runapi-mcp@agents

# Cursor / Windsurf / VS Code
npx @runapi.ai/mcp init cursor
@runapi.ai/wan v1
OVERVIEW

About Wan

Wan is Alibaba's comprehensive video and image generation suite covering text-to-video, image-to-video, video editing, speech-to-video, and storyboard generation. It spans multiple model versions optimized for quality, speed, and specialized creative tasks.

Provider
Alibaba
Modality
Video

Available Versions

Variant Billing Pricing
wan-2.2-a14b-image-to-video-turbo call $0.40 View →
wan-2.2-a14b-speech-to-video-turbo second $0.24 View →
wan-2.2-a14b-text-to-video-turbo call $0.40 View →
wan-2.2-animate-move second $0.13 View →
wan-2.2-animate-replace second $0.13 View →
wan-2.5-image-to-video second $0.12 View →
wan-2.5-text-to-video second $0.12 View →
wan-2.6-edit-video second $0.14 View →
wan-2.6-flash-edit-video call $0.30 View →
wan-2.6-flash-image-to-video call $9.44 View →
wan-2.6-image-to-video second $0.58 View →
wan-2.6-text-to-video second $0.58 View →
wan-2.7-edit-video second $0.16 View →
wan-2.7-image call $0.05 View →
wan-2.7-image-pro call $0.12 View →
wan-2.7-image-to-video second $0.16 View →
wan-2.7-r2v second $0.16 View →
wan-2.7-text-to-video second $0.16 View →
PRICING

Wan Pricing

Endpoint Resolution Duration Price
image_to_video 480p, 720p — $0.40-$0.80 / video

Prices shown for wan-2.2-a14b-image-to-video-turbo. Other variants retain their own endpoint pricing.

Agent integration

Run Wan From an Agent

HOW IT WORKS

Get Started with Wan

  1. Create an API key

    Sign up and generate an API key from the dashboard.

  2. Pick a version

    Choose the version that best matches your quality and cost requirements.

  3. Send a request

    Submit your prompt and parameters to the model's documented endpoint.

  4. Get your result

    Poll the task or set a webhook, then download the completed output.

CONTEXT

About Wan on RunAPI

Wan is Alibaba's full-spectrum video and image model suite, one of the most complete open-weight video families available. Through RunAPI, all Wan versions share a single key and unified billing.

Provider
Alibaba
See all →
Modality
Video
Browse models →

Why Use Wan Through RunAPI

One auth, every provider

A single RunAPI API key unlocks the whole model catalog across all providers. No separate accounts to create, no API keys to rotate per integration, and no credential management overhead. Add a new model to your app by changing one parameter.

Unified pricing & billing

Per-call pricing in USD, billed monthly into a single invoice. No subscription tiers, no minimum spend, and failed generations are never charged. The pricing page and check_pricing API show exact costs before you commit to a model.

Schema-first SDK

Typed schemas, parameter constraints, and setup notes are packaged in the model skill so your implementation starts from the right contract. The skill loads into Claude Code, Codex, Gemini CLI, Cursor, and VS Code — your agent knows the correct request shape before you write a line of code.

Wan Questions

How many Wan versions are available?

Versions 2.2, 2.5, 2.6, and 2.7, each adding new capabilities. 2.7 is the latest with first-and-last-frame control and multi-reference video generation.

What is speech-to-video?

The speech-to-video endpoint on Wan 2.2 takes audio input and generates video with lip-synced motion driven by the speech content.

Does Wan support video editing?

Yes — Wan 2.6+ includes video editing and Wan 2.7 adds a dedicated video editing endpoint with subject and camera control.

Is Wan open source?

Partly — Wan 2.1 and 2.2 are released as open weights under the Apache 2.0 license. The later versions (2.5, 2.6, and 2.7) are closed, API-only models.

What is the R2V endpoint?

Wan 2.7 R2V uses the text-to-video endpoint with reference image, video, and audio inputs to anchor a character's appearance and voice across clips.

Which variant should I start with?

Pick the cheapest variant that meets your quality bar. Most teams start on the fast variant and graduate to pro for production.

SIMILAR MODELS

Similar Video Models

Start generating with Wan