Repository navigation
Description
Outcome
brain image generates on OpenAI's GPT Image 2.6 models by default (gpt-image-2.6-sunburst, with gpt-image-2.6-flare by name), at the highest quality and complexity unless the caller says otherwise, and can use what 2.6 adds: a planning-effort complexity setting, animated GIF output, SVG output and markup-guided edits.
Why now
OpenAI released the GPT Image 2.6 pair in early November 2026. It adds complexity (low|medium|high), output_format: "gif" with frame_count/frame_duration_ms, output_format: "svg", and markup-guided edits. That pre-delivery baseline is historical: #3782/#3786 now supplies the 2.6 default, quality default and complexity support; the accepted quality-error fallback was missed and is tracked in #3984. The maintainer asked (2026-11-09) to switch to 2.6, support the new features, and default to the highest quality and complexity unless a request says otherwise.
Shared context
Upstream facts, checked 2026-11-09 against OpenAI's docs. No paid request was made.
- Model pages: https://developers.openai.com/api/docs/models/gpt-image-2.6-sunburst and https://developers.openai.com/api/docs/models/gpt-image-2.6-flare. Each model has one snapshot (its bare ID). Both support
v1/images/generationsandv1/images/edits.v1/batchandv1/responsesare not supported. Rates per 1M tokens are the same as 2.5: text in $5 (cached $1.25), image in $8 (cached $2), image out $30. - Guide: https://developers.openai.com/api/docs/guides/image-generation.
complexitytakeslow|medium|high, defaults tohighwhen omitted, has no separate fee, and is independent ofquality. Quality tiers on 2.6 arelow|medium|high|xhigh|max(needs verification, see below). Size rules are unchanged from 2.5: edges are multiples of 16, the maximum edge is 3840, the aspect ratio stays within 1:3 to 3:1, and the total is 655,360 to 8,294,400 px. Transparency works on png/webp. The output-token calculator covers both 2.6 and 2.5 Sunburst/Flare. - GIF:
output_format: "gif"works on generations and edits.frame_countruns 2–16 (default 9) andframe_duration_msruns 20–2000 (default 200, rounded to 10 ms). GIF output has no streaming, partial images, customoutput_compressionor masks. The API reference says GIF needs "GIF preview access for the model". A community report (https://community.openai.com/t/gpt-image-2-6-gif-frame-limit-guide-says-64-api-enforces-16/1413021, 2026-11-05) observed that an earlier guide said 2–64 while the endpoint enforces 16. - SVG:
output_format: "svg"works on generations only and needsn: 1. It has no streaming or compression.qualitydrives a reference image (the guide does not saycomplexitydoes). The API reference says SVG output needs project access. The result is UTF-8 XML indata[0].b64_json. The authoring tokens are billed separately and reported insvg_usage. - Markup-guided edits (2.5 and 2.6):
POST /v1/images/editswithmarkup, a transparent PNG the same size as the first input image. It cannot be combined withmask. - Re-checked 2026-11-10 against the same pages, no paid request. Confirmed: both 2.6 model pages (single bare-ID snapshot, generations and edits only, the rates above);
complexityvalues,highdefault and no separate fee; the size and transparency rules; GIF on generations and edits withframe_count2–16 (default 9) andframe_duration_ms20–2000 (default 200, rounded to 10 ms), no streaming, partial images, custom compression or masks, and GIF preview access per the API reference; SVG on generations only,n: 1, base64 UTF-8 XML indata[0].b64_json,svg_usagereported separately; markup on/v1/images/edits, same size as the first image, never withmask. - Quality support remains unverified after modules: default image generation to GPT Image 2.6 at max quality and high complexity, with --complexity #3782 delivery: whether 2.6 accepts
xhighandmax. The guide's quality table presents them under the 2.5 models, the API reference names only 2.5 Sunburst/Flare for them, and neither 2.6 model page lists quality tiers. Do not infer live acceptance from the capability entry or repeat the 2.5 claim as proof. modules: default image quality has no accepted quality-error fallback #3984 restores the already-accepted default-only quality-error fallback; it does not need a paid verification request. - Doc conflict on markup: the guide says markup works on 2.5 and 2.6; the API reference names only 2.5. The guide is the more specific source; modules: markup-guided image edits (--markup) #3785 should cite whichever is current when it lands.
- Code: (
GPT_IMAGE_26_FORMATS,packages/module-images/src/providers/openai.ts:79), (MODELS,packages/module-images/src/providers/openai.ts:81), (POLICY_PREFERENCE,packages/module-images/src/evidence.ts:57), (FORMATS,packages/module-images/src/cli.ts:42), (ImageRequest,packages/module-images/src/types.ts:12-34).
Constraints and non-goals
- No vendor SDK; plain
fetchagainst the documented REST endpoints (packages/module-images/src/types.ts:1-9). - Routing stays a set of capability rules (
packages/module-images/src/routing.ts:1-14). A request a model cannot serve is refused before any paid call. - An unknown cost stays unknown, never
$0or a borrowed figure. - No streaming, Batch API or Responses-API integration.
- The 2.5 pair is not retired: OpenAI has not deprecated it, so it stays selectable by name.
- The existing
--jsonenvelopes stay as they are. Any additive field is classified underdocs/integration-contract.mdin its own task.
Breakdown
The five native children preserve four delivered/planned feature slices and the verified missing requirement:
- modules: default image generation to GPT Image 2.6 at max quality and high complexity, with --complexity #3782: 2.6 default/model entries and complexity delivered through feat(module-images): default to GPT Image 2.6 at max quality and high complexity #3786 (
87a39e8c06bb67e2daafb0365413f59b6b0a6926). Its final accepted quality fallback was not delivered; modules: default image quality has no accepted quality-error fallback #3984 owns that gap. - modules: generate animated GIFs with GPT Image 2.6 (--format gif, --frames, --frame-duration) #3783: GIF output delivered through feat(images): animated GIFs from GPT Image 2.6 with --format gif, --frames and --frame-duration (#3783) #3868 (
a875fa5f910c68df7dde92546ef09df0ea204ec4). - modules: author static SVG with GPT Image 2.6 (--format svg) #3784: SVG output delivered through feat(images): static SVG from GPT Image 2.6 with --format svg, refusing active content (#3784) #3969 (
38aeb5fd34d529ee769622eacdbca3679926e512). - modules: markup-guided image edits (--markup) #3785: markup-guided edits are delivered through merged feat(module-images): markup-guided image edits with --markup #3972, squash
631bbae2cd999a4ba1b5d56cdf6279668da547f2(2026-11-12), an ancestor of inspected main. Its closure records keyless multipart/routing/refusal proof; this is not live-provider qualification. - modules: default image quality has no accepted quality-error fallback #3984: implement and prove default-only
max→xhigh→highfallback on HTTP 400error.param === "quality", with explicit qualities unchanged and effective-tier reporting. Its keyless reproduction proves one attempt on inspected main where up to three were accepted.
All four feature squashes are ancestors of inspected main faa480e8c864d547cd8b4eb75965b7d609284770. #3984 is the sole remaining open native child. Native child closure does not establish live provider support or the whole epic's outcome; no paid request was made by this review.
Definition of done
Every sub-issue is closed. The image-gen skill, the README and brain image --help describe the 2.6 default, the quality and complexity defaults and each new output with its limits. Offline tests assert the actual outbound JSON and multipart payloads for each new parameter.
2026-11-10 triage: re-checked the upstream facts, marked 2.6 xhigh/max as unverified, corrected the SVG reference-image note and added SVG project access. Code citations hold at 3aadc8df5.
2026-11-14 triage at main faa480e8c864d547cd8b4eb75965b7d609284770: Folded merged #3785/#3972 markup delivery into the current breakdown and refreshed source pointers; #3984 still owns the missing quality-error fallback.
Activity
schlessera commentedon Nov 10, 2026
2026-11-10 triage at main
3aadc8df5: re-checked the upstream facts against the cited OpenAI pages, with no paid request. Most hold. Folded three corrections into the body:xhigh/maxquality is unverified. The guide lists those tiers under 2.5, and the API reference names only the 2.5 models. modules: default image generation to GPT Image 2.6 at max quality and high complexity, with --complexity #3782'smaxdefault depends on it.quality; the guide does not saycomplexitydrives it.The code citations hold. Labels (
type: feat,area: modules,priority: p1,epic) and the four children are unchanged.feat(module-images): default to GPT Image 2.6 at max quality and high…
schlessera commentedon Nov 11, 2026
2026-11-11 triage: reconciled delivered #3782/#3783/#3784 and open markup #3785 against merged-commit ancestry. Filed and natively attached #3984 for #3782’s missed accepted quality-error fallback, with a keyless provider reproduction. Quality-tier live acceptance remains unverified. No implementation, paid call or whole-epic completion is claimed.