Skip to main content
POST
/
vendors
/
alibaba
/
v1
/
wan2.2-i2v-plus
/
generation
Create Generation Task
curl --request POST \
  --url https://api.mulerouter.ai/vendors/alibaba/v1/wan2.2-i2v-plus/generation \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "prompt": "<string>",
  "image": "<string>",
  "negative_prompt": "<string>",
  "resolution": "1080P",
  "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-plus model. This is the professional version with enhanced stability.

Key Features

  • Image-to-video generation
  • 480P or 1080P resolution options
  • Fixed 5s duration
  • 30fps output
  • Optional first and last frame specification

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": "Flowers swaying in the wind",
  "image": "https://example.com/flower.jpg",
  "resolution": "1080P",
  "duration": 5
}

With Last Frame

{
  "prompt": "Smooth transition between two scenes",
  "image": "https://example.com/start.jpg",
  "last_frame": "https://example.com/end.jpg",
  "resolution": "1080P",
  "duration": 5
}

With Negative Prompt

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

Parameters

duration

  • Fixed: 5 seconds
  • FPS: 30fps

prompt

  • Max length: 800 characters

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:1080P

Output resolution tier:

  • 480P
  • 1080P
Available options:
480P,
1080P
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