Guides
Initial Setup
Learn how to set up your group, generate API keys, and make your first API call.
Setting Up Your Group
To get started with the Perplexity API:
- Navigate to your API Group section of your Account page.
- Fill out your group’s name, address, and tax details.
Setting up your billing
- Register your credit card to get started
This step will not charge your credit card. It just stores payment information for later API usage.
Generating an API Key
Every API call requires a valid API key. To generate one:
- Go to the API Keys tab in the API Portal.
- Click + Create Key to generate a new API key.
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.
Making Your First API Call
- Once you have your API key, you can make your first API call.
- Send the API key as a bearer token in the Authorization header with each request.
Example API Call
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.