# How to Use Perplexity API

> To use the Perplexity API, sign in on the website, navigate to your account, and select View All. Go to the API section, enter your details, and save. Add a payment method to purchase API credits, then generate your API key by clicking Create key in the API Keys section.

Canonical: https://livedemo.ai/tutorials/how-to-use-perplexity-api/
Updated: 2026-10-05
Interactive demo: https://story-api.livedemo.ai/workspaces/62255d3d3304f17b8f5e2d03/stories/692a5221ab56e05a00fff332/preview?step=1

## Steps

1. Visit the Perplexity website and click 'Sign In'.
2. Once logged in, navigate to your account.
3. Select 'View All'.
4. Navigate to API in your account.
5. Enter the details and click 'Save'.
6. Add a payment method and click 'Done' to purchase API credits .
7. Generate an API key by clicking '+ Create key' in the API Keys section.
