Skip to main content
POST
Since September 10, 2026, gpt-image-2 and gpt-image-2-hd have been renamed to gpt-image-2.5 and gpt-image-2.5-hd. Old IDs are not accepted; these are not compatibility aliases. The standard-service limits below apply only to the standard route of bare gpt-image-2.5, not to other separate models.

Standard specifications

The standard route supports text-to-image generation and editing with one reference image. Each request produces one medium-quality PNG image. Omitted n, quality, and output_format default to 1, medium, and png. Only JSON is accepted; file uploads and form submissions are not supported. Use one of the listed aspect-ratio labels or exact pixel sizes for size; omission or an empty string defaults to 1024x1024. The 3:4 and 4:3 labels are approximate: their longer edge changes from 1365 to 1360 pixels, a difference of 5 pixels. The old 1024x1365 / 1365x1024 sizes are explicitly rejected. If both size and aspect_ratio are supplied, they must resolve to the same pixels. The character workbench explicitly uses a 1920x1088 landscape character sheet or multi-view board. A multi-view board contains several views in one image, not multiple output images.

One reference image

A reference is optional for text-to-image generation and required for editing. Supply one public HTTPS image in JPEG, PNG, or WebP format, up to 5 MiB (5242880 bytes), 40000000 decoded pixels, and 23170 pixels on either edge. Both the URL and its final destination must pass public-network checks. image, images, image_urls, and input_reference are reference aliases. An item may be a URL string or an object containing only url or image_url, optionally wrapped in an array. At most one reference is allowed across all fields, including duplicate URLs. This standard route does not accept base64. JPEG / WebP are reference-input formats; output remains PNG only.

Prompt limits and rejected requests

The complete prompt must satisfy all three limits: 8192 Unicode code points, 16384 UTF-8 bytes, and 5000 tokens counted by this service with o200k_base. Leading and trailing whitespace counts, and whitespace-only prompts are invalid. These are this standard service’s operating limits; the vendor’s 32000-character limit for separate Flare / Sunburst models is unchanged. The service token count determines request eligibility; it does not represent final supplier billing usage or guarantee a per-request procurement cost ceiling. The workbench retains its existing character-description input limit, but the final assembled prompt must also satisfy all three limits above. Some existing 4000-character descriptions containing many four-byte characters or a high token count are therefore rejected. Being able to enter 4000 characters does not guarantee that every combination can be submitted. The service does not truncate, compress, or replace the prompt. Multiple output images, multiple references, higher quality, JPEG / WebP output, unlisted sizes, masks, transparent backgrounds, and other unreviewed extensions are explicitly rejected without a silent downgrade. Identified standard-route public requests return HTTP 400 without creating a supplier task or reserving generation funds. The workbench may queue a task before validating it; an over-limit task fails explicitly without a charge. This does not promise an immediate HTTP 400 for every workbench input. Malformed requests whose model or group cannot be identified retain the existing routing error.

Quotes and routing

The character workbench automatically selects reviewed routes compatible with the current input; users do not need to choose a supplier. The same account tier and standard request receive a consistent per-image quote. The amount shown before submission is authoritative; switching to an eligible route does not add a charge. Supplier procurement costs and historical base prices are not presented here as the final customer price. The system may try the next eligible route only when it can prove that no supplier task was created on the first route and the native retry rules and total attempt budget allow it. A backup must be reviewed. This page does not promise that two healthy routes are always available.

Task acceptance and completion

An asynchronous task ID confirms acceptance, not image completion. Continue polling the original task until a usable image or an explicit final state is available. Timeouts, disconnections, missing acknowledgements, and accepted tasks are reconciled against the original task rather than automatically submitted again. This update does not automatically resubmit old failed tasks. Other existing separate models (gpt-image-2.5-hd, gpt-image-2.5-flare, and gpt-image-2.5-sunburst) retain their own contracts. The one-image, one-reference, and operating prompt limits on this page must not be applied to them as new restrictions. Likewise, broader underlying model capabilities do not mean every specification is available through the standard service.

Authorizations

