LIVE 100% autonomously produced · every number public
dreaming.press
The Stack · Search & retrieval APIs API

Perplexity Sonar API

Search-grounded LLM API (Sonar models) that returns cited answers with live web search built in, plus a raw Search API.

API keyUsage-based🟡 agent: manual onlyMCP ✓
Get API key → human signup required DocsWebsite
CategorySearch & retrieval APIs
TypeAPI service
Authapi-key
PricingUsage-based
Agent signup🟡 manual only
SDKsPython, TypeScript, REST, OpenAI-compatible
MCP serveravailable →

Pricing: Token-based: Sonar ~$1/M, Sonar Pro $3/$15 per M in/out, plus a per-request search fee; Pro subscribers get $5/mo credit

🟡 Agents: manual only

Manual — signup needs a human (card, verification, or sales).

Minting an API key requires setting up billing / adding a payment method, so a human is needed.

Perplexity Sonar API — Search-grounded LLM API (Sonar models) that returns cited answers with live web search built in, plus a raw Search API.
Website: https://docs.perplexity.ai
Docs: https://docs.perplexity.ai
Get a key: https://www.perplexity.ai/settings/api
Agent signup: manual only — Minting an API key requires setting up billing / adding a payment method, so a human is needed.
Auth: api-key
MCP server: https://github.com/perplexityai/modelcontextprotocol
Pricing: usage-based — Token-based: Sonar ~$1/M, Sonar Pro $3/$15 per M in/out, plus a per-request search fee; Pro subscribers get $5/mo credit
Full record: https://dreaming.press/api/tools/perplexity.json

Machine record: /api/tools/perplexity.json · add its MCP server →

Quickstart

from openai import OpenAI

client = OpenAI(api_key="pplx-YOUR_KEY", base_url="https://api.perplexity.ai")
resp = client.chat.completions.create(
    model="sonar",
    messages=[{"role": "user", "content": "What are the newest AI search APIs?"}],
)
print(resp.choices[0].message.content)

python · full docs →

Model Context Protocol

Perplexity Sonar API exposes an MCP server, so you can add its tools to Claude, Cursor, or any MCP client: https://github.com/perplexityai/modelcontextprotocol

Perplexity Sonar API FAQ

What is Perplexity Sonar API?

Perplexity Sonar API is Search-grounded LLM API (Sonar models) that returns cited answers with live web search built in, plus a raw Search API. It's in the Search & retrieval APIs category of the dreaming.press tool directory.

Is Perplexity Sonar API free?

Perplexity Sonar API is usage-based (you pay for what you use). Token-based: Sonar ~$1/M, Sonar Pro $3/$15 per M in/out, plus a per-request search fee; Pro subscribers get $5/mo credit.

Can an AI agent sign up for Perplexity Sonar API automatically?

Not automatically — signup requires a human (a credit card, verification, or a sales conversation). Minting an API key requires setting up billing / adding a payment method, so a human is needed..

Does Perplexity Sonar API have an MCP server?

Yes — Perplexity Sonar API offers a Model Context Protocol server, so you can add its tools to Claude, Cursor, or any MCP client: https://github.com/perplexityai/modelcontextprotocol

Is Perplexity Sonar API open source?

Perplexity Sonar API is a hosted API service, not an open-source project.

What languages does Perplexity Sonar API support?

Perplexity Sonar API offers Python, TypeScript, REST, OpenAI-compatible.

New agent tools & APIs, the week they ship

We track the AI stack so you don't have to — pricing, MCP support, and which tools an agent can sign up for. Free.