Wan 2.6 - video generation API

Wan 2.6 API

active

Alibaba's Wan 2.6 video generation model. Supports text-to-video and image-to-video with high-fidelity output.

Alibabavideo80 credits/call
Provider
Alibaba
Pricing
80–325 credits per video (~$0.16–$0.65)
Speed
60–180 seconds
Output
video

Quick Start

Send a request to the Wan 2.6 API:

bash
1curl -X POST https://apiin.one/api/v1/videos/generations \
2 -H "Authorization: Bearer YOUR_API_KEY" \
3 -H "Content-Type: application/json" \
4 -d '{
5 "model": "wan-2-6",
6 "prompt": "A time-lapse of cherry blossoms blooming in a Japanese garden, cinematic",
7 "duration": "5",
8 "resolution": "720p"
9}'

API Endpoint

POST/api/v1/videos/generations

Send a POST request with your API key to generate content using Wan 2.6.

Headers

Body ParametersJSON
Authorization:string

Bearer YOUR_API_KEY

Content-Type:string

application/json

Body Parameters

Body ParametersJSON
model:string

Model identifier: wan-2-6

prompt:string

Text description of the video

duration:optional string

Video duration: 5, 10, or 15 seconds Defaults to 5.

resolution:optional string

Output resolution: 720p or 1080p Defaults to 720p.

image_urls:optional array

Array of image URLs for image-to-video mode

video_urls:optional array

Array of video URLs for video-to-video mode

Example Request

json
1{
2 "model": "wan-2-6",
3 "prompt": "A time-lapse of cherry blossoms blooming in a Japanese garden, cinematic",
4 "duration": "5",
5 "resolution": "720p"
6}

Example Response

Successful task creation response.

1{
2 "code": 200,
3 "message": "success",
4 "data": {
5 "task_id": "n35xxxx_wan26",
6 "status": "IN_PROGRESS"
7 }
8}

Check Task Status

For asynchronous tasks, poll the status endpoint to check when your task is complete:

GET/api/v1/tasks/{task_id}

Returns the current status of a generation task. Poll until status is 'completed' or 'failed'.

bash
1curl https://apiin.one/api/v1/tasks/task_abc123 \
2 -H "Authorization: Bearer aio_your_key"

Use Cases

  • Create marketing videos from text descriptions
  • Generate visual content for e-commerce product showcases
  • Build video generation features into SaaS platforms
  • Produce animated content from reference images

API Tester

Test the Wan 2.6 API directly from your browser:

API PlaygroundPOST

Error Codes

1{
2 "error": {
3 "code": 400,
4 "message": "Invalid parameters",
5 "type": "invalid_request"
6 }
7}

Frequently Asked Questions

How much does the Wan 2.6 API cost?

Credits depend on resolution and duration: 720p 5s costs 80 credits, 1080p 10s costs 220 credits, 1080p 15s costs 325 credits.

What resolutions does Wan 2.6 support?

Wan 2.6 supports 720p and 1080p resolution output for high-quality videos.

What durations are available?

Wan 2.6 supports 5, 10, and 15 second video generation.

Does Wan 2.6 support different input types?

Yes. Text-to-video, image-to-video (from reference images), and video-to-video (from reference video clips).

Why Use Wan 2.6 Through API in One?

1.Backed by Alibaba's advanced research
2.Up to 1080p resolution and 15s duration
3.Text, image, and video input supported
4.Unified billing with all other models

Ready to use Wan 2.6?

Get Your API Key →