perplexityVision
Perplexity: Sonar Pro
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...
Context
200k tokens
Input / 1M tokens
$3
Output / 1M tokens
$15
Benchmark
—
Pricing
Input tokens$3 per 1M tokens
Output tokens$15 per 1M tokens
Technical details
Model IDperplexity/sonar-pro
Context window200k tokens
Input modalitiestext, image
Output modalitiestext
TokenizerOther
Max output tokens8,000
Use with MegaBrain
import OpenAI from 'openai'
const client = new OpenAI({
baseURL: 'https://getmegabrain.com/api/gateway/v1',
apiKey: process.env.MEGABRAIN_API_KEY,
})
const response = await client.chat.completions.create({
model: 'perplexity/sonar-pro',
messages: [{ role: 'user', content: 'Hello!' }],
})Ready to use Perplexity: Sonar Pro?
Get an API key and start making requests in minutes.
Get an API key