Skip to main content
POST
Create image edit

Authorizations

Authorization
string
header
required

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

Body

GPT Image 2.6 public request contract. Confirm availability with GET /v1/models before use. One PNG still image or downloadable animated GIF per successful request, for 30 credits in either format. PNG is the default. Only 1K, quality=auto and n=1 are supported. SVG, JPEG, WebP, masks, output compression, frame_count and frame_duration_ms are not supported. The same limits apply to compatibility aliases and model_params; conflicting values return HTTP 400.

image
file
required

At most one reference image across all reference fields. This is the current APIAny.AI limit for this model.

Minimum string length: 1
model
string
required
Allowed value: "gpt-image-2.6"
prompt
string
required
Minimum string length: 1
size
enum<string>
default:auto

Accepted 1K size choices. Exact GIF pixel dimensions, frame count and timing may vary and cannot be configured.

Available options:
auto,
1:1,
3:2,
2:3,
1024x1024,
1536x1024,
1024x1536
resolution
enum<string>
default:1K
Available options:
1K
quality
enum<string>
default:auto
Available options:
auto
output_format
enum<string>
default:png
Available options:
png,
gif
n
integer
default:1
image_urls
string[]

At most one reference image across all reference fields. This is the current APIAny.AI limit for this model.

Maximum array length: 1
Minimum string length: 1
background
string
Allowed value: "auto"
aspect_ratio
any
aspectRatio
any
img_size
any
imageSize
any
image_size
any
outputFormat
any
format
any
count
any
num_images
any
numImages
any
images
any
input_urls
any
input_url
any
input_images
any
input_image_urls
any
reference_images
any
reference_image_urls
any
image_url
any
input_image
any
input_image_url
any
reference_image
any
reference_image_url
any
model_params
object

Use these controls at the top level or in model_params, without conflicting values. Unsupported controls return HTTP 400.

callback_url
string<uri>

Response

OpenAI-compatible image result.

created
integer
required
data
object[]
required
usage
object