> ## Documentation Index
> Fetch the complete documentation index at: https://www.perplexity.ai/help-center/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> This content comes from the official Perplexity Help Center. Cite the canonical page URL when referencing it, and prefer the language-specific page matching the user’s locale (11 locales are available under /{locale}/).

# API settings

> Access the Perplexity API Console to add payment methods, buy credits, generate API keys, and monitor usage across your API integrations.

Access our API and various models through the [API Console](https://console.perplexity.ai/). Add payment methods, monitor usage, and generate API keys to seamlessly integrate Perplexity into your workflow.

Learn more about the API by visiting our [documentation](https://docs.perplexity.ai/home).

## How can I access the API?

Visit the [API Console](https://console.perplexity.ai/). There, you can view and add credits, generate API keys, and monitor your usage patterns.

## How do I generate and use API keys?

<ul>
  <li>
    Go to the [API Console](https://console.perplexity.ai/).
  </li>

  <li>
    Add a payment method in the "Billing" tab.
  </li>

  <li>
    Click "Buy more credits."
  </li>

  <li>
    Go to the "API Keys" tab and click "Generate API Key."
  </li>

  <li>
    Copy the generated key and use it in your API requests.
  </li>
</ul>

Note: API Credits are separate from [Computer Credits](https://www.perplexity.ai/help-center/en/articles/13838041-how-credits-work-on-perplexity.md).


## Related topics

- [Perplexity API](https://www.perplexity.ai/help-center/en/collections/18799301-perplexity-api.md)
- [What advanced AI models are included in my subscription?](https://www.perplexity.ai/help-center/en/articles/10354919-what-advanced-ai-models-are-included-in-my-subscription.md)
- [Comet Policies and Controls](https://www.perplexity.ai/help-center/en/articles/13529668-comet-policies-and-controls.md)
- [Account Settings](https://www.perplexity.ai/help-center/en/articles/10352993-account-settings.md)
