Skip to content

Epic: image generation runs on GPT Image 2.6 and uses its complexity, GIF, SVG and markup features #3781

Open
4 of 5 issues completed

Description

@schlessera

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/generations and v1/images/edits. v1/batch and v1/responses are 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. complexity takes low|medium|high, defaults to high when omitted, has no separate fee, and is independent of quality. Quality tiers on 2.6 are low|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_count runs 2–16 (default 9) and frame_duration_ms runs 20–2000 (default 200, rounded to 10 ms). GIF output has no streaming, partial images, custom output_compression or 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 needs n: 1. It has no streaming or compression. quality drives a reference image (the guide does not say complexity does). The API reference says SVG output needs project access. The result is UTF-8 XML in data[0].b64_json. The authoring tokens are billed separately and reported in svg_usage.
  • Markup-guided edits (2.5 and 2.6): POST /v1/images/edits with markup, a transparent PNG the same size as the first input image. It cannot be combined with mask.
  • 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); complexity values, high default and no separate fee; the size and transparency rules; GIF on generations and edits with frame_count 2–16 (default 9) and frame_duration_ms 20–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 in data[0].b64_json, svg_usage reported separately; markup on /v1/images/edits, same size as the first image, never with mask.
  • 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 xhigh and max. 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 fetch against 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 $0 or 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 --json envelopes stay as they are. Any additive field is classified under docs/integration-contract.md in its own task.

Breakdown

The five native children preserve four delivered/planned feature slices and the verified missing requirement:

  1. 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.
  2. 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).
  3. 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).
  4. 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.
  5. modules: default image quality has no accepted quality-error fallback #3984: implement and prove default-only max → xhigh → high fallback on HTTP 400 error.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.

Sub-issues

Sub-issues

4 of 5 Issues completed
Loading 5 sub-issues

Activity

  1. added
    type: feat
    area: modules
    priority: p1
    epic
    on Nov 9, 2026
  2. schlessera commented on Nov 10, 2026

    @schlessera
    OwnerAuthor

    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:

    The code citations hold. Labels (type: feat, area: modules, priority: p1, epic) and the four children are unchanged.

  3. schlessera commented on Nov 11, 2026

    @schlessera
    OwnerAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: modulesepicpriority: p1type: feat

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions