Skip to main content
POST
生成图片

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

模型 ID

Available options:
qwen-image-plus
Example:

"qwen-image-plus"

prompt
string
required

图片描述文字。

Example:

"吉卜力风格的可爱猫咪"

n
integer
default:1

生成图片数量。

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

输出图片尺寸,如 1024x1024768x1344

Example:

"1024x1024"

quality
enum<string>

图片质量,standardhd

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

返回 URL 或 Base64 编码的 JSON。

Available options:
url,
b64_json

Response

图片生成成功

created
integer

创建时间戳

data
object[]