Skip to main content
POST
Generate an image

Authorizations

Authorization
string
header
required

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

Body

application/json
model
enum<string>
required

model ID

Available options:
qwen-image-plus
Example:

"qwen-image-plus"

prompt
string
required

Image description text.

Example:

"A cute Ghibli-style cat"

n
integer
default:1

Number of images to generate.

Required range: 1 <= x <= 4
size
string

Output image size, e.g. 1024x1024 or 768x1344.

Example:

"1024x1024"

quality
enum<string>

Image quality, standard or hd.

Available options:
standard,
hd
response_format
enum<string>
default:url

Return a URL or Base64-encoded JSON.

Available options:
url,
b64_json

Response

Image generated successfully

created
integer

Creation timestamp

data
object[]