AI Hub
← All models

GPT-5.1-Codex vs Sonar

OpenAI vs Perplexity — benchmarks, pricing, and capabilities side by side.

  • GPT-5.1-Codex has the higher intelligence index (88.2 vs 56.8)
  • Sonar is cheaper ($1.00 vs $1.25 per 1M input)
  • GPT-5.1-Codex has a larger context window (400K)
GPT-5.1-CodexSonar
Intelligence index88.256.8
DeveloperOpenAIPerplexity
TypeMultimodalMultimodal
AccessAPI onlyAPI only
Context window400,000 tokens127,072 tokens
Input price$1.25 / 1M$1.00 / 1M
Output price$10.00 / 1M$1.00 / 1M
Speed188 tok/s
ReleasedNovember 13, 2025January 27, 2025
Parameters
Input modalitiesText, ImageText, Image
Output modalitiesTextText

Shared benchmarks

GPT-5.1-Codex
Sonar
GPQA Diamond
86
47.1
Humanity’s Last Exam
23.4
7.3
LiveCodeBench
84.9
29.5
MMLU-Pro
86
68.9