Skip to main content
Perplexity’s online models have built-in internet access and return grounded answers with citations. Unlike standard LLMs, they can answer questions about current events.

Supported Models

Setup

1

Get an API key

Sign up at perplexity.ai and go to API settings.
2

Set the environment variable

3

Verify

Environment Variables

string
required
Your Perplexity API key. Format: pplx-...

Configuration Example

Model Aliases

Usage Examples

Notes

  • Status: Beta - Perplexity models have unique behavior (web search, citations) that differs from standard chat models.
  • API endpoint: https://api.perplexity.ai (OpenAI-compatible)
  • All Sonar Online models have real-time internet access built in.
  • Responses include source citations automatically.
  • Not recommended for tasks requiring deterministic, non-web outputs.