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

API Endpoint

POST/api/v1/videos/generations
Send a POST request with your API key to generate content using Wan 2.6.

Headers

HeaderTipoObrigatórioDescrição
AuthorizationstringObrigatórioBearer YOUR_API_KEY
Content-TypestringObrigatórioapplication/json

Body Parameters

ParâmetroTipoObrigatórioDescrição
modelstringObrigatórioModel identifier: "wan-2-6"
promptstringObrigatórioText description of the video
durationstringOpcionalVideo duration: "5", "10", or "15" seconds (Padrão: 5)
resolutionstringOpcionalOutput resolution: "720p" or "1080p" (Padrão: 720p)
image_urlsarrayOpcionalArray of image URLs for image-to-video mode
video_urlsarrayOpcionalArray of video URLs for video-to-video mode

Example Request

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

Example Response

Successful task creation response.

{
  "code": 200,
  "message": "success",
  "data": {
    "task_id": "n35xxxx_wan26",
    "status": "IN_PROGRESS"
  }
}

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
curl https://apiin.one/api/v1/tasks/task_abc123 \
  -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:

Playground da APIPOST

Error Codes

{
  "error": {
    "code": 400,
    "message": "Invalid parameters",
    "type": "invalid_request"
  }
}

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?

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

Ready to use Wan 2.6?

Get Your API Key →