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.6-flare"
prompt
string
required

Used to describe the generated images. For GIF output, describe the subject, the motion and how the loop should close.

Maximum string length: 32000
image_urls
string[]

Publicly reachable source or reference image URLs. Not supported together with gif or svg output.

Maximum array length: 16
output_format
enum<string>
default:png

Output format. gif and svg are new in GPT Image 2.6 and are only available for text-to-image; svg returns a single result, and neither format supports output_compression or transparent backgrounds.

Available options:
png,
jpeg,
webp,
gif,
svg
complexity
enum<string>
default:high

How much the model plans before rendering. low suits focused edits such as changing a background; high helps with dense text and complex layouts. Defaults to high and costs nothing extra.

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

Output fidelity tier. Must be at least medium when background is transparent.

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

Background mode. transparent returns an alpha-channel image and requires quality of medium or higher.

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

Aspect ratio of the generated 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

Resolution tier of the generated images.

Available options:
1K,
2K,
4K
size
string

Exact pixel size as WIDTHxHEIGHT, for example 1024x1536. Each side must be a multiple of 16 and at most 3840. Takes precedence over resolution and aspect_ratio, and sets the GIF frame size.

frame_count
integer
default:9

Number of GIF frames, 2-64. Only read when output_format is gif; defaults to 9.

Required range: 2 <= x <= 64
frame_duration_ms
integer
default:200

Duration of each GIF frame in milliseconds, 20-2000. Only read when output_format is gif; defaults to 200.

Required range: 20 <= x <= 2000
output_compression
integer

Compression level 0-100 for jpeg and webp output. Not supported by gif or svg.

Required range: 0 <= x <= 100

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