perplexityVision
Perplexity: Sonar
Try in chat →Sonar is lightweight, affordable, fast, and simple to use — now featuring citations and the ability to customize sources. It is designed for companies seeking to integrate lightweight question-and-answer features...
Context
127k tokens
Input / 1M tokens
$1
Output / 1M tokens
$1
Benchmark
—
Uptime & performance
Loading…
Pricing
Input tokens$1 per 1M tokens
Output tokens$1 per 1M tokens
Apps and activity
Loading…
Technical details
Model IDperplexity/sonar
Context window127k tokens
Input modalitiestext, image
Output modalitiestext
TokenizerOther
Max output tokens114,364
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',
messages: [{ role: 'user', content: 'Hello!' }],
})Ready to use Perplexity: Sonar?
Try it in the browser first, then get an API key and start making requests in minutes.