perplexityVision

Perplexity: Sonar

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

Pricing

Input tokens$1 per 1M tokens
Output tokens$1 per 1M tokens

Technical details

Model IDperplexity/sonar
Context window127k tokens
Input modalitiestext, image
Output modalitiestext
TokenizerOther

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?

Get an API key and start making requests in minutes.

Get an API key