Perplexity does not have their own SDK, but they have compatibility with the OpenAI SDK. You can use the OpenAI SDK to make a Perplexity call through AI Gateway as follows:
Was this helpful?
What did you like?
What went wrong?
Thank you for helping improve Cloudflare's documentation!