Sonar Medium Chat API Pricing
- Input / output
- $0.60 / $1.80 per 1M tokens
- Context
- 16K tokens
- Max output
- 16K tokens
As of November 24, 2026, Sonar Medium Chat costs $0.60 per 1M input tokens and $1.80 per 1M output tokens on Perplexity. It has a 16,384-token context window and returns up to 16,384 tokens per response.
Sonar Medium Chat pricing by provider
1 listing across 1 provider. Token prices are in US dollars per 1M tokens. The highlighted row is the price quoted above.
| Provider | Model name in LiteLLM | Input | Output | Context |
|---|---|---|---|---|
| Perplexity | perplexity/sonar-medium-chat | $0.60 | $1.80 | 16K |
What Sonar Medium Chat costs in practice
1,000 requests with 2,000 input and 500 output tokens each
| Perplexity | $2.10 |
Sonar Medium Chat cost calculator
At Perplexity's price ($0.60 input, $1.80 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 Medium Chat features
Input: text. Output: text.
Use Sonar Medium Chat with LiteLLM
Call Sonar Medium Chat 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.
from litellm import completion
response = completion(
model="perplexity/sonar-medium-chat",
messages=[{"role": "user", "content": "Hello!"}],
)model_list:
- model_name: sonar-medium-chat
litellm_params:
model: perplexity/sonar-medium-chat
api_key: os.environ/PERPLEXITYAI_API_KEYcurl http://0.0.0.0:4000/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $LITELLM_API_KEY" \
-d '{
"model": "sonar-medium-chat",
"messages": [{"role": "user", "content": "Hello!"}]
}'Sonar Medium Chat FAQ
How much does Sonar Medium Chat cost?
Sonar Medium Chat costs $0.60 per 1M input tokens and $1.80 per 1M output tokens on Perplexity.
What is the context window of Sonar Medium Chat?
Sonar Medium Chat has a 16,384-token context window and returns up to 16,384 tokens per response.
Which providers offer Sonar Medium Chat?
Sonar Medium Chat is available from Perplexity through LiteLLM, using the model name perplexity/sonar-medium-chat.
How do I call Sonar Medium Chat with an OpenAI-compatible API?
Use the LiteLLM Python SDK with model="perplexity/sonar-medium-chat", 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.
When did LiteLLM add Sonar Medium Chat?
Sonar Medium Chat was added to LiteLLM's model price file in March 2024.
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.
LiteLLM docs: Perplexity.
Provider pages: Perplexity.