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

multipart/form-data
model
enum<string>
required

模型 ID

Available options:
flux-1-kontext-pro
image
file
required

需要编辑的图片文件。

prompt
string
required

编辑指令。必须为英文。

Example:

"Change the background to a sunset beach"

n
integer
default:1

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

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

输出图片尺寸,如 1024x1024

Response

图片编辑成功

created
integer

Unix 时间戳

Example:

1774002799

data
object[]