Skip to contents

Creating an Perplexity Account

Creating an Perplexity API Key

  • Log into your Perplexity account and navigate to the API documentation.
  • Create an API key following their guidelines. Check Perplexity’s API documentation for more details.

Setting the Perplexity API Key in .Renviron

To modify the .Renviron file:

For a persistent setting, add the following line to .Renviron, replacing "<APIKEY>" with your actual Perplexity API key:

PERPLEXITY_API_KEY="<APIKEY>"

Save the file and restart your R session for the changes to take effect.

Caution: Ensure .Renviron is not exposed if using version control systems.