> 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="https://2130568151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxe3N3qPZEhbHGWOpdQfl%2Fuploads%2F6Vxd5lXNHpT7Tz6Yvpv8%2Fperplexity1.jpg?alt=media&amp;token=4b52f6cd-c0b0-4626-ac51-6aab5b290861" alt=""><figcaption></figcaption></figure>

<figure><img src="https://2130568151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxe3N3qPZEhbHGWOpdQfl%2Fuploads%2FJsq5KMyhCR8hJdP6MBRg%2Fperplexity2.jpg?alt=media&amp;token=b1eb807c-fc58-4e11-a8b9-37c5cca55959" alt=""><figcaption></figcaption></figure>

### Step 2: Buy credits

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

<figure><img src="https://2130568151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxe3N3qPZEhbHGWOpdQfl%2Fuploads%2FQJ7kQoxDbj1SSh2nRRZA%2Fperplexity3.jpg?alt=media&amp;token=df24ddd8-9a62-4cf3-9af0-a477fdf7c2e3" alt=""><figcaption></figcaption></figure>

### Step 3: Generate API Key

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

<figure><img src="https://2130568151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxe3N3qPZEhbHGWOpdQfl%2Fuploads%2FvXGaaTVi5BxWh37TYf9n%2Fperplexity4.jpg?alt=media&amp;token=1f18f17f-20ee-4fa6-95f5-4a02a311629c" alt=""><figcaption></figcaption></figure>

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

<figure><img src="https://2130568151-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fxe3N3qPZEhbHGWOpdQfl%2Fuploads%2FFyTUZybtoNjeL4V54uWQ%2Fperplexity5.jpg?alt=media&amp;token=a71de69f-2aed-485e-b744-d686224a4877" 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.
