Images
Create image task
创建 GPT Image 2 异步生图任务。
POST
Create image task
Create an async GPT Image 2 task. Poll with Query image task and read
Success response:
result.image_url when completed.
Models
If
model is gpt-image-2 and quality is low / medium / high, billing uses the matching gpt-image-2-* model. Default quality is auto.
Request body
Example
Authorizations
API key from the console. Format: Bearer sk_xxx
Body
application/json
gpt-image-2 或 gpt-image-2-low / medium / high
Example:
"gpt-image-2"
Required string length:
1 - 4000Available options:
auto, low, medium, high Required range:
1 <= x <= 4ratio 别名
Maximum array length:
15