There are 2 ways to add your Perplexity credentials to your requests:

Add it from the UI at the organization level.

1

Go to the Credentials page

2

Add your Perplexity credentials.

Add it in code

  • Add customer_credentials parameter in your request body to use your own Perplexity credits.
{
  // Rest of the request body
  "customer_credentials": {
    "perplexity": {
      "api_key": "YOUR_PERPLEXITY_API_KEY",
    }
  }
}

Full request example