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
Pricing and Plans
Search API
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
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
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
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
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
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