GPT-5-Codex is a specialized version of GPT-5 optimized for software engineering and coding workflows. It is designed for both interactive development sessions and long, independent execution of complex engineering tasks....
Model details →OpenAI: GPT-5 Codex (batch) vs Perplexity: Sonar Pro
OpenAI: GPT-5 Codex (batch) wins on 5 of 6 axes — pricing and capability skew in its favour for most workloads.
Note: Sonar Pro pricing includes Perplexity search pricing. See [details here](https://docs.perplexity.ai/guides/pricing#detailed-pricing-breakdown-for-sonar-reasoning-pro-and-sonar-pro) For enterprises seeking more advanced capabilities, t…
Model details →Side-by-side comparison
| Capability | OpenAI: GPT-5 Codex (batch) | Perplexity: Sonar Pro | Winner |
|---|---|---|---|
| Context window Maximum number of input tokens the model can attend to in a single request. | 400K | 200K | 🏆 OpenAI: GPT-5 Codex (batch) |
| Input price (per 1M) Cost per million input tokens billed by the provider. | $0.63 | $3.00 | 🏆 OpenAI: GPT-5 Codex (batch) |
| Output price (per 1M) Cost per million output tokens billed by the provider. | $5.00 | $15.00 | 🏆 OpenAI: GPT-5 Codex (batch) |
| Tool / function calling First-class support for emitting structured tool calls. | Yes | — | 🏆 OpenAI: GPT-5 Codex (batch) |
| Vision input Accepts image inputs alongside text. | Yes | Yes | Tie |
| Reasoning mode Internal chain-of-thought / extended-thinking support. | Yes | — | 🏆 OpenAI: GPT-5 Codex (batch) |
Frequently asked questions
Is OpenAI: GPT-5 Codex (batch) better than Perplexity: Sonar Pro?
OpenAI: GPT-5 Codex (batch) wins on 5 of 6 axes — pricing and capability skew in its favour for most workloads.
What's the price difference between OpenAI: GPT-5 Codex (batch) and Perplexity: Sonar Pro?
Input: $0.63 vs $3.00 per 1M tokens. Output: $5.00 vs $15.00 per 1M tokens.
What context windows do OpenAI: GPT-5 Codex (batch) and Perplexity: Sonar Pro support?
OpenAI: GPT-5 Codex (batch) supports up to 400K tokens. Perplexity: Sonar Pro supports up to 200K tokens.
Do both OpenAI: GPT-5 Codex (batch) and Perplexity: Sonar Pro support tool calling?
OpenAI: GPT-5 Codex (batch): yes. Perplexity: Sonar Pro: not advertised.