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


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.mindmac.app/how-to.../add-api-key/create-perplexity-api-key.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