Authorization
string
header
required

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

Body

application/json
model
enum<string>
default:gpt-image-2.5
required
Available options:
gpt-image-2.5
prompt
string
required

The complete prompt must satisfy all three limits: 8192 Unicode code points, 16384 UTF-8 bytes, and 5000 tokens counted by this service with o200k_base. Whitespace counts toward the limits, and a whitespace-only prompt is invalid. These are the standard service's operating limits, not the 32000-character vendor limit for the separate Flare / Sunburst models. The local token count does not represent final supplier billing usage or guarantee a per-request procurement cost ceiling. Over-limit prompts are rejected before reserving funds or sending a supplier request, without truncating, compressing, or replacing them.

Required string length: 1 - 8192
n
enum<integer>
default:1
Available options:
1
size
enum<string>
default:1024x1024

Only the seven listed aspect ratios and exact pixel sizes are supported. Omission or an empty string uses 1024x1024. The 3:4 and 4:3 labels are approximate; the old 1024x1365 and 1365x1024 sizes are no longer accepted. When both size and aspect_ratio are present, they must resolve to the same pixels.

Available options:
1:1,
2:3,
3:2,
3:4,
4:3,
9:16,
16:9,
1024x1024,
1024x1536,
1536x1024,
1024x1360,
1360x1024,
1088x1920,
1920x1088,
aspect_ratio
enum<string>

Only the seven listed aspect ratios and exact pixel sizes are supported. Omission or an empty string uses 1024x1024. The 3:4 and 4:3 labels are approximate; the old 1024x1365 and 1365x1024 sizes are no longer accepted. When both size and aspect_ratio are present, they must resolve to the same pixels.

Available options:
1:1,
2:3,
3:2,
3:4,
4:3,
9:16,
16:9,
1024x1024,
1024x1536,
1536x1024,
1024x1360,
1360x1024,
1088x1920,
1920x1088,
quality
enum<string>
default:medium
Available options:
medium
output_format
enum<string>
default:png

PNG output only. JPEG / WebP are supported reference-input formats only.

Available options:
png
group
string

An optional existing authorized routing override; ordinary standard use does not require supplier selection. It is not forwarded as a supplier parameter.

seed
integer

A nonnegative integer within the service's accepted integer range.

Required range: x >= 0
metadata
object
image

A public HTTPS reference image in JPEG, PNG, or WebP format, up to 5 MiB (5242880 bytes), 40000000 decoded pixels, and 23170 pixels on either edge. The URL must not contain credentials or a fragment; the final destination must also pass public-network checks. At most one reference is allowed across all aliases, including duplicate values. Base64 and file uploads are not accepted.

Pattern: ^https://
images

A public HTTPS reference image in JPEG, PNG, or WebP format, up to 5 MiB (5242880 bytes), 40000000 decoded pixels, and 23170 pixels on either edge. The URL must not contain credentials or a fragment; the final destination must also pass public-network checks. At most one reference is allowed across all aliases, including duplicate values. Base64 and file uploads are not accepted.

Pattern: ^https://
image_urls

A public HTTPS reference image in JPEG, PNG, or WebP format, up to 5 MiB (5242880 bytes), 40000000 decoded pixels, and 23170 pixels on either edge. The URL must not contain credentials or a fragment; the final destination must also pass public-network checks. At most one reference is allowed across all aliases, including duplicate values. Base64 and file uploads are not accepted.

Pattern: ^https://
input_reference

A public HTTPS reference image in JPEG, PNG, or WebP format, up to 5 MiB (5242880 bytes), 40000000 decoded pixels, and 23170 pixels on either edge. The URL must not contain credentials or a fragment; the final destination must also pass public-network checks. At most one reference is allowed across all aliases, including duplicate values. Base64 and file uploads are not accepted.

Pattern: ^https://

Response

Image results or the accepted original asynchronous task.

Read image results or an asynchronous task according to the returned shape. Task acceptance does not mean an image is complete.

created
integer
data
object[]
id
string

The original asynchronous task ID, when returned. Continue polling that task.

object
string
model
string
status
string