perplexityChat
Perplexity: Sonar Pro
perplexity/sonar-pro
200KContext Window
8KMax Output
Supported Protocols:max_tokenstemperaturetop_ptop_kfrequency_penaltypresence_penaltyweb_search_options
Normal
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 & ReasoningReasoning
Technical Specs
Input Modality
Text、Image
Output Modality
Text
Arch
—
Default Temperature
0.7
Default Top_P
1
Pricing
Pay per use, no monthly fees| Billing Type | Unit | Price |
|---|---|---|
| Text Input | — | $3.0000/M tokens |
| Text Output | — | $15.0000/M tokens |
| Web Search | — | $0.0050/次 |
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 → →Ready to get started?
Get 1M free tokens on registration, no monthly fees or minimum spend
Register Now →