> ## 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.

<p>Access our API and various models through the <a href="https://console.perplexity.ai/" rel="nofollow noopener noreferrer" target="_blank">API Console</a>. Add payment methods, monitor usage, and generate API keys to seamlessly integrate Perplexity into your workflow.</p>

<p>Learn more about the API by visiting our <a href="https://docs.perplexity.ai/home" rel="nofollow noopener noreferrer" target="_blank">documentation</a>.</p>

<h2 id="h_77f2e54447">How can I access the API?</h2>

<p>Visit the <a href="https://console.perplexity.ai/" rel="nofollow noopener noreferrer" target="_blank">API Console</a>. There, you can view and add credits, generate API keys, and monitor your usage patterns.</p>

<h2 id="h_944fe9569b">How do I generate and use API keys?</h2>

<ul>
  <li>
    <p>Go to the <a href="https://console.perplexity.ai/" rel="nofollow noopener noreferrer" target="_blank">API Console</a>.</p>
  </li>

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

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

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

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

<p>Note: API Credits are separate from <a href="/help-center/help-center/en/articles/13838041-how-credits-work-on-perplexity" rel="nofollow">Computer Credits</a>.</p>
