GPT-4
GPT-4 is a legacy integration reference; evaluate GPT-4.1 before starting new work.
- 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.
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)
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
Cheapest of 4 routes · OpenAI API