Skip to main content
POST
/
vendors
/
alibaba
/
v1
/
wan2.2-i2v-flash
/
generation
Create Generation Task
curl --request POST \
  --url https://api.mulerouter.ai/vendors/alibaba/v1/wan2.2-i2v-flash/generation \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "<string>",
  "image": "<string>",
  "negative_prompt": "<string>",
  "resolution": "720P",
  "duration": 5,
  "prompt_extend": true,
  "seed": 1073741823,
  "safety_filter": true
}
'
{
  "task_info": {
    "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
    "status": "pending",
    "created_at": "2023-11-07T05:31:56Z",
    "updated_at": "2023-11-07T05:31:56Z"
  }
}

Documentation Index

Fetch the complete documentation index at: https://mulerouter.ai/docs/llms.txt

Use this file to discover all available pages before exploring further.

This API supports Alibaba Tongyi Wanxiang (Wan2) video generation models. Please refer to Alibaba Cloud’s official documentation for more details.

Overview

Generate videos from images using the wan2.2-i2v-flash model. This is the fast version with 50% speed improvement compared to the Plus version.

Key Features

  • Fast image-to-video generation (50% faster)
  • 480P/720P resolution options
  • Fixed 5s duration
  • 30fps output
  • Optional video effect templates

Image Requirements

PropertyRequirement
FormatsJPEG, JPG, PNG (no transparency), BMP, WEBP
Dimensions[360, 2000] pixels for both width and height
File SizeMax 10MB
InputPublic URL or Base64 encoded data

Example Requests

Basic Image-to-Video

{
  "prompt": "Character turns head and smiles",
  "image": "https://example.com/portrait.jpg",
  "resolution": "720P",
  "duration": 5
}

With Video Effect Template

{
  "prompt": "Gentle motion, camera slowly pans right",
  "image": "https://example.com/scene.jpg",
  "template": "solaron",
  "resolution": "720P",
  "duration": 5
}

With Base64 Image

{
  "prompt": "Subject starts moving slowly",
  "image": "data:image/jpeg;base64,/9j/4AAQSkZJRg...",
  "resolution": "720P",
  "duration": 5
}

Parameters

template

  • Optional: Yes
  • Description: Apply a video effect template
  • Use case: Create specific visual effects

duration

  • Fixed: 5 seconds
  • FPS: 30fps

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
prompt
string
required

Motion/story description (max 800 characters).

Maximum string length: 800
image
string
required

First-frame image (URL or Base64). Supported formats: JPEG/JPG/PNG/BMP/WEBP, 360-2000px, ≤10MB.

negative_prompt
string

Negative prompt describing unwanted content (max 500 characters).

Maximum string length: 500
resolution
enum<string>
default:720P

Output resolution tier:

  • 480P
  • 720P
Available options:
480P,
720P
duration
enum<integer>

Video duration in seconds (30 fps). Fixed at 5 seconds.

Available options:
5
prompt_extend
boolean
default:true

Enable intelligent prompt rewriting.

seed
integer

Random seed [0, 2147483647].

Required range: 0 <= x <= 2147483647
safety_filter
boolean | null
default:true

Enable content safety filter. Defaults to true. Set to false to disable content safety inspection.

Response

202 - application/json

Accepted - Task created successfully

task_info
object