Skip to navigation

Perplexity Sonar Pro

Perplexity Sonar Pro
Perplexity · Research & Search
POST /v1/chat/completions

Search-grounded model with double the citations and a larger context window, tuned for complex queries needing in-depth, nuanced answers.

At a glance

FieldValue
Model idperplexity-sonar-pro
Model release date-
Input modalitiesText, Image, Document
Output modalitiesText
Context window200K
Weight precision-
Max output tokens32,768
Featuresweb_search
Native inferenceNo
NewNo
Supported endpointsPOST /v1/chat/completions, POST /v1/responses, POST /v1/messages, POST /v1/search, POST /v1beta/models/perplexity-sonar-pro:generateContent
Alternate model idsperplexity/sonar-pro

Pricing

ChargeSpecRate
Inputper 1M prompt tokens$7.20
Outputper 1M generated tokens$36.00
Base Fee (Low Context)per request$0.014
Base Fee (Medium Context)per request$0.024
Base Fee (High Context)per request$0.034

Example request

curl https://api.empiriolabs.ai/v1/search \
-H 'Authorization: Bearer $EMPIRIOLABS_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"model": "perplexity-sonar-pro", "query": "latest LLM benchmarks 2026"}'

Parameters

ParameterTypeRequiredDefaultDescription
max_tokensnumberno-Maximum tokens in the response, at least 16. When omitted, the model’s own default applies. · Range: 16 – 32768
search_context_sizeenumno"medium"Higher context gives better answers but increases the base fee per request. · Allowed: low, medium, high
search_modeenumno"default"Filter search results by source type. Academic limits search to scholarly publishers. SEC adds financial filings and company data. · Allowed: default, academic, sec
search_domain_filterstringno-Comma-separated domains. Prefix with ’-’ to exclude. Max 20.
max_resultsnumberno15Most results each web search returns. More results give more sources to draw on. · Range: 1 – 50
search_after_datestringno-Only include sources published after this date. Use MM/DD/YYYY or YYYY-MM-DD.
search_before_datestringno-Only include sources published before this date. Use MM/DD/YYYY or YYYY-MM-DD.
search_recency_filterenumno"none"Relative time filter. Cannot be combined with specific dates. · Allowed: none, hour, day, week, month, year
last_updated_after_filterstringno-Only include sources last updated after this date. Use MM/DD/YYYY or YYYY-MM-DD.
last_updated_before_filterstringno-Only include sources last updated before this date. Use MM/DD/YYYY or YYYY-MM-DD.
countrystringno-Two-letter ISO 3166-1 code (e.g. US, GB) for biasing results to a country.
regionstringno-State or province name for location bias.
citystringno-City name for location bias.
latitudenumberno-Latitude for location bias, in decimal degrees.
longitudenumberno-Longitude for location bias, in decimal degrees.
disable_formattingbooleannofalseReturn the answer without EmpirioLabs formatting: citations stay as plain [N] markers, and no References, Images or Videos block is added. search_results and citations are still returned.

Notes

Double the citations and larger context window vs Sonar. Max output 32K tokens.


Machine-readable schema: GET https://api.empiriolabs.ai/v1/models/perplexity-sonar-pro.