impulse

Sonar Medium Online

API id sonar-medium-online
Input / 1M
$0.00
at Perplexity
Output / 1M
$1.80
at Perplexity
Context window
12K
tokens
Max output
12K
tokens per reply
Hosts
1
1 listings
Released
-
date not published

Pricing

List prices at Perplexity, in US dollars per million tokens.

TierInput / 1MOutput / 1M
Standard$0.00$1.80

What it costs a month

At Perplexity list prices, 30 days.

  • Chat assistant5,000 requests a day, 2K in / 0.5K out$135
  • RAG over documents2,000 requests a day, 8K in / 0.6K out$64.80
  • Coding agent1,000 requests a day, 40K in / 2K out$108
  • Overnight batch20,000 requests a day, 4K in / 0.4K out$432
Use your own numbers

Where to run it

1 host serve Sonar Medium Online. The comparison is on blended price, 3 parts input to 1 part output.

HostIn / out per 1M
PerplexityGateway
sonar-medium-online
$0.00 / $1.80

Capabilities

Core

  • Streaming
  • Function calling
  • JSON mode
  • Structured outputs

Multimodal

  • Vision
  • Image input
  • Audio
  • Image generation
  • Video

Advanced

  • Reasoning
  • Tool calling
  • MCP
  • Prompt caching
  • Batch API
  • Embeddings
Takes in
Text
Produces
Text

Cheaper alternatives

Current models that cost less and keep most of what this one can do: tools, vision, reasoning, structured output, caching and enough context.

Same model, cheaper host

No host sells it for less than Perplexity.

Smaller Perplexity models

  • Sonar Small Chat
    Perplexity · on Perplexity
    $0.07 / $0.28
    Has every key capability
    73% less
  • Sonar Small Online
    Perplexity · on Perplexity
    $0.00 / $0.28
    Has every key capability
    84% less

Other frontier labs

  • Claude Haiku 5.5
    Anthropic · on Anthropic
    $0.10 / $0.50
    Has every key capability
    56% less
  • GPT-6 Luna
    OpenAI · on OpenAI
    $0.10 / $0.50
    Has every key capability
    56% less
  • GPT-4o Mini
    OpenAI · on OpenAI
    $0.15 / $0.60
    Has every key capability
    42% less

Open-weight picks

  • GLM 4 6v
    Zhipu AI · on Novita AI
    $0.30 / $0.90
    Has every key capability
    0% less
  • Step 3.7 Flash
    Independent · on DeepInfra
    $0.20 / $1.15
    Has every key capability
    3% less
  • MiMo V2.6 Pro
    Xiaomi · on GMI Cloud
    $0.348 / $0.696
    Has every key capability
    3% less
  • MiniMax M3
    MiniMax · on EmpirioLabs AI
    $0.225 / $0.90
    Has every key capability
    12% less

Call it

Using Perplexity's API.

Python
from litellm import completion

response = completion(
    model="perplexity/sonar-medium-online",
    messages=[{"role": "user", "content": "Hello"}],
)
print(response.choices[0].message.content)

Quick answers

How much does Sonar Medium Online cost?

On Perplexity, Sonar Medium Online costs $1.80 per million output tokens.

Which APIs offer Sonar Medium Online?

Sonar Medium Online runs on 1 API: Perplexity.

What is Sonar Medium Online's context window?

12K tokens, with up to 12K tokens in one reply.

Is Sonar Medium Online being retired?

No retirement date is scheduled for it on any API we track.

What are cheaper alternatives to Sonar Medium Online?

Models that cost less and keep most of what it can do: Sonar Small Chat on Perplexity (73% less), Claude Haiku 5.5 on Anthropic (56% less), GPT-6 Luna on OpenAI (56% less) and GLM 4 6v on Novita AI (0% less). Savings are on a mix of 3 input tokens to 1 output token.

What is Sonar Medium Online's API model id?

Use sonar-medium-online with Perplexity.

Sources

Raw catalog entry for sonar-medium-online on Perplexity
{
  "input_cost_per_request": 0.005,
  "input_cost_per_token": 0,
  "litellm_provider": "perplexity",
  "max_input_tokens": 12000,
  "max_output_tokens": 12000,
  "mode": "chat",
  "output_cost_per_token": 0.0000018
}