Sonar Pro
Sonar Pro is Perplexity's search model with deeper web retrieval across more sources. It returns citation-rich answers for complex research queries within a context window of 200K tokens.
import { streamText } from 'ai'
const result = streamText({ model: 'perplexity/sonar-pro', prompt: 'Why is the sky blue?'})Frequently Asked Questions
How does Sonar Pro differ from base Sonar?
Sonar Pro retrieves and processes more web sources per query, producing longer answers with broader citation coverage. Base Sonar is faster and cheaper for simpler factual queries.
Does Sonar Pro include citations?
Yes. Like all Sonar models, responses include inline citations referencing the web sources consulted. Sonar Pro typically cites more sources per response due to its deeper retrieval.
Is there an API difference between Sonar and Sonar Pro?
No. The API interface is identical. Switching from Sonar to Sonar Pro requires only changing the model identifier. You don't need code changes or configuration adjustments.
What is the context window for Sonar Pro?
200K tokens. This supports extended multi-turn research sessions where context accumulates across exchanges.
What does Sonar Pro cost?
Check the pricing panel on this page for today's numbers. AI Gateway tracks rates across every provider that serves Sonar Pro.
How do I authenticate with Sonar Pro through AI Gateway?
Use your AI Gateway API key with the model identifier `
perplexity/sonar-pro`. AI Gateway handles provider routing and authentication automatically.When should I use Sonar Pro instead of a reasoning variant?
Use Sonar Pro when you need broad source coverage and detailed synthesis but don't need explicit step-by-step reasoning. For queries that benefit from chain-of-thought deliberation over search results, use Sonar Reasoning Pro.