> For the complete documentation index, see [llms.txt](https://docs.mindmac.app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.mindmac.app/how-to.../add-api-key/create-perplexity-api-key.md).

# Create Perplexity API Key

If you don't have an account, create a new one at [https://www.perplexity.ai](https://www.perplexity.ai/).

### Step 1: Add billing information

Go to <https://www.perplexity.ai/settings/api>

<figure><img src="/files/I6NDvAc8rZptwy78G2rN" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/Jm8ofzvJzrZTygJGRZKK" alt=""><figcaption></figcaption></figure>

### Step 2: Buy credits

In the section **Available Credits**, click **Buy Credits** and enter the amount.

<figure><img src="/files/gupcZfYuu89WXWKAaOb7" alt=""><figcaption></figcaption></figure>

### Step 3: Generate API Key

In the **API Keys** sections, click **Generate**

<figure><img src="/files/RWUjjdFAmepM4qBg9DZV" alt=""><figcaption></figcaption></figure>

### Step 4: Copy the API key. Keep it secret.

<figure><img src="/files/PeYRAUhcReXLxFctjBHw" alt=""><figcaption></figcaption></figure>

Now go to [Add API key](/how-to.../add-api-key.md) and use copied API key to create new endpoint.
