GPT-4
GPT-4 is a legacy integration reference; evaluate GPT-4.1 before starting new work.
Use it for
- Teams maintaining an existing integration
- Workloads that can use a 8k context window
- Buyers comparing 3 tracked provider routes
Do not use it for
- New production launches
- Family
- GPT-4
- Released
- 2023-03-14
- Context
- 8k
- Parameters
- 1.76T (8x222B MoE)*
- Architecture
- Mixture of Experts
- Knowledge cutoff
- 2021-09
- Specialization
- general
- Openness
- Proprietary
- License
- ProprietaryCommercial use: conditional
- Weights
- Not released
- Code
- Unknown
- Training
- Fine-tuned
Cheapest of 4 routes · OpenAI API
This model is deprecated. OpenAI recommends switching to GPT-4.1.
About
OpenAI's original GPT-4 model with strong reasoning and general knowledge. Foundation model for many applications.
GPT-4 is a proprietary model. The structured metadata tracks a 8k-token context window, multimodal input, function calling, structured outputs, and code execution. This page tracks provider routes through OpenAI API, Azure OpenAI, Salesforce Einstein Generative AI, and 1 more, with the cheapest tracked route listed at $30 input and $60 output per 1M tokens. Headline tracked benchmarks include GAOKAO 72.2.
Top use-case fit: coding, agents, and build tasks
Coding
Included by capability and metadata signals in the decision map.
Agents
Included by capability and metadata signals in the decision map.
Vision
Included by capability and metadata signals in the decision map.
Provider price ladder
Compare all 4Compare API pricing across 3 providers for input and output tokens, batch, and cached reads when available.
| Provider | Input / 1M | Output / 1M | Batch in / out | Route |
|---|---|---|---|---|
| OpenAI API | $30.00 | $60.00 | $15.00 / $30.00 | Serverless |
| OpenRouter | $30.00 | $60.00 | - | Serverless |
| Salesforce Einstein Generative AI | - | - | - | ServerlessPartial |
Available via routers & gateways(16)
LiteLLM
GatewayOpen-source Python SDK and proxy server that unifies 100+ LLM APIs behind a single OpenAI-compatible interface, with load balancing, cost tracking, and configurable failover.
OpenRouter
HybridUnified hybrid gateway to 400+ models from 60+ providers via a single OpenAI-compatible API, with optional auto-routing that selects the best model per prompt.
Portkey
GatewayProduction AI gateway routing to 1,600+ LLMs with failover, load balancing, semantic caching, and guardrails; Apache 2.0 core is fully self-hostable with the complete feature set.
AIRouter
RouterCommercial LLM router that analyzes incoming requests and routes to the optimal model for cost/quality/latency via a drop-in OpenAI-compatible API, with a privacy-preserving embedding mode that avoids sending prompt content.
Azure AI Foundry Model Router
RouterMicrosoft Azure AI Foundry's native model router that uses a trained ML model to route each prompt in real time to the optimal Azure-hosted model, with Balanced/Cost/Quality mode selection and automatic failover.
Helicone
GatewayObservability-first AI gateway with routing, caching, rate limiting, and request tracing; Apache 2.0 open-source core with a managed hosted tier for logging and analytics.
Capabilities
Benchmark peer barsfor Coding
No task-mapped benchmark peers are available for this model yet.
Benchmark scores(1)
| Benchmark | Score | Version | Source |
|---|---|---|---|
| GAOKAO | 72.2 | zero-shot, objective-accuracy | https://github.com/OpenLMLab/GAOKAO-Bench |
Migration checks
No linked migration route is available for this model yet.
API versions
gpt-4-0314gpt-4-0613gpt-4Compare GPT-4 with other models
Comparison and alternatives
Browse all comparisons →Show all 42 popular comparisonssorted by 7-day search impressions
Frequently asked questions
What is the context window of GPT-4?
GPT-4 has a context window of 8k tokens.
How much does GPT-4 cost?
GPT-4 is available at $30/1M input tokens through OpenAI API.
When was GPT-4 released?
GPT-4 was released on 2023-03-14.
Which providers offer GPT-4?
GPT-4 is available from 4 providers: OpenAI API, Azure OpenAI, Salesforce Einstein Generative AI, OpenRouter.
What benchmarks has GPT-4 been tested on?
GPT-4 has been evaluated on 1 benchmark, including GAOKAO.
Cheapest of 4 routes · OpenAI API