Perplexity API Key Tester
Test any AI or API key in your browser — instantly see if it's valid, and why it isn't. Nothing is stored.
Test your Perplexity (Sonar) API key with the chat completions endpoint
Data verified 2026-07-13
Key format & how to get one
Prefix: pplx- Example: pplx-abc123... Perplexity keys start with pplx-. 1. Sign in at https://www.perplexity.ai 2. Open Settings > API and generate a key 3. Copy the key (starts with pplx-) 4. Add credit to use the Sonar API
How to test
- Copy your key from Perplexity Settings > API (it starts with pplx-).
- Paste it into the tester above and click Test Key.
- Green means valid; red shows the exact error and fix.
Common errors
| Cause | Fix |
|---|---|
| Invalid or revoked key. | Create a new key in Perplexity Settings > API and paste it here. |
| No API credit on the account. | Add credit in Perplexity Settings > API, then retry. |
| Rate limit exceeded. | Wait a few seconds and retry. |
Related tools
Building with AI APIs? Elegant Atomics turns AI capability into B2B SaaS growth. Work with us →