AI Hub
← All models

GPT-5.2-Codex vs Sonar

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

  • GPT-5.2-Codex has the higher intelligence index (89.9 vs 56.8)
  • Sonar is cheaper ($1.00 vs $1.75 per 1M input)
  • GPT-5.2-Codex has a larger context window (400K)
GPT-5.2-CodexSonar
Intelligence index89.956.8
DeveloperOpenAIPerplexity
TypeMultimodalMultimodal
AccessAPI onlyAPI only
Context window400,000 tokens127,072 tokens
Input price$1.75 / 1M$1.00 / 1M
Output price$14.00 / 1M$1.00 / 1M
Speed106 tok/s
ReleasedJanuary 14, 2026January 27, 2025
Parameters
Input modalitiesText, ImageText, Image
Output modalitiesTextText

Shared benchmarks

GPT-5.2-Codex
Sonar
GPQA Diamond
89.9
47.1
Humanity’s Last Exam
33.5
7.3