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:
flux-1.1-pro
Example:

"flux-1.1-pro"

prompt
string
required

图片描述文字。

Example:

"一只可爱的北极熊宝宝"

n
integer
default:1

生成图片数量。

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

输出图片尺寸,如 1024x1024。推荐 1024x1024

Example:

"1024x1024"

output_format
enum<string>

输出图片格式。

Available options:
jpeg,
png
Example:

"jpeg"

seed
integer

随机种子,用于复现生成结果。

Response

图片生成成功

created
integer

创建时间戳

data
object[]