
Wan 2.6 API
activeAlibaba's Wan 2.6 video generation model. Supports text-to-video and image-to-video with high-fidelity output.
Quick Start
Send a request to the Wan 2.6 API:
| 1 | curl -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
/api/v1/videos/generationsSend a POST request with your API key to generate content using Wan 2.6.
Headers
Bearer YOUR_API_KEY
application/json
Body Parameters
Model identifier: wan-2-6
Text description of the video
Video duration: 5, 10, or 15 seconds Defaults to 5.
Output resolution: 720p or 1080p Defaults to 720p.
Array of image URLs for image-to-video mode
Array of video URLs for video-to-video mode
Example Request
| 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:
/api/v1/tasks/{task_id}Returns the current status of a generation task. Poll until status is 'completed' or 'failed'.
| 1 | curl 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:
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?
Ready to use Wan 2.6?
Get Your API Key →