Perplexity API cost calculator
The calculator estimates Perplexity API usage costs in dollars. You can calculate Agent API separately, priced by tokens and Agent tools used, and Search API, priced by successful requests. Perplexity consumer and business subscriptions do not automatically fund API usage, and API billing is handled separately.
Perplexity API credits are a prepaid billing balance for API usage. There is no fixed ratio between a credit and a number of tokens or requests, so there is no fixed conversion formula such as "one credit = X tokens".
Perplexity API cost calculator
Prices last checked: September 24, 2026
The long-context threshold varies by model. The calculator uses the selected model's threshold and price.
- Estimated cost per request
- Estimated total cost
- Cost of input tokens not read from cache
- Cost of input tokens read from cache
- Output and reasoning token cost
- Web Search cost
- Fetch URL cost
- People Search cost
- Finance Search cost
- Sandbox cost
- Estimated cost for 100 requests
- Estimated cost for 1,000 requests
- Estimated cost for 10,000 requests
- Active processing type
- Active pricing tier
- Price per successful request
- Estimated total cost
- Successful requests to bill
- Total queries
- Cost for 100 successful requests
- Cost for 1,000 successful requests
- Cost for 10,000 successful requests
This calculation is an estimate only. Actual charges depend on usage recorded by Perplexity and may vary by tokens consumed, reasoning, cache reads, model pricing tier and Agent tools actually invoked. API prices may change.
How is Perplexity API priced?
Perplexity currently has two main API offerings with different pricing: Agent API and Search API.
Agent API is designed for agentic and generative tasks. Its cost combines the selected model's token price with separate charges for Agent tools invoked, such as Web Search, Fetch URL, People Search, Finance Search or Sandbox.
Search API is designed for raw search. It is billed by successful request count rather than input or output tokens.
The calculator separates the two modes to avoid mixing different billing methods.
What is the difference between Agent API and Search API?
Agent API runs a model and can use tools during a task. One Agent request may consume tokens and invoke search, Fetch or Sandbox tools multiple times. Two seemingly similar requests can therefore cost different amounts.
Search API billing is simpler. Each successful request costs a fixed price, with no additional LLM token charge.
If you need a model-generated answer with reasoning and tools, Agent API is the relevant option. If you need raw search results, Search API is more suitable.
How much does Search API cost?
Search API costs 5 dollars per 1,000 successful requests, or 0.005 dollars per successful request.
A successful request can include up to 5 related queries and still count as one billing unit. Query count affects rate limits, not pricing.
The number of results returned does not change the price. Text extracted from pages also does not incur a separate token charge.
Invalid requests, rate-limited requests and upstream provider failures are not billed. However, a successful response returning zero results is still billed.
How is Agent API cost calculated?
Agent API has no general fixed request fee.
The base cost depends on:
- The model's input tokens.
- The model's output tokens.
- Reasoning tokens included in output.
- Cache reads that actually occurred, if the model publishes a separate cached input price.
- The model's pricing tier, where long-context pricing differs.
- Processing type, if the model supports Default, Flex or Priority.
- Agent tools actually invoked.
Use real usage data when estimating costs for an existing system.
How much do Agent tools cost?
Perplexity bills separately for several built-in Agent API tools:
- Web Search: 0.0025 dollars per invocation.
- Fetch URL: 0.0005 dollars per invocation.
- People Search: 0.005 dollars per invocation.
- Finance Search: 0.005 dollars per invocation.
- Sandbox: 0.03 dollars per session, up to 20 minutes of active use.
Fetch URL can fetch between 1 and 10 URLs in one invocation. Billing is per tool invocation, not per URL.
MCP has no Perplexity invocation fee, but model tokens are still billed. An external MCP provider may charge its own fee.
Does content returned by Agent tools also cost tokens?
Yes, when Agent tool content is returned to the model's context.
Agent API input tokens may include not only the original prompt, but also instructions, history, files, images and content returned by tools.
A tool can therefore create two costs in the same request: the tool's own invocation price and additional tokens entering the model's context.
What are Perplexity API credits?
API credits are a prepaid billing balance for API usage.
They are neither a token unit nor a request unit. There is no fixed formula converting a credit to a particular number of tokens.
Actual costs continue to depend on the API product used: tokens and tools in Agent API, or successful requests in Search API.
Do Perplexity Pro or Max include API usage?
Not automatically.
Free, Pro, Education Pro, Max, Enterprise Pro and Enterprise Max subscriptions do not automatically fund regular API usage. API billing is separate from the subscription and limits of the consumer or enterprise product.
A paid Perplexity subscription therefore does not mean you have an available API balance.
How does reasoning affect costs?
Reasoning tokens count as output tokens for billing and use the selected Agent model's output token price.
Higher reasoning levels can cause the model to use more tokens, increasing total costs. There is no separate universal price multiplier simply because higher reasoning is selected.
Remember that the answer's visible length is not necessarily equal to the number of output tokens billed.
How does cache affect pricing?
Certain Agent API models publish a discounted cached input price.
Cache-read tokens are part of total input tokens. They are not an addition to total input.
For example, if a request includes 100,000 input tokens, of which 30,000 were read from cache, the calculation should price 70,000 tokens at the standard input rate and 30,000 at the model's cached input rate, if one exists.
There is currently no single public Perplexity rule for cache-write surcharges, TTL or minimum cache size across all models. Do not copy OpenAI or Anthropic cache rules here.
What is the difference between Default, Flex and Priority?
For current OpenAI-family models supporting these processing types:
- Default uses the model's standard token price.
- Flex uses 0.5 of the model's token price.
- Priority uses 2 times the model's token price.
- Fast may be used as another name for Priority.
The multiplier applies to model tokens, not Web Search, Fetch URL or other Agent tool prices.
Not every model family supports these processing types, so do not assume the options are available for every model.
What happens with long context?
For several models, the entire pricing tier changes when input tokens cross a particular threshold.
There is no universal threshold across Agent API.
For relevant OpenAI-family models, the lower pricing tier applies up to and including 272,000 input tokens, and a higher tier applies above 272,000.
For Gemini 3.1 Pro Preview, the threshold is 200,000 tokens: up to 200,000 at the lower price and above 200,000 at the higher price.
For current xAI models using this tiering, the lower price applies below 200,000 input tokens, and the higher tier begins at 200,000 and above.
The calculator should use the selected model's specific threshold.
What happened to the old Sonar API?
The old Sonar Chat Completions was still documented on September 24, 2026, but official support ends on September 27, 2026. It is therefore not presented as a standard option in the new calculator.
Do not confuse it with perplexity/sonar, a current model within Agent API. These are two different things with different billing systems.
Why can actual costs differ?
An API cost calculator can provide a good estimate, but it is not the invoice.
Agent API costs may vary due to actual token counts, reasoning, cache reads, transitions to a long-context tier and tools the Agent chooses to invoke during the task.
Even two requests with the same prompt may consume different token counts or make different numbers of tool calls.
Search API billing is simpler, but only successful requests are billed.
The authoritative charge is the one actually recorded by Perplexity.
What does the calculator exclude?
This version focuses on Agent API and Search API.
It is not designed to calculate:
- Router API, which is in private preview.
- Embeddings, a separate product with a different usage pattern.
- The old Sonar Chat Completions as a regular active product.
- External MCP provider pricing.
- External service charges outside Perplexity pricing.
There is currently no public discounted Batch API to present as a standard calculator option.
When were prices checked?
The prices and billing rules on this page were checked on September 24, 2026.
API prices, models, long-context tiers and promotions can change. Gemini 3.8 Flash, for example, has promotional pricing until December 31, 2026, so recheck its price after that date.