Perplexity API Platform
Added Updated
Published Last verified Released
Our verdict
Use the Search API if you already run a model and just need fresh, ranked sources: it returns JSON results with page text, costs $5 per 1,000 requests and has no token billing. Use the Agent API if you want Perplexity to run the model, search and cite for you. If you already know which URLs you need, a reader like Jina Reader or Firecrawl is simpler.
- Who it's for
- Builders adding live web research to apps or agents
- Leverage
- Web-grounded answers without a search stack
- Effort
- Medium
- Date added
What Perplexity API does
The Perplexity API Platform is five APIs behind one API key and one host (api.perplexity.ai): Search (ranked web results as JSON), Agent (hosted models from OpenAI, Anthropic, Google, xAI and others with built-in web search, URL fetch and a code sandbox, returning a cited answer), Embeddings, Decisions (calibrated probabilities for yes/no and multiple-choice questions) and Orchestrator (a private preview that routes OpenAI- and Anthropic-format requests).
How builders use Perplexity API
- Agent web tool: give your own agent a search tool that calls POST /search, then pass the top snippets to your model. One request can fan out up to 5 related queries and is billed once.
- Cited 'ask' box in a product: call the Agent API with effort set to low for everyday questions and show the citations it returns; move to medium or high only for multi-source research.
- Topic monitor: a scheduled job runs a fixed query with a date filter and a domain allow-list (up to 20 domains) and stores new URLs. At standard pricing, 10,000 searches a month cost $50.
- Coding agent research: connect Perplexity's MCP server or the pplx command-line tool so a coding agent can search the web without glue code you write yourself.
Which Perplexity API to use
| You need | Use | You get back |
|---|---|---|
| Sources for a model you already run | Search API | Per result: title, url, snippet (extracted page text), date and last_updated. No generated answer. |
| A finished answer with citations | Agent API | An answer from a hosted model that searched and fetched pages for you, with citations. |
| Vectors for retrieval or RAG | Embeddings API | pplx-embed-v1 vectors (0.6B or 4B), plus contextualized variants. |
| A probability, not prose | Decisions API | Calibrated probabilities for yes/no, multiple-choice and rubric questions. |
Perplexity API pricing (checked 9 Nov 2026)
- Search API: $5 per 1,000 successful requests, or $1 per 1,000 with Fast Search. Failed and rate-limited requests aren't billed; a successful request with no results is.
- Agent API: model tokens at each model's published rate, plus tool fees: web_search $0.0025 per call ($0.001 with Fast Search), fetch_url $0.0005 per call, sandbox $0.03 per session.
- Embeddings API: from $0.004 per million tokens (pplx-embed-v1-0.6b).
Perplexity API: limits and gotchas
- Sonar Chat Completions is legacy. Perplexity ended support on 27 Sept 2026: synchronous requests are being converted into Agent API requests, and asynchronous Sonar requests no longer work (use Agent API background mode). Tutorials built on Sonar chat completions are out of date.
- Snippets can be empty. A Search API result can come back with an empty snippet, so check it before you pass it to a model.
- Hard request limits: up to 5 queries per request, 1 to 20 results per web query, and 50 query units per second on every usage tier (each query in a multi-query request counts as one unit).
- Agent API cost varies per run with the model, effort level and tool calls. Log usage.cost.total_cost from responses before you set user-facing limits.
- It finds pages; it doesn't crawl a whole site or return full structured page data. Use a crawler for that.
Perplexity API compared with other tools here
- Firecrawl: pick it when you already know the site or URLs and need full pages as clean Markdown or JSON, or a whole-site crawl. Perplexity is for finding pages you don't know yet.
- Jina Reader: one URL to LLM-friendly text with a URL prefix. A common pairing: find pages with the Search API, then read the full page with Jina Reader.
- Crawl4AI: an open-source crawler you can run yourself when you want to avoid per-request fees and can handle the infrastructure.
- Open Deep Research: LangChain's open-source research agent. It uses Tavily search by default and accepts MCP tools, so you keep control of every step and choose the search backend.
- GPT Researcher: another open-source research agent; Tavily is the default retriever and it supports MCP. Pick it for self-hosted report drafts.
- Gemini Deep Research: hand off a question in Google's app and read the report yourself, with no code.
When to pick Perplexity API
- Pick the Search API if you run your own model and want inexpensive, ranked, fresh sources as JSON.
- Pick the Agent API if you want one call that searches, reads pages and answers with citations.
- Pick something else if you already know the URLs (Jina Reader, Firecrawl) or want to self-host the whole pipeline (Crawl4AI, Open Deep Research).
Perplexity API questions
Is the Perplexity Sonar API still available?
Sonar Chat Completions support ended on 27 Sept 2026. Synchronous and streaming requests keep working because they are converted into Agent API requests; asynchronous Sonar requests are no longer supported. Perplexity recommends the Agent API for new projects.
How much does the Perplexity Search API cost?
$5 per 1,000 successful requests, or $1 per 1,000 with Fast Search, with no token charges. A request with up to 5 queries is billed once.
Can I use the OpenAI SDK with Perplexity?
Yes. The Agent API has an OpenAI compatibility mode and follows the Open Responses specification. Perplexity documents the differences on its OpenAI compatibility page.
Related discoveries
See the newest picks →- ToolResearch & Automation
Gemini Deep Research
Hand off a research question and get back a multi-source report.
Effort: LowPrompt
- ToolResearch & Automation
Open Deep Research (LangChain)
LangChain's MIT deep research agent on LangGraph: plans, researches with parallel sub-agents and writes a report, with the models and search you choose.
Effort: High#Open source
Get the best new A.I. picks in your inbox
The best new agent workflows and tools we’ve vetted, with a clear verdict on each. Short, occasional, useful.