We use cookies. Cookies and browser storage keep you signed in and remember your preferences. With your permission we also measure how the site is used. You can any time. See our cookie policy.
Perplexity: Sonar Pro
perplexity/sonar-proTry Perplexity: Sonar Pro now
Runs on your balance at the prices above. New accounts start with free usage.
One API. Every model.
Session cost $0.00
Settings
Advanced parameters
Perplexity: Sonar Pro at a glance
- Input price is 567% higher than the median of 434 Text models.
- Context window of 200,000 tokens, enough for long documents and multi-turn conversations.
- Accepts images as input (vision).
- A typical request (1,000 input / 500 output tokens) costs about $0.04.
About Perplexity: Sonar Pro
Perplexity: Sonar Pro is a text generation model from Perplexity, released by the provider on 7 March 2025. It sits in the text category and is aimed at developers who need a hosted model that can answer queries with the option of web search behind it. Perplexity builds the model and serves it through its own API, and api14 exposes it through an OpenAI-compatible interface so you can call it without changing your existing client code.
The model accepts text and image inputs and returns text only. It has a context window of 200,000 tokens, which is large enough to hold long documents, transcripts or multi-turn conversations alongside your instructions. The maximum output is 8,000 tokens, so responses are bounded even when the input is very long. Supported request parameters are frequency_penalty, max_tokens, presence_penalty, temperature, top_k, top_p and web_search_options. The web_search_options parameter is the notable one here, since it lets you control the search behaviour that Sonar Pro is built around.
Those capabilities point to a few practical uses. Research and question answering over current information are the obvious fit, because the model can combine a large context with web search rather than relying only on what it learned during training. You can feed it a long report, a set of documents or an image alongside a question and ask for a written answer. Summarisation, comparison and multi-step investigation tasks also work well, since the 200,000 token window lets you keep source material in the same request instead of chunking it. Image input means screenshots, diagrams or scanned pages can be part of the prompt.
To call it through api14, use the model id "perplexity/sonar-pro" with the OpenAI-compatible chat completions endpoint. Your request can set frequency_penalty, max_tokens, presence_penalty, temperature, top_k, top_p and web_search_options, and you can send text and image content in the messages array. Because the interface matches OpenAI's, existing SDKs and libraries generally work with only the base URL and model id changed.
One limit worth noting is the 8,000 token output cap, which may be tight if you need very long generated documents in a single response. If your task does not need web search, or if you need output modalities other than text, another model may fit better. For search-backed answers over long inputs, Sonar Pro is the appropriate choice.
How to call the Perplexity: Sonar Pro API
- Create an API key in your dashboard.
- Install the official openai SDK for your language.
- Set baseURL to https://api14.com/api/v1 and model to "perplexity/sonar-pro".
import OpenAI from "openai";
const client = new OpenAI({
baseURL: "https://api14.com/api/v1",
apiKey: process.env.API14_API_KEY,
});
const result = await client.chat.completions.create({
"model": "perplexity/sonar-pro",
"messages": [
{
"role": "user",
"content": "Explain vector databases in two sentences."
}
]
});
console.log(result.choices[0].message.content);
Supported parameters
frequency_penaltymax_tokenspresence_penaltytemperaturetop_ktop_pweb_search_optionsSpecifications
- Context length
- 200,000
- Max output
- 8,000
- Input
- text, image
- Output
- text
Requests on api14 · last 7 days
Perplexity: Sonar Pro: frequently asked questions
- How much does the Perplexity: Sonar Pro API cost?
- Perplexity: Sonar Pro costs Input $10.50 / 1M tokens. It is charged from your USD balance only for successful requests; failed requests are free.
- What is the context window of Perplexity: Sonar Pro?
- Perplexity: Sonar Pro reads up to 200,000 tokens per request: prompt, history and documents together. It writes up to 8,000 output tokens per response.
- What can Perplexity: Sonar Pro do?
- Perplexity: Sonar Pro accepts text, image and returns text.
- How do I call Perplexity: Sonar Pro from my code?
- Point any OpenAI SDK at https://api14.com/api/v1 and set the model to "perplexity/sonar-pro". No other code changes. Copy a ready example from the code panel on this page.
- What are alternatives to Perplexity: Sonar Pro?
- Comparable Text models at a similar price: Fireworks: Ember-1, Anthropic: Claude Sonnet 4.6, Perplexity: Sonar Pro Search. Each runs through the same API key, so switching is one string.
Perplexity: Sonar Pro community
New topicThis community has no topics yet. Open the first one about Perplexity: Sonar Pro.