OpenAI’s November 4, 2026 API changelog lists gpt-image-2.6-sunburst and gpt-image-2.6-flare for image generation and editing. The update adds complexity controls, SVG output, animated GIF output and markup-guided editing for supported GPT Image 2.5 and 2.6 models. This guide explains a practical developer workflow using the Images API.
Availability: The model identifiers and features are documented, but actual access, rate limits and endpoints depend on your API project. Verify access in your account before designing a production dependency.
What is new in GPT Image 2.6?
- Sunburst is positioned for detailed visual work and editing.
- Flare is positioned for faster iteration.
- Complexity controls planning effort (low, medium or high), independently of rendering quality.
- SVG output supports editable vector-style illustrations and diagrams.
- GIF output creates short animations from a motion prompt and frame settings.
- Markup-guided edits let supported models use visual annotations to target changes.
Prerequisites and billing
- An OpenAI API account with billing enabled and access to the model.
- The official OpenAI SDK or an HTTPS client for the Images API.
- An API key stored in an environment variable or secret manager.
- A review process for generated text, products, diagrams and brand assets.
Image generation is usage-billed. The GPT Image 2.6 guide lists image output at $30 per million billable image tokens; actual cost varies with output token use and request settings. Complexity has no separate fee. Check the live pricing page and your project’s limits before estimating spend.
Step 1: Install and configure the SDK
python -m pip install --upgrade openaiSet OPENAI_API_KEY in your shell or secret manager. Never commit a real API key to Git or expose it in browser-side code.
Step 2: Generate an image
from openai import OpenAI import base64 client = OpenAI() result = client.images.generate( model="gpt-image-2.6-sunburst", prompt="Editorial product photograph of a reusable bottle on a clean studio set, soft daylight, no text or logo", size="1536x1024", quality="high", ) image_bytes = base64.b64decode(result.data[0].b64_json) with open("product-hero.png", "wb") as f: f.write(image_bytes)Describe the subject, framing, lighting, background and exclusions. Generate a small number of candidates, inspect them, then refine one variable at a time.
Step 3: Edit an existing image
Use the image-edit endpoint with an input image and a narrow instruction, such as replacing a background while preserving the product. Check the current API reference for accepted image inputs and mask behavior for the model you select.
from openai import OpenAI client = OpenAI() with open("product-photo.png", "rb") as source: result = client.images.edit( model="gpt-image-2.6-sunburst", image=source, prompt="Replace only the background with a warm neutral studio backdrop.", size="1536x1024", )Review the result for unintended changes to logos, labels, product geometry and small details. Do not assume an edit preserves every unmentioned pixel.
Step 4: Request SVG output
For supported requests, set the output format to SVG. The documentation specifies one output for SVG and notes that SVG generation does not support streaming, partial images or output compression. The returned asset is static vector content, not an HTML document.
result = client.images.generate( model="gpt-image-2.6-flare", prompt="Minimal vector illustration of a cloud connected to three devices, geometric shapes, blue and teal palette", output_format="svg", size="1024x1024", )Validate and sanitize SVGs before serving them. Treat user-supplied vector files as untrusted content and use safe rendering practices.
Step 5: Generate a short GIF
GIF output supports 2–16 frames and a configurable frame duration. Describe the subject, movement and loop in the prompt. Simple motion generally makes it easier to maintain consistency across frames.
result = client.images.generate( model="gpt-image-2.6-flare", prompt="A paper airplane gently folds and glides across a desk in a seamless loop", output_format="gif", frame_count=8, frame_duration_ms=180, size="1024x1024", )Step 6: Add production checks
- Validate file type, dimensions and size before storage.
- Keep prompt and output metadata for reproducibility without logging private data.
- Review text, faces, product details, trademarks and factual diagrams.
- Set usage budgets and monitor token consumption, latency and errors.
- Require human approval for regulated, high-impact or customer-facing assets.
Limitations to plan for
Generated images can contain visual inaccuracies or malformed small text. SVG is static and must be handled safely. GIF output has frame and size limits. Model access and rate limits vary by API project. SDK parameter support can differ by version, so test examples against the current API reference before deployment.
Practical takeaways
- Test Sunburst for detailed compositions and Flare for rapid iteration.
- Tune complexity separately from output quality.
- Choose SVG when editability matters and GIF only when motion adds value.
- Budget for usage and review every output before publication.
Frequently asked questions
Is GPT Image 2.6 available to every API user?
The models are documented, but access and rate limits can vary by project. Verify availability in your account.
Does higher complexity mean higher resolution?
No. Complexity controls planning effort; image size and rendering quality are separate settings.
Can the API generate GIFs?
Yes. The guide documents GIF output with 2–16 frames, subject to model and size constraints.
Can an SVG contain scripts?
The documented output is static vector content without scripts or external resources. Validate it before publishing.