Perplexity API pricing & API key
Every Perplexity model on one page: 2 models, from $1.48 to $4.43 per 1M input tokens. Get one Perplexity API key from YepAPI and pay per request — no subscription, no Perplexity account or waitlist.
Takes 30 seconds.
Perplexity API pricing (2 models)
YepAPI prices per 1M tokens (text) or per output (media), cheapest first. Updated October 24, 2026.
All Perplexity models
Perplexity API through YepAPI
YepAPI provides access to Perplexity models through a unified API endpoint. Instead of managing a separate Perplexity API key and billing account, use your single YepAPI key to call any Perplexity model alongside 283 other AI models from OpenAI, Anthropic, Google, Meta, and more.
All Perplexity models use the same OpenAI-compatible request format. Switch between models by changing the model parameter — no SDK changes, no code rewrites. Pay per token with no monthly minimums.
How to get a Perplexity API key
- Sign up at yepapi.com with Google or email — about 30 seconds.
- Open the dashboard and create an API key (it starts with yep_sk_).
- Call any Perplexity model with that key — the OpenAI-compatible /v1/ai/chat/completions endpoint for text models.
- Top up any amount; usage is billed per request.
Perplexity API FAQ
- How much does the Perplexity API cost?
- Perplexity models cost from $1.48 to $4.43 per 1M input tokens through YepAPI. The cheapest is Sonar ($1.48 in / $1.48 out per 1M). You pay per request with no monthly fee.
- How do I get a Perplexity API key?
- Sign up at yepapi.com (about 30 seconds), open the dashboard and create an API key. The one key works for all 2 Perplexity models and 283 models from other providers — no separate Perplexity account.
- What is the cheapest Perplexity model?
- Sonar — $1.48 in / $1.48 out per 1M.
- Which Perplexity model has the largest context window?
- Sonar Pro, with 200K tokens of context.
- Can I use the Perplexity API with the OpenAI SDK?
- Yes. Set the base URL to https://api.yepapi.com/v1/ai, use your YepAPI key, and pass the Perplexity model ID (for example "perplexity/sonar-pro").