Key Takeaways
GPT-5 Codex wins:
- Larger context window
- Faster response time
- Higher intelligence benchmark
- Better at coding
- Better at math
- Supports tool calls
Sonar wins:
- Cheaper input tokens
- Cheaper output tokens
Price Advantage
Sonar
Benchmark Advantage
GPT-5 Codex
Context Window
GPT-5 Codex
Speed
GPT-5 Codex
Pricing Comparison
Price Comparison
| Metric | GPT-5 Codex | Sonar | Winner |
|---|---|---|---|
| Input (per 1M tokens) | $1.25 | $1.00 | Sonar |
| Output (per 1M tokens) | $10.00 | $1.00 | Sonar |
| Cache Read (per 1M) | $125000.00 | N/A | GPT-5 Codex |
Using a 3:1 input/output ratio, Sonar is 71% cheaper overall.
GPT-5 Codex Providers
OpenAI $1.25 (Cheapest)
Sonar Providers
Perplexity $1.00 (Cheapest)
Vercel $1.00 (Cheapest)
Benchmark Comparison
7
Benchmarks Compared
4
GPT-5 Codex Wins
0
Sonar Wins
Benchmark Scores
| Benchmark | GPT-5 Codex | Sonar | Winner |
|---|---|---|---|
Intelligence Index Overall intelligence score | 44.5 | 15.5 | |
Coding Index Code generation & understanding | 38.9 | - | - |
Math Index Mathematical reasoning | 98.7 | - | - |
MMLU Pro Academic knowledge | 86.5 | 68.9 | |
GPQA Graduate-level science | 83.7 | 47.1 | |
LiveCodeBench Competitive programming | 84.0 | 29.5 | |
AIME Competition math | - | 48.7 | - |
GPT-5 Codex significantly outperforms in coding benchmarks.
Cost vs Quality
X-axis:
Y-axis:
Loading chart...
GPT-5 Codex
Other models
Context & Performance
Context Window
GPT-5 Codex
400,000
tokens
Max output: 128,000 tokens
Sonar
127,072
tokens
GPT-5 Codex has a 68% larger context window.
Speed Performance
| Metric | GPT-5 Codex | Sonar | Winner |
|---|---|---|---|
| Tokens/second | 314.7 tok/s | 131.1 tok/s | |
| Time to First Token | 10.95s | 1.38s |
GPT-5 Codex responds 140% faster on average.
Capabilities
Feature Comparison
| Feature | GPT-5 Codex | Sonar |
|---|---|---|
| Vision (Image Input) | ||
| Tool/Function Calls | ||
| Reasoning Mode | ||
| Audio Input | ||
| Audio Output | ||
| PDF Input | ||
| Prompt Caching | ||
| Web Search |
License & Release
| Property | GPT-5 Codex | Sonar |
|---|---|---|
| License | Proprietary | Proprietary |
| Author | OpenAI | Perplexity |
| Released | Sep 2025 | Jan 2025 |
GPT-5 Codex Modalities
Input
textimage
Output
text
Sonar Modalities
Input
textimage
Output
text
