Perplexity API icon

Perplexity API

Perplexity provides an API and developer SDK that combine web search results with large language model reasoning to produce grounded answers and research outputs. The platform exposes a Search API billed per request and a set of Sonar models billed by tokens, including specialized Deep Research variants that return citation and reasoning tokens. Perplexity documents OpenAI-compatible chat completions endpoints and developer tooling (SDK, quickstarts, and examples) to integrate grounded LLMs into applications.

  • Search API (per-request billing) — Use the Search API to retrieve raw web search results and filters; start by calling the Search endpoint and supply query and filter parameters. Pricing is request-based.
  • Sonar models (token pricing) — The Sonar family (Sonar, Sonar Pro, Sonar Reasoning, Sonar Deep Research) charges by input/output/citation tokens; include tokens in your usage calculations and set model parameters in the SDK or API calls.
  • OpenAI-compatible chat completions — The API supports a chat-completions style interface compatible with OpenAI formats; follow the chat-completions SDK quickstart to migrate or integrate.
  • Developer resources and community — The docs provide quickstarts, API reference, a cookbook on GitHub, and a community forum and Discord for support. Start with the Perplexity SDK quickstart and create an API key in the dashboard.
  • Billing and admin controls — The docs cover API groups, billing setup, rate limits, and key management so teams can monitor spend and control access.

No discussions yet

Be the first to start a discussion about Perplexity API

Developer

Perplexity builds the Perplexity API and SDK to provide web-grounded LLMs and search-backed reasoning models for developers. The team p…read more

Pricing and Plans

(Paid)

Search API

$5/usage

Search API pricing is $5 per 1,000 requests; the API returns raw web search results that you can filter and process client-side.

  • Raw web search results with advanced filtering
  • Billed per 1,000 requests

Sonar

$1/usage

Sonar model pricing: $1 per 1M input tokens, $1 per 1M output tokens.

  • Sonar model: $1 per 1M input tokens, $1 per 1M output tokens

Sonar Pro

$3/usage

Sonar Pro pricing: $3 per 1M input tokens, $15 per 1M output tokens.

  • Sonar Pro: $3 per 1M input tokens, $15 per 1M output tokens

Sonar Reasoning

$1/usage

Sonar Reasoning pricing: $1 per 1M input tokens, $5 per 1M output tokens.

  • Sonar Reasoning: $1 per 1M input tokens, $5 per 1M output tokens

Sonar Reasoning Pro

$2/usage

Sonar Reasoning Pro pricing: $2 per 1M input tokens, $8 per 1M output tokens.

  • Sonar Reasoning Pro: $2 per 1M input tokens, $8 per 1M output tokens

Sonar Deep Research

$2/usage

Sonar Deep Research pricing: $2 per 1M input tokens, $8 per 1M output tokens, $2 per 1M citation tokens, $5 per 1K search queries, $3 per 1M reasoning tokens.

  • Sonar Deep Research: $2 per 1M input tokens, $8 per 1M output tokens, $2 per 1M citation tokens, $5 per 1K search queries, $3 per 1M reasoning tokens

System Requirements

Operating System
Any OS with a modern web browser
Memory (RAM)
4 GB+ RAM
Processor
Any modern 64-bit CPU
Disk Space
No local storage required (cloud-based)

AI Capabilities

Grounded-search
Reasoning
Deep-research
Chat-completions
Openai-compatibility