Skip to main content
POST
cURL

Authorizations

Authorization
string
header
required

Use your APIPod API key as a Bearer token in the Authorization header.

Body

application/json
model
string
required

Public APIPod model ID.

Allowed value: "gpt-image-2"
prompt
string
required

Used to describe the generated images.

Maximum string length: 32000
image_urls
string[]
quality
enum<string>
default:auto

Output quality tier. Must be medium or high when background is transparent.

Available options:
auto,
low,
medium,
high
background
enum<string>
default:auto

Background mode of the generated image. transparent renders an alpha-channel PNG and requires quality to be medium or high.

Available options:
auto,
opaque,
transparent
aspect_ratio
enum<string>
default:auto

This parameter defines the aspect ratio of the image.

Available options:
auto,
1:1,
2:3,
3:2,
3:4,
4:3,
4:5,
5:4,
9:16,
16:9,
21:9
resolution
enum<string>
default:1K

The resolution of the generated images.

Available options:
1K,
2K,
4K

Response

200 - application/json

Task accepted

Standard response for task submission

code
integer
required
data
Task Submit Data · object
required

Data content for task submission

message
string
required