Overview
gpt-image-2.6-all is APIYI’s GPT image generation model on the ChatGPT web reverse route, built on Images 2.6. Unlike the older-all route, which only accepted a size hint inside the prompt, this route actually honors size, n, background and output_format, and can return GIF, SVG and multi-image edits — a better fit for production code that needs to pin dimensions, formats and image counts.
The three things this route does best: GIF, SVG, and native ChatGPT quality at 1536 and below (with fingerprint). 2K/4K is a super-resolution tier for large-canvas compatibility — bigger, not necessarily more detailed; for quality, stay around 1.5K.
It uses the standard OpenAI Images API endpoints: POST /v1/images/generations for text-to-image and POST /v1/images/edits for editing.
- Price: $0.025 per image, billed per call; 2K/4K costs the same
- Speed: about 10–46 s (1K 10–22 s, 2K 12–24 s, 4K 15–42 s; tail latency can exceed 60 s)
- Quality: long edge 512–1536 is native — the most controllable ChatGPT web quality and fingerprint; 2K/4K is super-resolution, which solves large-canvas size, not necessarily more detail than 1.5K
- Formats: PNG / JPEG / GIF / SVG, transparent background and 24-hour URLs; GIF / SVG are native to this route and not available on 2.5-all
- Chinese: native Chinese prompts; strong text rendering for posters, signage and infographics
GIF loops
output_format=gif; frame count and duration are exact, dimensions are upstream-decided.SVG vectors
output_format=svg; true vector, viewBox follows size, 2K–8K.Native ChatGPT quality
2K/4K large-canvas compatibility
Quickstart
Text to image (curl)
b64_json (raw base64, no data: prefix). Pass "response_format": "url" for a signed link that expires in about 24 hours; download and re-host it promptly.
Image editing (Python, multipart)
Capabilities
Sizes
Native range (≤1536, ChatGPT web native)
- No 16/64 alignment required.
1537,1600x900and1920x1080are rejected on the native route. size=autois decided upstream. We have seen 1312x1199, 1402x1122 and 1448x1086; no fixed value is promised.- On the native route, the response
sizeequals the actual output size.
Super-resolution range (2K / 4K, large-canvas compatibility)
2K/4K uses super-resolution to enlarge the long edge to 2048/4096 for larger canvases. Bigger does not mean more detailed — it is not native pixels, and it is not promised to be sharper than the 1536 native tier. Measured results:Choosing a size
- Best ChatGPT-native feel / stable quality: keep
sizeat or below 1536; around 1.5K is ideal. This is the most controllable tier, with the ChatGPT fingerprint. - 2K large-canvas compatibility: use
2048x2048,2048x1152,2048x1536; common sizes are exact, but do not expect more detail than 1.5K. - 4K landscape: use
3840x2160; it usually returns 3840x2160, occasionally 4096x2731 — verify actual pixels. - Large squares: the cap is 2880;
4096x4096comes back as 2880x2880. - 4:1 banners: not supported;
4096x1024returns 400.
Formats
- Transparent background:
background=transparent+ PNG. At 2K the result is RGBA with about 40% fully transparent pixels. 4K transparent output does not followsize; no dimensions are promised. - URL:
response_format=urlworks in theDefaultgroup; noImage2_OSSgroup is needed. The link is a 24-hour signed URL. - No WebP: the error is
output_format 'webp' is not supported; use png, jpeg, gif or svg.
GIF
output_format=gifis mandatory. If you only ask for a loop in the prompt and omit the format, the compatibility layer expects PNG and the request fails with 502image 1 is gif, png was asked for.frame_count/frame_duration_msare honored exactly: 8 frames / 150 ms, 4 frames / 300 ms and 6 frames / 120 ms all matched the request.sizedoes not determine the output size: 1K results have included 384x512, 507x506 and 619x623; 2K returned 327x585; 4K returned 621x621. Only frame count and duration are promised.- To get a fixed GIF size, resize or crop on the client after generation.
SVG
- True vector: the response is
<svg>text, not a bitmap. 2048², 3840x2160, 4096², 6144² and 8192² all passed. viewBoxfollowssize: 2048x2048 givesviewBox="0 0 2048 2048"; 3840x2160 givesviewBox="0 0 3840 2160".- No
svgobject needed:output_format=svgis enough. Official routes or some SDKs add"svg": {"model": "..."}; 2.6-all accepts but ignores that field — it does not fail and does not change the result, so do not depend on it. - The output contains no
<script>or embedded raster image.
Image editing
- Endpoint:
POST /v1/images/edits,multipart/form-data. - Single image / mask / multiple references are accepted. A mask is treated as a reference; edits are not guaranteed to stay inside the mask, so describe what to change and what to keep.
- An explicit
sizeis exact, including 2K/4K (2048x2048 and 3840x2160 both verified). - Without
sizeor withauto, the output is normalized to about 1.57 MP while preserving the input aspect ratio; the original pixel size is not guaranteed. - Two reference images work in practice. For more, compose them on the client or edit in steps.
n and responses
nsupports 1–10 and is billed per image. At 2K,n=2returned two 2048x2048 images;n=3returned three images withusage.image_count=3andoutput_image_tokens=8160(3 × 2720). At $0.025 per image that is $0.075; the final charge is whatever the bill shows.- The default is
b64_json;response_format=urlreturns onlyurl, never both. - Common response fields:
created,data[],usage. Thesizefield may be missing for 2K/4K; 1K usually echoes it. - URLs are signed for 24 hours; regenerate after expiry.
Timeouts and concurrency
- Set the client timeout to 600 seconds: 1K takes about 10–22 s, 2K 12–24 s, 4K 15–42 s, and tail latency can exceed 60 s. Loosen reverse proxies, serverless limits and queue consumers as well.
- Concurrency: at 1K, 12×2, 16×1 and 8×1536 all passed without 429s. 2K/4K has not been load-tested; start with 4–8 concurrent requests and watch tail latency.
- Billing is synchronous: the request is billed when sent; a client disconnect is not refunded and the result is not retained.
Limits
- 2K/4K is super-resolution, for large-canvas compatibility. It is not native pixels and is not promised to carry more detail than the 1536 native tier; for stable quality, stay at or below 1536.
- 2K/4K depends on a fallback route. Requests first hit the native route and are switched to the super-resolution route when the size is out of range. If the fallback is unavailable, the API may return 400
wide_fallback_required; retry or stay at or below 1536. - GIF size is not guaranteed. 1K, 2K and 4K can all return small images; only frame count and duration are promised.
- WebP is not supported. Only PNG / JPEG / GIF / SVG.
- 4:1 is not supported.
4096x1024returns 400; the maximum aspect ratio is 3:1. - 4K transparent output is unstable. We have seen several 4096-long-edge heights; do not promise 3840x2160. Keep transparent output at or below 2K.
- Do not rely on
quality.low/medium/highare accepted, butlowmay return 2048x1153 at 2K whilemedium/highreturn 2048x2048; no same-seed quality difference has been verified. - Editing with
autorescales. The output is about 1.57 MP, not the input size. - Content policy: upstream moderation returns 400
content_policy_violation; revise the prompt and retry.
Errors
Let an AI agent wire it up
Copy this prompt into Codex / Claude Code / Cursor
It first fetches the plain-text version of this page (append .md to any docs URL) and then writes code for your stack. The timeout, 2K/4K verification, GIF format and WebP limits are baked in.
9 requirements in total — use the button below to copy the full prompt.
What this prompt prevents
What this prompt prevents
FAQ
Is 2K/4K native resolution?
No. 2K/4K uses super-resolution to solve size / large-canvas compatibility, not native detail. Native quality is at 1536 and below, with the ChatGPT fingerprint. For stable quality, stay around 1.5K; use 2048–3840 for posters and print.Why is size missing from a 2K/4K response?
2K/4K is delivered by the super-resolution route, which does not always echo size; the 1K route usually does. Read the actual image width and height (for example, the PNG IHDR) instead of trusting the requested size.
Can it produce a 4K transparent image?
Not reliably. At 2K, transparent output is stable (RGBA, about 40% fully transparent pixels). At 4K we have seen 4096x4096, 4096x3552 and 4096x2731 — do not hard-code 3840x2160. Keep transparent output at or below 2K.Can I set the GIF dimensions?
No.size does not affect GIF output: 1K has produced 384x512, 507x506 and 619x623; 2K returned 327x585; 4K returned 621x621. Only frame count and duration are promised. Resize or crop on the client if you need fixed pixels.
Is WebP supported?
No. Only PNG / JPEG / GIF / SVG;output_format=webp returns 400.
Does quality matter?
low / medium / high are accepted, but do not rely on them: low may return 2048x1153 at 2K, while medium / high return 2048x2048. No same-seed visual difference has been verified.
Why does 4096x1024 fail?
The maximum aspect ratio is 3:1; 4096x1024 is 4:1 and is rejected during parameter validation. Use a ratio within 3:1 (for example, up to 4096x1536) or stitch two images.