Skip to main content
POST
OpenAI images.edit 兼容
Aligned with POST https://api.openai.com/v1/images/edits (multipart/form-data). Synchronous. Use this for file / base64 upload. Async /openai/images only accepts public URLs. input_fidelity (high / low) applies on edit. Models: gpt-image-2, gpt-image-2.5-flare, gpt-image-2.5-sunburst. See Compat overview.

Authorizations

Authorization
string
header
required

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

Response

200 - application/json
created
number
required

创建时间(unix 秒)

data
object[]
required

图片列表

background
enum<string>
Available options:
transparent,
opaque
output_format
enum<string>
Available options:
png,
webp,
jpeg
quality
enum<string>
Available options:
low,
medium,
high
size
string
usage
object