Skip to main content
POST

인증

Authorization
string
header
필수

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

본문

application/json
model
string
필수
Allowed value: "gpt-image-2"
prompt
string
필수
size
string

Accepts auto, a positive WIDTHxHEIGHT target, or ratio shorthand such as 16:9. Every non-auto target is mapped to the nearest official popular size: 1024x1024, 1536x1024, 1024x1536, 2048x2048, 2048x1152, 3840x2160, or 2160x3840.

예시:

"auto"

"1024x1024"

"1280x720"

"16:9"

quality
enum<string>
기본값:auto

GPT-Image 2 rendering quality.

사용 가능한 옵션:
auto,
low,
medium,
high
n
integer
기본값:1

Number of images to generate. Billing scales with the image count.

필수 범위: 1 <= x <= 10
aspect_ratio
string
지원 중단

Deprecated ratio shorthand. The ratio and compatibility tier are mapped to the nearest official popular size.

resolution
enum<string>
지원 중단

Deprecated compatibility tier used to form the target size before nearest-official-size mapping.

사용 가능한 옵션:
1K,
2K,
4K
input_images
string<uri>[]
callback_url
string<uri>

응답

작업이 생성되었습니다.

task_id
string
필수
예시:

"task_123"

status
enum<string>
필수
사용 가능한 옵션:
pending,
processing
poll_url
string
필수
예시:

"/v1/tasks/task_123"

model
string