Skip to content Chat

Sonar API

5 Sonar models on one OpenAI-compatible API and one prepaid balance, billed per use at the official price.

Get API Key All 5 Sonar models

Official price

$3.00 / $15.00 per 1M input / output tokens

Sonar Pro Search

Sonar models and prices 5

ModelContextPriceDiscount
Sonar Pro Searchperplexity/sonar-pro-search200K$3.00 / $15.00 per 1M tokens—
Sonar Reasoning Properplexity/sonar-reasoning-pro128K$2.00 / $8.00 per 1M tokens—
Sonar Properplexity/sonar-pro200K$3.00 / $15.00 per 1M tokens—
Sonar Deep Researchperplexity/sonar-deep-research128K$2.00 / $8.00 per 1M tokens—
Sonarperplexity/sonar127K$1.00 / $1.00 per 1M tokens—

Prices as of November 5, 2026. Official price: the model maker's list price. Tier 1–3: OceanToken's standing discounts by cumulative top-up, not limited-time offers.

Call the Sonar API

Any OpenAI-compatible SDK works: set the base URL to https://api.oceantoken.ai/v1, use your OceanToken key and the model id as written.

Python
from openai import OpenAI
# Your API Key from the OceanToken console
client = OpenAI(base_url="https://api.oceantoken.ai/v1",
                api_key="YOUR_API_KEY")
reply = client.chat.completions.create(
    model="perplexity/sonar-pro-search",
    messages=[{"role": "user", "content": "Hello"}])
print(reply.choices[0].message.content)

Why use Sonar on OceanToken

  • One API key and one prepaid balance for nearly 500 models from 73 publishers.
  • OpenAI-compatible: change the base URL and the key, and keep your code.
  • Prepaid, with no subscription and no platform fee. Each API key can have its own spending limit.

Frequently asked questions

How much does the Sonar API cost?

On OceanToken Sonar Pro Search costs $3.00 / $15.00 per 1M tokens. The lowest-priced Sonar model is Sonar, at $1.00 / $1.00 per 1M tokens. Every model is billed per use from a prepaid balance, with no subscription.

Are these the official Sonar models?

Yes. You call each model by its own name and get that model. Every model page shows the official price next to ours before you call it.

How do I call the Sonar API?

Create an API key in the OceanToken console, set the base URL to https://api.oceantoken.ai/v1 and use the model id, for example perplexity/sonar-pro-search. The OpenAI SDKs and any OpenAI-compatible client work.

Do I need a subscription to use Sonar?

No. You add credits by card, and each request is billed at the model’s price. Purchased credits are valid for 12 months.

Get API Key All models

Other model APIs

Kimi API · MiniMax API · Claude API · GPT API · Gemini API · Grok API · Mistral API · Llama API · Gemma API · Nemotron API · Hunyuan API · Seed API · Command API · Nova API · Veo API · Kling API · Wan API · Hailuo API · Nano Banana API · Seedream API · GPT Image API · FLUX API · Qwen Image API · Grok Imagine API · Recraft API · MAI Image API · Whisper API · Voyage API