Skip to main content
Stateless Proxy · Bring Your Own Key

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.


Onboarding

How to Get a Perplexity API Key

Follow these four steps using the official Perplexity console, then validate your key on /keys.

  1. Sign in to your Perplexity account and open Settings.
  2. Navigate to the API tab and configure billing credits if needed.
  3. Generate a new Sonar API key.
  4. Paste the key into the Keys page to test Perplexity models.

Transport & Security

How Bring Your Own Key Works With Perplexity

Perplexity Sonar API calls route through the stateless /api/proxy/perplexity endpoint.

Transport Path:Stateless Proxy (/api/proxy/perplexity)

Official API Base: https://api.perplexity.ai

Official documentation: https://docs.perplexity.ai/api-reference/chat-completions-post


Confirmed Availability

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.

Related Tools and Key Management