Skip to main content
POST
Generate image

Authorizations

Authorization
string
header
required

Bearer authentication using API key

Body

application/json

Request payload

Request format for image generation models

aspect_ratio
enum<string>
required

Aspect ratio

Available options:
1:1,
1:2,
2:1,
1:3,
3:1,
2:3,
3:2,
3:4,
4:3,
4:5,
5:4,
9:16,
16:9,
9:21,
21:9
model
enum<string>
required

Model name to use for the request

Available options:
alibaba/qwen-image-3-t2i
prompt
string
required

Text prompt for generation

size
enum<string>
required

Size

Available options:
1k,
2k
n
integer
default:1

Number of outputs to generate

Required range: 1 <= x <= 6
prompt_expansion_enable
boolean
default:true

Whether to automatically expand the prompt for better results

seed
integer

Random seed for generation

Required range: -1 <= x <= 2147483647

Response

200 - application/json

Successful response

Standard async task creation response

code
string
required

Status code returned by the service

Example:

"success"

data
object
required

Response payload containing task details

message
string
required

Additional information about the request result