Perplexity API

Perplexity's AI models for search and conversation with real-time web access

Data & Privacy

HQ:US
Safety identifier:Not forwarded
API Training:No
Prompt Logging:No
Retention:0 days
GDPR:Compliant
SOC2:Type II Certified

Available Models

Perplexity Search Fast

perplexity
perplexity-search-fast
Perplexity
Context: —
Input
$0
/M tokens
Cached
—
/M tokens
Output
$0
/M tokens
+ $0.001 per request

Perplexity Search

perplexity
perplexity-search
Perplexity
Context: —
Input
$0
/M tokens
Cached
—
/M tokens
Output
$0
/M tokens
+ $0.005 per request

Sonar

perplexity
sonar
Streaming
JSON Schema
Perplexity
Context: 130k
Input
$0.25
/M tokens
Cached
—
/M tokens
Output
$2.5
/M tokens
+ $0.003 per search

FAQ

Perplexity API questions

Can't find an answer? Contact us

Create an LLM Gateway API key and point any OpenAI-compatible SDK at https://api.llmgateway.io/v1. Set the model to perplexity-search-fast. On pay-as-you-go keys, perplexity/perplexity-search-fast pins every request to Perplexity; DevPass coding plans do not support provider pinning. You do not need a separate Perplexity account or SDK.