perplexityChat
Perplexity: Sonar Pro
perplexity/sonar-pro
200KContext Window
8KMax Output
Supported Protocols:max_tokenstemperaturetop_ptop_kfrequency_penaltypresence_penaltyweb_search_options
Online
Note: Sonar Pro pricing includes Perplexity search pricing. See [details here](https://docs.perplexity.ai/guides/pricing#detailed-pricing-breakdown-for-sonar-reasoning-pro-and-sonar-pro) For enterprises seeking more advanced capabilities, the Sonar Pro API can handle in-depth, multi-step queries with added extensibility, like double the number of citations per search as Sonar on average. Plus, with a larger context window, it can handle longer and more nuanced searches and follow-up questions.
Capabilities
👁 VisionText GenerationCode GenerationAnalysis & Reasoningmodels.reasoning
Technical Specs
Input Modality
Text、Image
Output Modality
Text
Arch
—
Pricing
Pay per use, no monthly feesInput Token< ¥0.001/1K Token
Output Token< ¥0.001/1K Token
Quick Start
from openai import OpenAI
client = OpenAI(
base_url="https://api.uniontoken.ai/v1",
api_key="YOUR_UNIONTOKEN_API_KEY",
)
response = client.chat.completions.create(
model="perplexity/sonar-pro",
messages=[
{"role": "user", "content": "Hello!"}
],
)
print(response.choices[0].message.content)FAQ
Perplexity: Sonar Pro
perplexity/sonar-pro
In< ¥0.001/1K
Out< ¥0.001/1K
Context Window200K
Max Output8K
Related Models
View All → →Perplexity: Llama 3.1 Sonar 8B Online
perplexity/llama-3.1-sonar-small-128k-online
< ¥0.001/1K
Perplexity: Llama 3.1 Sonar 70B Online
perplexity/llama-3.1-sonar-large-128k-online
< ¥0.001/1K
Perplexity: Llama3 Sonar 70B
perplexity/llama-3-sonar-large-32k-chat
< ¥0.001/1K
Perplexity: Llama3 Sonar 8B Online
perplexity/llama-3-sonar-small-32k-online
< ¥0.001/1K
Ready to get started?
Get 1M free tokens on registration, no monthly fees or minimum spend
Register Now →