LiteLLMLiteLLM/ MODELS

Sonar API Pricing

By Perplexity · 3 providersperplexity/sonarCompare
Input / output
$1.00 / $1.00 per 1M tokens
Context
128K tokens
Max output
128K tokens

As of November 24, 2026, Sonar costs $1.00 per 1M input tokens and $1.00 per 1M output tokens on Perplexity. Across 3 providers on LiteLLM, the input price ranges from $0.25 to $1.35. It has a 128,000-token context window and returns up to 128,000 tokens per response.

Prices updated Checked

Sonar pricing by provider

4 listings across 3 providers. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.

Sonar prices by provider in US dollars, token prices per 1M tokens, as of November 24, 2026. Source: LiteLLM model price file.
ProviderModel name in LiteLLMInputOutputCache readContext
Perplexityperplexity/sonar$1.00$1.00–128K
Perplexityperplexity/perplexity/sonar$0.25$2.50$0.0625–
Kyma APIkyma/sonar$1.35$1.35–127K
Vercel AI Gatewayvercel_ai_gateway/perplexity/sonar$1.00$1.00–127K

Other Sonar prices on Perplexity

Web search$8.00 per 1K searches

What Sonar costs in practice

1,000 requests with 2,000 input and 500 output tokens each

Perplexity$2.50
Vercel AI Gateway$2.50
Kyma API$3.375

100 long-document requests with 100,000 input and 2,000 output tokens each

Perplexity$10.20
Vercel AI Gateway$10.20
Kyma API$13.77

Sonar cost calculator

At Perplexity's price ($1.00 input, $1.00 output per 1M tokens), 10,000 requests a day with 1,000 input and 500 output tokens each cost $15.00 a day, about $450 a month. Change the numbers for your workload, or compare it with other models.

Per request
$0.0015
Per day
$15.00
Per month (30 days)
$450

Sonar features

Input: text, image. Output: text.

Use Sonar with LiteLLM

Call Sonar through the LiteLLM Python SDK, or put it behind the LiteLLM proxy and send OpenAI-format requests to /v1/chat/completions. LiteLLM tracks the cost of every request at these prices.

Python SDK
from litellm import completion

response = completion(
    model="perplexity/sonar",
    messages=[{"role": "user", "content": "Hello!"}],
)
Proxy config.yaml
model_list:
  - model_name: sonar
    litellm_params:
      model: perplexity/sonar
      api_key: os.environ/PERPLEXITYAI_API_KEY
Call the proxy
curl http://0.0.0.0:4000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $LITELLM_API_KEY" \
  -d '{
    "model": "sonar",
    "messages": [{"role": "user", "content": "Hello!"}]
  }'

Sonar FAQ

How much does Sonar cost?

Sonar costs $1.00 per 1M input tokens and $1.00 per 1M output tokens on Perplexity. Across 3 providers on LiteLLM, the input price ranges from $0.25 to $1.35.

What is the context window of Sonar?

Sonar has a 128,000-token context window and returns up to 128,000 tokens per response.

Which providers offer Sonar?

Sonar is available from 3 providers through LiteLLM: Perplexity, Kyma API and Vercel AI Gateway. The lowest price is on Perplexity.

How do I call Sonar with an OpenAI-compatible API?

Use the LiteLLM Python SDK with model="perplexity/sonar", or add the model to the LiteLLM proxy's config.yaml and send requests to /v1/chat/completions from any OpenAI client. LiteLLM tracks the cost of every request at the prices on this page.

What features does Sonar support?

Sonar supports function calling, image input, prompt caching and web search.

When did LiteLLM add Sonar?

Sonar was added to LiteLLM's model price file in February 2025.

Sources

Prices come from LiteLLM's open-source model_prices_and_context_window.json, which LiteLLM uses to calculate the cost of every request. Maintainers update it from each provider's published pricing, and this page is usually rebuilt within 20 minutes of every change. Provider pricing pages:

LiteLLM docs: Perplexity, Kyma API, Vercel AI Gateway.

Provider pages: Perplexity, Kyma API, Vercel AI Gateway.