Skip to main content
POST
Wan 2.2 T2I Flash

Authorizations

Authorization
string
header
required

API Key authentication. Format: Bearer YOUR_API_KEY.

Body

application/json
prompt
string
required

Image description text

Required string length: 1 - 800
negative_prompt
string

Negative prompt

Maximum string length: 500
size
string
default:1024*1024

Image size. Width and height both in [512, 1440], max 1440*1440

n
integer
default:4

Number of images to generate

Required range: 1 <= x <= 4
seed
integer

Random seed

Required range: 0 <= x <= 2147483647
prompt_extend
boolean
default:true

Enable intelligent prompt rewriting

Response

Task submitted successfully

code
integer
required

Response code, 0 indicates success

Example:

0

message
string
required

Response message

Example:

"success"

data
object
required

Detailed data about the submitted asynchronous task.