Perplexity: Sonar

Deprecatedperplexity/sonar

Perplexity Sonar API pricing

Sonar costs $0.400 per million input tokens and $0.400 per million output tokens on Oxyy. These are the pay-as-you-go prices after the current 60% discount (Launch Promo; standard price $1.00 input and $1.00 output). Web search is billed on top, at $7.20 per 1K searches. It accepts text, images and files and returns text.

Lightweight search-grounded model for quick factual answers with citations. The cheapest Sonar tier.

ModalitiesTextImageFileText
Price$0.400 / $0.400 per 1M tokens in / out
Web search$7.20 per 1K searches

Providers

Where this model runs, and what each route costs. Requests are sent to a healthy provider automatically; if one errors, the gateway retries against another serving the same model.

ProviderInput /MOutput /MCache read /M
Perplexity$0.400$0.400—

Capabilities (8)

StreamingStructured outputSystem promptWeb searchCitationsVisionFile InputLanguage Preference

Supported parameters (19)

modelmessagesstreammax_tokenstemperaturetop_ptop_kpresence_penaltyfrequency_penaltyresponse_formatsearch_modesearch_domainsearch_domain_filtersearch_recency_filtersearch_after_date_filtersearch_before_date_filterreturn_related_questionsreturn_imagesweb_search_options

Any other parameter you send is ignored rather than rejected.

Pricing

What this model costs on Oxyy, pay as you go. "Charged" is the rate a request is billed at; the standard price is shown beside it for reference.

Input price
$0.400
per 1M input tokens · standard price $1.00
Output price
$0.400
per 1M output tokens · standard price $1.00
RateStandard priceChargedUnit
Input$1.00$0.400per 1M input tokens
Output$1.00$0.400per 1M output tokens
Web search$18.00$7.20per 1K searches

Discount. Charged rates include the current "Launch Promo" discount of 60% on every rate.

UTC

Specifications

Model ID
sonar
Developer
Perplexity
Type
Text
Input
Text, images and files
Output
Text
Series
Sonar
Image input
Up to 20 MB each
File input
Up to 100 MB each
Endpoint
/v1/chat/completions
Status
Deprecated (Sep 27, 2026)

Best for

Search groundedCitationsWeb searchRealtime

Quickstart

Call sonar with a POST to /v1/chat/completions on https://api.oxyy.ai, using your Oxyy API key from the OXYY_API_KEY environment variable. The same key works for every model in the catalog.

import os
from openai import OpenAI

client = OpenAI(
    base_url="https://api.oxyy.ai/v1",
    api_key=os.environ["OXYY_API_KEY"],
)

response = client.chat.completions.create(
    model="sonar",
    messages=[
        {"role": "user", "content": "Explain unified AI APIs in one sentence."},
    ],
)
print(response.choices[0].message.content)

Availability

The share of requests to this model that completed successfully over the last 30 days. When an upstream provider errors, the gateway retries against another provider serving the same model, so a single provider incident does not necessarily show up here.

Requests (30 days)
8
A success rate is shown from 100 completed requests
Days with traffic
3
of the last 30 days

Activity

Token volume and request traffic to this model over time. Daily totals, UTC.

Prompt103
Completion149

Prompt tokens measure input size. Reasoning tokens show internal thinking before a response. Completion tokens reflect total output length. Reasoning is not priced separately for this model, so it is not itemised here.

Frequently asked questions

What is Sonar?
Lightweight search-grounded model for quick factual answers with citations. The cheapest Sonar tier.
How much does Sonar cost?
Sonar costs $0.400 per million input tokens and $0.400 per million output tokens on Oxyy. These are the pay-as-you-go prices after the current 60% discount (Launch Promo; standard price $1.00 input and $1.00 output). Web search is billed on top, at $7.20 per 1K searches. You pay per request, with no subscription.
Does Sonar support tool calling and structured outputs?
Sonar supports structured outputs. Tool calling is not listed among its capabilities.
What inputs and outputs does Sonar support?
Sonar accepts text, images and files as input and returns text.
Which API endpoint does Sonar use?
Send a POST request to https://api.oxyy.ai/v1/chat/completions with "model": "sonar", authenticated with your Oxyy API key.

Alternatives to Sonar

Models of the same kind from other vendors, closest in price first. Prices are pay-as-you-go on Oxyy, through the same API key.

Explore more models