Learn how to set up your group, generate API keys, and make your first API call.
To get started with the Perplexity API:
This step will not charge your credit card. It just stores payment information for later API usage.
Every API call requires a valid API key. To generate one:
The API key is a long-lived access token that can be used until it is manually refreshed or deleted.
API keys are sensitive credentials. Never expose them in client-side code or share them in public repositories.
If you run out of credits, your API keys will be blocked until you add to your credit balance. You can avoid this by configuring “Automatic Top Up,” which refreshes your balance whenever it drops below a certain threshold.