Skip to content
Dashboard

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.

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

Providers

Route requests across multiple providers. Copy a provider slug to set your preference. Visit the docs for more info. Using a provider means you agree to their terms, listed under Legal.

Provider
Context
Latency
Throughput
Input
Output
Cache
Web Search
Per Query
Capabilities
ZDR
No Training
Release Date
Perplexity
127K
1.1s
150tps
$1.00/M$1.00/M
$5/K*
02/19/2025