Today › AI API prices › Perplexity
sonar-medium-online API pricing (Perplexity)
Input / 1M tokens$0
Output / 1M tokens$1.80
Context window12Kmax output 12K
Rank within Perplexity8 / 20
Among all modelscheaper than 62%of 725 models
Cost for typical workloads
| Workload | This model | Median of all models |
|---|---|---|
| 10,000 chats (2,000 in / 500 out tokens) | $9.00 | $20.50 |
| 100 long summaries (50,000 in / 1,000 out) | $0.18 | $2.97 |
| 1,000 articles (500 in / 2,000 out) | $3.60 | $2.50 |
Similarly priced models from other providers
| Model | Provider | Input | Output | Context |
|---|---|---|---|---|
| gpt-5.6-luna | OpenAI | $0.2 | $1.20 | 922K |
| gpt-oss-120b | Cerebras | $0.35 | $0.75 | 131K |
| codestral-2508 | Mistral AI | $0.3 | $0.9 | 128K |
| codestral-latest | Mistral AI | $0.3 | $0.9 | 128K |
| mistral-code-fim-latest | Mistral AI | $0.3 | $0.9 | 128K |
| mistral-code-latest | Mistral AI | $0.3 | $0.9 | 128K |
Price history
| Date | Input | Output |
|---|---|---|
| 2026-10-03 | $0 | $1.80 |
Only dates with a change are listed (17 snapshots from 2026-10-03 to 2026-11-10).
- pplx-7b-chat
- sonar-small-chat
- llama-3.1-8b-instruct
- codellama-34b-instruct
- pplx-70b-online
- sonar-medium-chat
Prices come from the open-source LiteLLM price table (MIT), fetched daily, and may differ from the official pricing pages; always check the provider before you buy. US dollars.
About this page
sonar-medium-online on Perplexity costs $0 per million input tokens and $1.80 per million output tokens; it ranks 8 of 20 Perplexity models by price, with a 12K context window.