GPT Image 2
Save 70%Officialopenai/gpt-image-2
OpenAI GPT Image 2 — high-fidelity image generation & editing.
- Input modalities
- text · image
- Output modalities
- image
- Capabilities
- Image generation · Image editing
- Upstream release
- 2026-04-21
- RouteMux name
- openai/gpt-image-2
Try GPT Image 2 here
Tune the request, see the current price ceiling, and inspect the real response without leaving this model page.
Sign in first to upload images to this vision model.
Your result will appear here
Enter an input on the left. The same RouteMux Playground execution and billing path powers this embedded test.
What is GPT Image 2
GPT Image 2 is OpenAI's image model, used for both generation and editing. Its notable strengths are prompt adherence and text rendering inside the image — the second is what makes it usable for mockups, packaging and marketing collateral, where illegible in-image text would otherwise mean a separate design pass.
Requests to this model name are served by the newer GPT Image 2.5 Flare. Nothing in your code has to change: the model name, the endpoints and the request shape all stay the same, and you get the newer generation's output quality. If you would rather name the new model explicitly, call gpt-image-2.5-flare — or gpt-image-2.5-sunburst when edit precision matters more than speed.
Billing is per image, not per token. One image costs one fixed amount, independent of prompt length or scene complexity, so budgeting is just price times image count. Each call returns a single image; the size parameter picks the aspect ratio rather than the resolution, and the dimensions in the response are the ones that count.
It answers on the OpenAI Images protocol, so /v1/images/generations and /v1/images/edits work as they would against OpenAI directly. The image comes back as base64 in data[0].b64_json.
GPT Image 2 API pricing
Source: official_x0.3 · Verified 2026-06-08
Cache read $0.6/M · Cache write —/M
Estimate cost
Limited time20% extra Credits on your first top-up — up to 200 bonus Credits
Applies to your first top-up within 72 hours of signing up. Minimum $20, once per account.
Key capabilities
Generation and editing
Both /v1/images/generations and /v1/images/edits route to this model.
Flat price per image
One price per image, independent of prompt length or scene complexity. Budget is price times count.
Upgraded to 2.5 Flare
Requests to this model name are now served by GPT Image 2.5 Flare. Same API, no code changes.
OpenAI Images native
Same request shape as calling OpenAI directly.
Interface and protocols
Use any of these IDs to call this model via the API.
openai/gpt-image-2Replace the ROUTEMUX_KEY placeholder with your API key. Create one →
from openai import OpenAI
client = OpenAI(
base_url="https://api.routemux.com/v1",
api_key="<ROUTEMUX_KEY>",
)
response = client.images.generate(
model="openai/gpt-image-2",
prompt="A red panda coding under the moonlight",
n=1,
)
print(response.data[0].url)Performance (last 30 days)
GPT Image 2 FAQ
›What is GPT Image 2?
OpenAI GPT Image 2 — high-fidelity image generation & editing.
›How much does the GPT Image 2 API cost?
Through RouteMux, GPT Image 2 is priced at $0.0186, below the official list price.
›How do I call GPT Image 2 via API?
GPT Image 2 is OpenAI-compatible: point your base URL at RouteMux and set the model field to openai/gpt-image-2 — no code changes needed.
›Which input and output modalities does GPT Image 2 support?
GPT Image 2 accepts text, image as input and produces image as output.
›When was GPT Image 2 released?
GPT Image 2 was released on April 21, 2026.
›Is it billed per image?
Yes. A flat price per image, not per token. Prompt length and image content do not change what you pay.
›How does it differ from GPT Image 2.5 Flare?
Not at all in output: requests to this model name are served by GPT Image 2.5 Flare, at the same price. The name is kept so existing code keeps working. New integrations should call gpt-image-2.5-flare directly.
›Can it edit an existing image?
Yes — image editing is supported through /v1/images/edits.