ToolKiti
Home/大语言模型/Perplexity API

Perplexity API

Perplexity 接口

Access Sonar search-grounded LLMs with real-time web search and citations.

调用 Sonar 搜索增强模型,实时联网搜索并附带引用。

Pricing

pay-as-you-go, subscription available

Authentication

  • API Key (Bearer Token)

Rate Limit

200 req/min

Typical Latency

<2s

Max Context

128K

Popularity

58/100

Endpoints

https://api.perplexity.ai/chat/completions

SDKs

PythoncurlOpenAI-compatible SDKs

Key Features

Code Examples

Search Chatbash
curl https://api.perplexity.ai/chat/completions \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer $PERPLEXITY_API_KEY" \
  -d '{
    "model": "sonar-pro",
    "messages": [{"role": "user", "content": "Latest AI news?"}]
  }'

Tags

llmsearchreal-time

Last updated: 2026-07-27

Compare Perplexity API with other APIs

Similar APIs

Something wrong or missing? Open an issue on GitHub →

Pricing Comparison

APIPricingAuthPopularity
OpenAI APIpay-as-you-go (per token)API Key (Bearer Token)
100
Anthropic Claude APIpay-as-you-go (per token)API Key (x-api-key header)
87
Google Gemini APIfree tier available, pay-as-you-goAPI Key
85
OpenAI Assistants APIpay-as-you-go (per token + per tool use)API Key (Bearer Token)
84

Get Started with Perplexity API

Click below to visit the official website and start using this API.

Visit Perplexity API

Discussion

Questions, feedback, or suggestions? Start a discussion.

Discuss on GitHub