OpenAI's flagship model, GPT-4 is a large-scale multimodal language model capable of solving difficult problems with greater accuracy than previous models due to its broader general knowledge and advanced reasoning...
Ways to buy 2
| Way to buy | Input | Output | In / out per 1M | Cached | Vs list |
|---|---|---|---|---|---|
The lab's own API | $30 | $60 | $30 / $60List price | n/a | List price |
Default region | $30 | $60 | $30 / $60Same as list | n/a | Same as list |
USD per 1M tokens. Regions are separate routes.
Through a gateway
Your own numbers100M input and 20M output tokens a month: $4,200 direct.
Kong AI Gateway$4,200+0%
LiteLLM$4,200+0%
Eden AI$4,431+5.5%
OpenRouter$4,431+5.5%
Cloudflare AI GatewayNot offeredNot offered
HeliconeNot offeredNot offered
Martian GatewayNot offeredNot offered
Neon AI GatewayNot offeredNot offered
RequestyNot offeredNot offered
Vercel AI GatewayNot offeredNot offered
A dash: not on that gateway's own model list. No published token fee: Portkey, TrueFoundry AI Gateway.
Related models
| In / out per 1M | Cheapest route | |||||||
|---|---|---|---|---|---|---|---|---|
OpenAI · 1.05MCheapest: $1 on OpenAI (flex) | $1 | $5 | $1 / $5 | $2 | 1.05M | $1 on OpenAI (flex) | · | GPT-6.1 Terra is the mid-tier model in OpenAI's GPT-6.1 series, priced below GPT-6.1 Sol. |
OpenAI · 1.05MCheapest: $1 on OpenAI (flex) | $1 | $5 | $1 / $5 | $2 | 1.05M | $1 on OpenAI (flex) | · | GPT-6.1 Terra Pro is the same underlying model as GPT-6.1 Terra, served with reasoning.mode set to pro for higher-quality responses on complex tasks. |
OpenAI · 1.05MCheapest: $2 on OpenAI (flex) | $2 | $10 | $2 / $10 | $4 | 1.05M | $2 on OpenAI (flex) | · | GPT-6.1 Sol is an upgrade to GPT-6 Sol from OpenAI, positioned below the flagship GPT-6 Astra in the GPT-6 series. |
OpenAI · 1.05MCheapest: $2 on OpenAI (flex) | $2 | $10 | $2 / $10 | $4 | 1.05M | $2 on OpenAI (flex) | · | GPT-6.1 Sol Pro is the same underlying model as GPT-6.1 Sol, served with reasoning.mode set to pro for higher-quality responses on complex tasks. |
Anthropic · 1M | $10 | $50 | $10 / $50 | $20 | 1M | Lab list price | · | Claude Fable 5.1 improves on Claude Fable 5 across the board, with the biggest gains in agentic coding, long-running agentic workflows, and knowledge work: long code refactors, front-end and visual... |
Anthropic · 1M | $10 | $50 | $10 / $50 | $20 | 1M | Lab list price | · | Claude Fable 5 is a Mythos-class model from Anthropic, built for autonomous knowledge work and coding. |
Anthropic · 200K | $15 | $75 | $15 / $75 | $30 | 200K | Lab list price | · | Claude Opus 4.1 is an updated version of Anthropic’s flagship model, offering improved performance in coding, reasoning, and agentic tasks. |
About GPT-4
Takes text in and returns text. First listed Mar 26, 2024. Up to 4K output tokens. Blended price $37.5 per 1M tokens at 3 input to 1 output. Model id gpt-4.
Price history
List price since Mar 26, 2024, from Internet Archive snapshots of the OpenRouter catalog, then daily reads.
Questions
How much does GPT-4 cost?
$30 per million input tokens and $60 per million output tokens.
What is the context window of GPT-4?
8K tokens, with up to 4K tokens of output.
Where is GPT-4 cheapest?
Of 2 routes tracked, Azure AI Foundry is cheapest at $30 input and $60 output per million tokens.