Wan AI

Wan AI API

Access Wan AI instantly with Puter.js, and add AI to any app in a few lines of code without backend or API keys.

// npm install @heyputer/puter.js
import { puter } from '@heyputer/puter.js';

puter.ai.txt2vid("A sunrise drone shot flying over a calm ocean", {
    model: "wan-ai/wan2.2-t2v-a14b"
}).then(videoElement => {
    document.body.appendChild(videoElement);
});
<html>
<body>
    <script src="https://js.puter.com/v2/"></script>
    <script>
        puter.ai.txt2vid("A sunrise drone shot flying over a calm ocean", {
            model: "wan-ai/wan2.2-t2v-a14b"
        }).then(videoElement => {
            document.body.appendChild(videoElement);
        });
    </script>
</body>
</html>

List of Wan AI Models

Video

Wan 2.7 Text-to-Video

wan-ai/wan2.7-t2v

Wan 2.7 Text-to-Video is a diffusion-based video generation model from Alibaba, designed to produce cinematic video clips directly from text prompts. It generates native 720p and 1080p video with durations from 2 to 15 seconds, supporting flexible aspect ratios including 16:9, 9:16, and 1:1. A standout feature is optional audio input, which synchronizes character motion and lip movement to a provided audio track during generation. The model responds well to detailed, structured prompts and supports multi-shot narrative control through prompt language alone. It's part of a broader four-model suite that includes image-to-video, reference-to-video, and video editing capabilities. Best suited for marketing content, social media clips, film pre-visualization, and any production pipeline that needs programmatic access to high-quality video generation.

Image

Wan2.6 Image

wan-ai/wan2.6-image

Wan 2.6 Image is a 20-billion-parameter diffusion-based image generation and transformation model developed by Alibaba Cloud. Built on a Multimodal Diffusion Transformer (MMDiT) architecture, it supports text-to-image generation, image-to-image editing, and multi-reference style transfer. The model accepts up to three reference images per request, allowing developers to explicitly control style, subject, and composition by referencing inputs in the prompt (e.g., "image 1" for style, "image 2" for background). It generates outputs up to 2048×2048 pixels across a wide range of aspect ratios. Wan 2.6 Image is particularly strong at localized content generation, with sophisticated understanding of Asian cultural contexts and aesthetics. It's well suited for e-commerce product visualization, brand asset creation, marketing materials, and automated content pipelines where controllability and visual consistency matter more than pure artistic exploration.

Video

Wan 2.2 Image-to-Video 14B

wan-ai/wan2.2-i2v-a14b

Wan 2.2 I2V A14B is an open-source image-to-video generation model that transforms static images into 5-second videos at 480P or 720P resolution. It uses a Mixture-of-Experts (MoE) architecture with dual 14B-parameter experts to achieve stable video synthesis with reduced unrealistic camera movements and enhanced support for diverse stylized scenes.

Video

Wan 2.2 Text-to-Video 14B

wan-ai/wan2.2-t2v-a14b

Wan 2.2 T2V A14B is an open-source text-to-video generation model that creates 5-second videos at 480P or 720P resolution from text prompts. Built with a Mixture-of-Experts (MoE) architecture featuring specialized high-noise and low-noise experts, it delivers cinematic-quality output with granular control over lighting, composition, and motion.

Frequently Asked Questions

What is this Wan AI API about?

The Wan AI API gives you access to models for AI image generation and video generation. Through Puter.js, you can start using Wan AI models instantly with zero setup or configuration.

Which Wan AI models can I use?

Puter.js supports a variety of Wan AI models, including Wan 2.7 Text-to-Video, Wan2.6 Image, Wan 2.2 Image-to-Video 14B, and more. Find all AI models supported by Puter.js in the AI model list.

How much does it cost?

With the User-Pays model, users cover their own AI costs through their Puter account. This means you can build apps without worrying about infrastructure expenses.

What is Puter.js?

Puter.js is a JavaScript library that provides access to AI, storage, and other cloud services directly from a single API. It handles authentication, infrastructure, and scaling so you can focus on building your app.

Does this work with React / Vue / Vanilla JS / Node / etc.?

Yes — the Wan AI API through Puter.js works with any JavaScript framework, Node.js, or plain HTML. Just include the library and start building. See the documentation for more details.