Perplexity Sonar API

Perplexity's open networked search Q&A API, the Sonar series, combines real-time retrieval with LLM generation to return answers with cited sources. Suitable for Q&A and research applications that require timely information, billed

By PerplexityAPI
Usage-basedVisit website docs.perplexity.ai
5 views 0 reviews

What is Perplexity Sonar API?

Perplexity's open networked search Q&A API, the Sonar series, combines real-time retrieval with LLM generation to return answers with cited sources. Suitable for Q&A and research applications that require timely information, billed on demand, without the need to build your own search link.

Developers who need current, cited answers from the live web inside their own products.

What you can do

  • Pay-as-you-go — There is a free quota; advanced features require payment
  • A bit of a threshold is needed — Before getting started, it's recommended to read the official documentation first
  • Web version — You can use it directly with the browser, no client installation required

Where it fits

Useful for

  • Adding live web answers to apps
  • Running deep research over the web
  • Building cited Q&A features

Before you choose

  • Search cost depends on search context size, which drives per-request pricing.
  • The old /chat/completions path is now an alias for /v1/sonar.

Capabilities

Text chat

Chat completions API with web grounding; no chat app of its own.

Web search

Real-time web-wide search with citations, plus a separate Search API returning raw ranked results.

Code generation & execution

Sonar models can generate code; no execution environment.

Reasoning & deep research

sonar-deep-research conducts exhaustive searches and writes comprehensive reports; sonar-reasoning-pro adds reasoning.

API access

REST API and official SDK for Sonar chat completions and Search, billed per token and per search.

Pricing & plans

Prices checked 11/25/2026

Pay-as-you-go

Pay as you go per token
  • 按 token 计费,另加搜索请求费;与订阅分开计费,无需订阅
  • 按量计费,官方无年付折扣
Plan details ↗

Usage-based API pricing, USD per 1M tokens; Sonar Deep Research also bills citations, reasoning tokens and searches. Sonar Chat Completions is migrating to the Agent API (documented support through 2026-09-27). Prices are USD per 1M tokens. Sonar Deep Research also bills citations ($2/1M tokens), reasoning tokens ($3/1M tokens) and searches ($5/1K requests). Sonar Chat Completions is migrating to the Agent API (documented support through 2026-09-27).

Official pricing ↗

Questions and answers

How much does the Perplexity Sonar API cost?

The Perplexity Sonar API offers a free quota, and after exceeding it, you will be charged according to the plans sold on the official website.

Who is it suitable for?

Adjust models, compare prices, and deploy fine-tuning yourself. Check the context length, concurrency limit, and whether invoices can be issued. It requires some learning curve to get started.

Explore similar tools

OpenRouter

AI Dev Platforms

A single key calls hundreds of models, real-time price and availability comparison, supports automatic failover and cost-based routing, unified billing, suitable for multi-model access and backup solutions, and some smal…

Free / FreemiumWeb · API
14

Hugging Face

AI Dev Platforms

Open-source model and dataset hub with inference APIs.

Free / FreemiumWeb · iOS · Android
14

Scikit Learn

AI Dev Platforms

The most popular open-source machine learning library, complete with classic algorithms and unified APIs, covering everything from classification regression to clustering and dimensionality reduction, with abundant docum…

FreeWindows · macOS · Linux
13

PaddlePaddle

AI Dev Platforms

Baidu's open-source deep learning framework, free to use.

FreeWindows · macOS · Linux
13
Comments Be the First to Comment

Please log in to comment

    No comments yet