Skip to content
llmmodels

GPT-4o vs Sonar Pro

GPT-4o is about 1.4× cheaper on a blended (3:1 input:output) token price. Sonar Pro has the larger context window (200K vs 125K).

SpecGPT-4oSonar Pro
ProviderOpenAIPerplexity
ReleasedMay 13, 2024 (better)Jan 1, 2024
TypeChat LLMChat LLM
Parameters——
Context window125K200K (better)
Max output16K (better)8K
Input price / 1M$2.50 (better)$3
Output price / 1M$10 (better)$15
Input modalitiestext, image, pdf, file (better)text, image
Open weightsNoNo
LicenseProprietaryProprietary
Reasoning modeNoNo
Tool callingYesNo
API providers27 (better)8
GPQA Diamond49.2%—
Humanity's Last Exam2.7%—
SWE-bench Verified31.0%—
Aider Polyglot23.1%—
OTIS Mock AIME6.4%—
MATH Level 553.3%—
FrontierMath0.4%—
ARC-AGI-20.0%—
SimpleQA Verified26.0%—
LiveBench55.3%—
METR Time Horizon9 min—
MMLU88.1%—

Cost example

For a workload of 10M input + 2M output tokens per month: GPT-4o costs $45.00 and Sonar Pro costs $60.00 at list price (OpenAI / perplexity pricing).

About GPT-4o

GPT-4o is a proprietary chat llm from OpenAI, released May 13, 2024. It has a 125K-token context window and accepts text, image, pdf, file input. API pricing starts at $2.50 per million input tokens and $10 per million output tokens. It is available from 27 API providers. Full GPT-4o specs →

About Sonar Pro

Sonar Pro is a proprietary chat llm from Perplexity, released Jan 1, 2024. It has a 200K-token context window and accepts text, image input. API pricing starts at $3 per million input tokens and $15 per million output tokens. It is available from 8 API providers. Full Sonar Pro specs →

Compare other models

FAQ

Which is better, GPT-4o or Sonar Pro?

GPT-4o is about 1.4× cheaper on a blended (3:1 input:output) token price. Sonar Pro has the larger context window (200K vs 125K).

Is GPT-4o cheaper than Sonar Pro?

GPT-4o costs $2.50 input / $10 output per 1M tokens; Sonar Pro costs $3 / $15. GPT-4o is cheaper overall.

Which has a bigger context window?

GPT-4o: 128,000 tokens. Sonar Pro: 200,000 tokens.

Are GPT-4o and Sonar Pro open source?

GPT-4o is proprietary; Sonar Pro is proprietary.