Skip to content

Sonar

Sonar is Perplexity's lightweight search model. It combines language generation with built-in web search to deliver citation-backed answers at low cost within a context window of 127K tokens.

Tool UseVision (Image)
index.ts
import { streamText } from 'ai'
const result = streamText({
model: 'perplexity/sonar',
prompt: 'Why is the sky blue?'
})

Playground

Try out Sonar by Perplexity. Usage is billed to your team at API rates. Free users (those who haven't made a payment) get $5 of credits every 30 days.