Skip to main content
POST
cURL

授权

Authorization
string
header
必填

在 Authorization 请求头中使用 Bearer APIPod_API_KEY。

请求体

application/json
model
string
必填

APIPod 公开模型 ID。

Allowed value: "gpt-image-2.5-sunburst"
prompt
string
必填

生成或编辑指令。 最大字符串长度:32000。

image_urls
string[]

可公开访问的源图片或参考图 URL。

quality
enum<string>
默认值:auto

输出质量档位。xhigh 与 max 为 GPT Image 2.5 独占档位;background 为 transparent(透明背景)时档位不得低于 medium。

可用选项:
auto,
low,
medium,
high,
xhigh,
max
background
enum<string>
默认值:auto

生成图片的背景模式。transparent 输出带透明通道的 PNG,要求 quality 为 medium 或 high。

可用选项:
auto,
opaque,
transparent
aspect_ratio
enum<string>
默认值:auto

输出宽高比。

可用选项:
auto,
1:1,
2:3,
3:2,
3:4,
4:3,
4:5,
5:4,
9:16,
16:9,
21:9
resolution
enum<string>
默认值:1K

输出分辨率档位。

可用选项:
1K,
2K,
4K

响应

200 - application/json

任务已受理

Standard response for task submission

code
integer
必填

HTTP 状态码。

data
Task Submit Data · object
必填

响应数据。

message
string
必填

响应消息。