API pricing per million tokens
- Input
- $30
- per 1M, list
- Output
- $60
- per 1M tokens
- Cached input
- n/a
- no batch tier listed
- Context
- 8K
- 4K max output
Where to buy it (2)
Azure AI Foundrydefault region$30 / $60$37.5 blended
OpenAI (list)the lab's own API$30 / $60$37.5 blended
Through a gateway
Your own numbers100M input and 20M output tokens a month: $4,200 direct.
Helicone$4,200+0%
Kong AI Gateway$4,200+0%
LiteLLM$4,200+0%
Vercel AI Gateway$4,200+0%
AWS Bedrock$4,200+0%
Azure AI Foundry$4,200+0%
Google Vertex AI$4,200+0%
Databricks Mosaic AI$4,200+0%
Hugging Face Inference$4,200+0%
Cloudflare AI Gateway$4,410+5%
Requesty$4,410+5%
Eden AI$4,431+5.5%
OpenRouter$4,431+5.5%
Snowflake Cortex AI$5,040+20%
Martian Gatewayn/a
Portkeyn/a
TrueFoundry AI Gatewayn/a
IBM watsonx.ain/a
OCI Generative AIn/a
BigQuery MLn/a
Cloudflare Workers AIn/a
NVIDIA NIMn/a
Related models
GPT-6 LunaOpenAI · 1.05M$0.1 / $0.5in / out per 1M$0.1$0.5$0.011.05MSep 22, 2026
GPT-6 Luna ProOpenAI · 1.05M$0.1 / $0.5in / out per 1M$0.1$0.5$0.011.05MSep 22, 2026
GPT-6 SolOpenAI · 1.05M$2 / $10in / out per 1M$2$10$0.21.05MSep 22, 2026
GPT-6 Sol ProOpenAI · 1.05M$2 / $10in / out per 1M$2$10$0.21.05MSep 22, 2026
Claude Fable 5.1Anthropic · 1M$10 / $50in / out per 1M$10$50$0.251MSep 1, 2026
Claude Fable 5Anthropic · 1M$10 / $50in / out per 1M$10$50$11MJun 9, 2026
Claude Opus 4.1Anthropic · 200K$15 / $75in / out per 1M$15$75$1.5200KAug 5, 2025
About GPT-4
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...
Takes text in and returns text. First listed Mar 26, 2024. Blended price $37.5 per 1M tokens at 3 input to 1 output.
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.
List prices from providers' pages on the date shown; your contract may differ. Logos via logo.dev; trademarks belong to their owners.