GPT Image API and Platform Guide
Last updated:2026-09-09· 17 min read
🚀 Quick access
- GPT Image 2 Domestic:Open entry↗
- Text-to-image studio:Open mirror↗
- Official ChatGPT:chatgpt.com ↗

Updated: 2026-08-21. Endpoints, model IDs, quotas, and prices follow Images docs, API reference, and pricing that day. This guide does not hard-code unit prices, rate-limit numbers, or request-field enums that age poorly.
Introduction
“GPT Image API” and “gpt-image-2 API” mean wiring image generation into a site, design pipeline, or internal tool. Shippable integration is more than one successful generate: keys stay off the frontend, model IDs are configurable, failures retry cleanly, usage is observable, outputs are reviewable. ChatGPT web is for exploration; product work goes through OpenAI Platform, after you confirm in docs whether you need the Images API or image capability inside Responses. Product narrative: GPT Image 2 guide and family explainer.
What this guide solves
- Separate ChatGPT App experience from Platform API paths
- Treat product names (GPT Image 2 / 1.5, etc.) differently from docs model IDs
- Understand Images API vs Responses image tools so you do not copy expired params
- Set a minimum baseline for keys, log redaction, and cost alerts
- Accept with a checklist before launch—not one pretty sample
App ≠ Platform API
| Path | Good for | Poor fit |
|---|---|---|
| ChatGPT App | Fast composition probes, conversational edits, human accept | High-concurrency production, key custody, stable SLA |
| OpenAI Platform | Server automation, product features, metered usage | Exposing long-lived keys in the browser |
| Third-party web entries | China convenience trials (not official) | Defaulting as official billing/compliance equivalents |
If you start on a China third-party web entry: third-party ≠ OpenAI official; accounts and billing may be fully separate. Paths: China access.
Images API vs Responses image tools: pick the right door
Two common OpenAI integration shapes (names and boundaries follow docs that day):
-
Images API (image-focused interface family)
Aimed at text-to-image / edit / (some models’) variation pipelines. Fits clear image jobs, queued work, and storing prompt + size tier in task metadata. In-site developer notes: Image Generation. -
Image capability / tools inside Responses (or conversational APIs)
Fits “reason first, then decide whether to generate,” multi-step tool calls, and products that mix text replies with images. Parameter names, tool switches, and output parsing may differ from pure Images calls.
Do not treat size / quality / tool field names from old blogs or expired SDK samples as forever-truth; before release, recheck official docs and the console “available models” list. This tutorial only freezes engineering principles: server-side calls, configurable model IDs, classified errors, output persistence, and review.
Model IDs: do not mix product names with docs names
Externally you can say GPT Image 2 or GPT Image 1.5; in code, use the model id listed in docs. Lists change—do not scatter a one-day string across business code.
Selection shortcuts (details in topic guides):
- Next-gen follow-up: GPT Image 2.5: Flare / Sunburst Selection & Hands-On (
gpt-image-2.5-flare/gpt-image-2.5-sunburst, verify in docs that day) - Established finalizing workhorse: GPT Image 2 complete guide
- Cost or migration A-B: GPT Image 1.5 selection
- Family map: What is GPT Image
Images 2.5 API dual tiers (Flare / Sunburst)
From 2026-09, OpenAI splits 2.5 on the API into two tiers (product web often labeled ChatGPT Images 2.5): Flare leans default throughput and latency; Sunburst leans precise multi-round edits and is slower. Copy the full model id from docs into config, and keep a fallback toggle to gpt-image-2. Selection and workflows: 2.5 guide.
Config tip: put the model name in env or remote config so releases do not require code edits. Log prompt version and style-card ID together—see prompt playbook.
Recommended ship order
- On ChatGPT or a docs sample environment, run the target model with the same prompt; save winning params.
- Read official image docs: auth, how responses return images (URL / base64, etc.), safety filtering notes.
- Choose Images API vs Responses image tools; call from the server with the official SDK or HTTPS.
- Inject the key via local env vars; classify logs for success / safety block / timeout / quota (never log full keys).
- Persist outputs to your own object storage immediately; temporary links are not permanent CDN.
- Add budget alerts and per-user rate limits so prompt spam cannot burn the bill.
# Local development example (names per your project)
export OPENAI_API_KEY="your-secret-here"
export GPT_IMAGE_MODEL="/* copy today's model id from docs */"
$env:OPENAI_API_KEY = "your-secret-here"
$env:GPT_IMAGE_MODEL = "/* copy today's model id from docs */"
Hard rule: keys exist only in server-side secret systems—never frontend bundles, Git, screenshots, or shared sheets. On leak, rotate immediately at API keys.
Cost and quality observability
Log each call: model ID, size/quality tier, whether references were attached, Images vs Responses path, latency, safety blocks, and whether a human adopted the result.
That is how you answer “how much draft tier saved” and “final pass rate”—not gut feel.
Common automation pattern: low-cost tier for candidates → human or rule prefilter → workhorse refine → design tool typeset and export. Ops: Getting started; style split: styles & scenes.
Prices and quotas follow openai.com/api/pricing and console data that day—this tutorial does not copy numbers that expire.
Done checklist
- Confirmed current docs model ID (configurable)
- Chose Images API vs Responses image tools; no expired field copy
- API key server-only; repo clean of secrets
- Timeouts, retries, and error classification implemented
- Logs have no keys and no unredacted user images
- Usage/budget alerts on (if the console provides them)
- Human or automated review gate before end-user display
- Outputs stored in your own storage; prompt and reference rights retained
Fast path / access
- Official App: chatgpt.com
- Platform: platform.openai.com
- Developer docs: Images guide
- China convenience (third-party): GPT Image 2
- Multi-model text-to-image (third-party): Text-to-image studio
FAQ
If a model appears in the web UI, is it always on the API?
Not necessarily in sync. Trust API docs and the console available-models list; do not assume a ChatGPT button name equals a callable ID.
Can the browser call OpenAI APIs directly for images?
Not recommended. Browsers cannot safely hold long-lived keys and are easy to abuse. Proxy through your own backend.
Can Images API and Responses share one parameter set?
Do not assume field-for-field parity. Implement against each path’s docs that day; share prompt versions and business metadata—not one expired JSON blob.
Are China third-party “APIs” equivalent to official?
Do not assume equivalence. Protocol, logs, model routing, and compliance duties may differ. Prefer official Platform for production; evaluate third-party terms separately.
Where are prices and RPM limits?
OpenAI pricing and quota pages that day; this tutorial does not copy numbers that expire.
Official resources
Further reading
- GPT Image guides hub
- GPT Image 2 complete guide
- Prompt playbook
- In-site Image Generation developer guide
Summary
GPT Image engineering separates exploration (ChatGPT App) from production (Platform server-side): pick Images API or Responses image path, keep model IDs configurable, keep keys off the frontend, observe cost and blocks, and review before users see outputs. Read official image docs for today’s models and fields, version prompts and style cards, and the pipeline stays both fast and controllable.
Related
GPT Image Guides Hub
2026 GPT Image hub: OpenAI image learning path, entry vs model vs API, family map, a five-step first render, and links to every guide.
What Is GPT Image? Family and Capability Guide
2026 GPT Image explainer: OpenAI image family (2, 1.5, 1, 1-mini), vs DALL·E, product names vs API IDs, limits, and a three-step selection method.
GPT Image China Access Guide (Official + Third-Party)
2026 GPT Image China access: ChatGPT, Platform, and third-party paths compared—account/network notes, risk disclosure, troubleshooting, and a done checklist.
GPT Image 2.5: Flare / Sunburst Selection & Hands-On
2026 GPT Image 2.5 / ChatGPT Images 2.5: Flare vs Sunburst, vs Image 2, generate-edit workflows, and a pre-delivery checklist.