Perplexity AI Integration
Connect Helicone with Perplexity AI, a platform that provides powerful language models including Sonar and Sonar Pro for various AI applications.
You can follow their documentation here: https://docs.perplexity.ai/
Gateway Integration
Create a Perplexity AI account
Log into Perplexity AI or create an account. Once you have an account, you can generate an API key from your dashboard.
Set HELICONE_API_KEY and PERPLEXITY_API_KEY as environment variable
Modify the base URL and add Auth headers
Replace the following Perplexity AI URL with the Helicone Gateway URL:
https://api.perplexity.ai/chat/completions
-> https://perplexity.helicone.ai/chat/completions
and then add the following authentication headers:
Now you can access all the models on Perplexity AI with a simple fetch call:
Example
For more information on how to use headers, see Helicone Headers docs. And for more information on how to use Perplexity AI, see Perplexity AI Docs.
Was this page helpful?