Prerequisites
Before setting up Perplexity models, you need:- A Perplexity account at perplexity.ai
- An API key from the Perplexity API settings
- Admin access to your Langdock workspace
Setup Steps
- Go to the model settings and click on Add Model
-
Configure the Display Settings:
- Provider: Perplexity
- Model name: The model you want to add (e.g., Sonar Pro, Sonar)
- Hosting provider: Perplexity
- Region: US (Perplexity’s API is hosted in the US)
- Image analysis: Disabled (Perplexity models do not support vision)
-
Configure the Model Configuration:
- SDK: Select Perplexity
- Base URL: Leave empty to use the default (
https://api.perplexity.ai) or specify a custom endpoint - Model ID: Use the official model identifier (see Model IDs below)
- API key: Paste your Perplexity API key
- Context Size: Set according to the model (check Perplexity’s documentation for current values)
- Click Save and test the model by sending a prompt before making it visible to all users
Model IDs
Perplexity’s Sonar model family includes search-augmented and reasoning variants:| Model ID | Type |
|---|---|
sonar-pro | Advanced search-augmented generation — detailed responses with citations |
sonar | Fast search-augmented responses — good for general-purpose queries |
sonar-reasoning-pro | Deep analysis with search — multi-step reasoning with citations |
sonar-reasoning | Reasoning with search augmentation |
Check Perplexity’s model documentation for the full list of available models, their specifications, and context sizes.
Configuration Notes
- Perplexity models include built-in web search capabilities, so they always have access to current information
- The API endpoint
https://api.perplexity.aiis automatically used when no custom Base URL is provided - Sonar Pro models provide more detailed responses with better source citations
- Reasoning variants are best for complex analytical tasks that benefit from step-by-step thinking
Troubleshooting
Model not responding:- Verify your API key is valid and has not expired
- Check that you have sufficient credits in your Perplexity account
- Ensure the model ID matches exactly (case-sensitive)
- Perplexity models include citations automatically when web search is used
- If citations are missing, the model may have answered from its base knowledge
- Perplexity models perform web searches, which adds latency
- Sonar (non-Pro) variants are faster than Pro versions
- For time-sensitive tasks without search needs, consider using a different model