Perplexity Bring Your Own Key Guide
Connect your own Perplexity API key to run AI models in the Playground and Compare tool with zero accounts. Follow the official key setup steps below, review how the stateless proxy operate, and verify your credentials on the Keys page.
How to Get a Perplexity API Key
Follow these four steps using the official Perplexity console, then validate your key on /keys.
- Sign in to your Perplexity account and open Settings.
- Navigate to the API tab and configure billing credits if needed.
- Generate a new Sonar API key.
- Paste the key into the Keys page to test Perplexity models.
How Bring Your Own Key Works With Perplexity
Perplexity Sonar API calls route through the stateless /api/proxy/perplexity endpoint.
Official API Base: https://api.perplexity.ai
Official documentation: https://docs.perplexity.ai/api-reference/chat-completions-post
Perplexity Supported Models
Models from our directory confirmed on Perplexity's official model list, loaded from data/model-availability.json with provider-specific IDs, pricing, and requirements.
Consult Perplexity's Official Live Model List
Enter any official model ID from Perplexity's documentation directly in the AI Text Generator or Compare tool using Custom Model ID mode (for example sonar).
Frequently Asked Questions
Does Perplexity Call Directly From the Browser or Through a Proxy?
Perplexity Sonar API calls route through the stateless /api/proxy/perplexity endpoint.
Are My Perplexity Credentials Stored on Your Server?
No. Your Perplexity key stays in browser local storage only and is never logged, cached, or stored server-side.