Back to products
Perplexity API Platform

Perplexity API Platform

Power your products with web-wide research, Q&A capabilities

Website docs.perplexity.ai
Overview

What it is

Perplexity's API now covers the full agent stack: multi-provider model access, real-time search on 200B+ URLs, and SOTA embeddings. One key, one bill, direct provider pricing. Built for developers who are tired of stitching together five vendors to ship one thing.

Intent

I need it when

Integrate Perplexity search and reasoning into existing AI assistants via MCP

Perplexity MCP Server connects AI assistants (Claude, Cursor, VS Code) to four tools: perplexity_search, perplexity_ask, perplexity_research, and perplexity_reason. One-click installation enables real-time web search and advanced reasoning directly within MCP-compatible workflows without custom integration code.

Build AI agents with access to multiple LLM providers and real-time web search

Agent API provides unified access to OpenAI, Anthropic, Google, and xAI models with integrated web search, fetch_url, people_search, and finance_search tools. Users can orchestrate multi-provider models with fallback chains and presets for common configurations, enabling autonomous agents with transparent per-token pricing.

Get ranked web search results for custom AI workflows without LLM processing

Search API returns raw, ranked web search results with advanced filtering, domain controls, and multi-query support at $5 per 1K requests. No token costs—ideal for building custom search experiences, data collection, or feeding results into proprietary models.

Generate web-grounded AI responses with citations and conversation context

Sonar API provides Perplexity's optimized models (Sonar, Sonar Pro, Sonar Deep Research) with built-in citations, streaming support, and conversation memory. Pro Search enables multi-step reasoning with automated tool usage for complex queries, priced per token plus request fees based on search context depth.

Build semantic search and RAG pipelines with high-quality text embeddings

Embeddings API generates standard and contextualized embeddings in 1024 or 2560 dimensions for semantic similarity, retrieval-augmented generation, and text classification. Priced at $0.004-$0.05 per 1M tokens, enabling efficient vector-based search and recommendation systems.

Drop

Not a fit when

  • User needs fixed monthly subscription pricing without token-based metering
  • User requires offline-only operation without real-time web search capabilities
  • User needs proprietary closed-source models without third-party provider options
  • User requires guaranteed response times without variable latency from web search
  • User needs local deployment without cloud API dependency
Commercials

Pricing

Pay-as-you-go token-based pricing with per-invocation tool costs. Agent API uses third-party provider rates with no markup. Search API charges $5 per 1K requests. Sonar API charges per token plus request fees ($5-$14 per 1K requests by context size). Embeddings API charges $0.004-$0.05 per 1M tokens by model. View pricing