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-kontext-pro
Example:

"flux-1-kontext-pro"

prompt
string
required

图片描述。必须为英文。

Example:

"A cute baby polar bear"

n
integer
default:1

生成图片数量。仅支持 1。

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

输出图片尺寸,如 1024x1024

Example:

"1024x1024"

output_format
enum<string>

输出图片格式。

Available options:
jpeg,
png
seed
integer

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

Response

图片生成成功

created
integer

Unix 时间戳

Example:

1774002799

data
object[]