perplexity/sonarClosed API

Fast web-grounded Sonar for current answers, citations, and lightweight retrieval

Benchmark Pricing$1.00 / 1M in$1.00 / 1M out
Context: 128,000 tokens•Max Output: 4,096 tokens•Knowledge: 2025-09-01•Released: 2024-01-01

TECHNICAL SPECIFICATIONS

Context Window128,000128K tokens
Max Output4,0964.1K tokens
LicenseProprietaryCloud API only
Input Modalities
Text
Function / Tool CallingNot Supported
Structured OutputsPrompt Based

MODEL CONTEXT PROTOCOL (MCP) READINESS

⚠ Sonar does not natively advertise tool-calling capabilities. When connecting to MCP servers, function calling must be handled via structured prompt injection.

MCP Context Window Recommendations

With a context capacity of 128,000 tokens, this model can handle moderately large MCP tool definitions and multi-turn conversation logs comfortably.

STANDARDIZED BENCHMARKS & EVALS

SciCodepercent correct
22.9

API CALL INVOCATION EXAMPLE

// Example: Calling Sonar via OpenAI SDK
import OpenAI from "openai";

const client = new OpenAI({
  apiKey: process.env.PERPLEXITY_API_KEY,
});

const response = await client.chat.completions.create({
  model: "perplexity/sonar",
  messages: [{ role: "user", content: "Hello! Can you inspect MCP tools?" }],
});

console.log(response.choices[0].message.content);

PRICING BY PROVIDER

13 providers
Perplexitysonar
$1.00 / $1.00
SAP AI Coresonar-deep-research
$2.00 / $8.00
LLM Gatewayperplexity/sonar
$0.25 / $2.50
AI/ML APIperplexity/sonar
$1.30 / $1.30
LLMTRperplexity/sonar-deep-research
$2.00 / $8.00
Vercel AI Gatewayperplexity/sonar
$0.25 / $2.50
Eden AIperplexityai/sonar-reasoning-pro
$2.00 / $8.00
Kilo Gatewayperplexity/sonar-reasoning-pro
$2.00 / $8.00
DevPass (LLM Gateway)sonar
$0.25 / $2.50
Oppersonar-reasoning-pro
$2.00 / $8.00
Perplexity Agentperplexity/sonar
$0.25 / $2.50$0.06 cache
Heliconesonar-reasoning-pro
$2.00 / $8.00
OpenRouterperplexity/sonar-reasoning-pro
$2.00 / $8.00

Rates in USD per 1M tokens. Rates synchronized from models.dev public catalog.

MODEL RESOURCES