Back to model shop
Openai
Rendered from D1 model snapshot · D1 read 118msCache check: checking

openai/gpt-image-2

GPT-Image-2

Image model for prompt-driven generation, editing, and visual design workflows

This model's cache

This model page returns the exact headers below. The page and /api/models/openai--gpt-image-2 share the model:openai--gpt-image-2 tag, so invalidation stays scoped to this model.

Cache key/models/openai--gpt-image-2
Cache-Controlpublic, max-age=300, stale-while-revalidate=3600
Cache-Tagcatalogmodel:openai--gpt-image-2

Workers Cache derives the key from this path/query, plus the Worker entrypoint and current Worker version.

export const Route = createFileRoute('/models/$modelSlug')({
  headers: () => ({
    'Cache-Control': 'public, max-age=300, stale-while-revalidate=3600',
    'Cache-Tag': 'catalog,model:openai--gpt-image-2',
  }),
})

Invalidate this cache tag

await ctx.cache.purge({ tags: ['model:openai--gpt-image-2'] })

Use this when one model changes and you do not want to evict the whole catalog.

Gpt ImageAttachments
Released
Apr 21, 2026
Last updated
Apr 21, 2026
Context window
0 tokens
Max output
0 tokens
Open weights
No
Family
Gpt Image

Starts at

$5

per 1M input tokens

Output

$30

Sellers

4

No cart or checkout in this MVP — pick a provider below and open their docs when you're ready to use it.

Capabilities & modalities
Reasoning
Tool calling
Structured output
Attachments
InputText, Image
OutputImage
Provider shelf
Where to get GPT-Image-2

Sorted by lowest input price

ProviderInput / 1MOutput / 1MContext

Vercel AI Gateway

openai/gpt-image-2

$5$300Docs

OpenAI

gpt-image-2

$5$300Docs

Poe

openai/gpt-image-2

$5.05$32.320Docs

FastRouter

openai/gpt-image-2

QuoteQuote128KDocs
More from Openai