Skip to main content

    How to use Perplexity AI models

    Perplexity Logo

    It's easy to set up YNO AI for using with Perplexity AI (https://www.perplexity.ai/) Here is a quick guide.

    Get a Perplexity AI account

    Go to https://www.perplexity.ai/ and sign up for an account. Then go to https://www.perplexity.ai/settings/api to get your API key.

    Perplexity API Settings

    Note that you may need to top-up your credit to use the API.

    Add a custom model in YNO AI

    Create a new Custom Model as follows:

    1. Click Add Custom Model
    2. Enter any name you want, for example "Perplexity"
    3. Enter the exact endpoint from the API document: https://api.perplexity.ai/chat/completions
    4. Enter the Model ID and context length, for example:
      • llama-3-sonar-small-32k-chat
      • llama-3-sonar-large-32k-chat
      • llama-3-sonar-large-32k-online

      Find more model ID here: https://docs.perplexity.ai/docs/model-cards

    5. Click "Add Custom Headers" and add the following header: Authorization: Bearer {{your API key}}
    6. Click "Test" to verify the information is correct
    7. Click Add Model.

    Logo URL (suggested): https://seeklogo.com/images/P/perplexity-ai-logo-13120A0AAE-seeklogo.com.png

    Here is what it looks like:

    Perplexity Custom Model Setup
    Perplexity Troubleshooting

    Use Perplexity AI model

    You can now select and use Perplexity model from the dropdown menu.

    Using Perplexity Model