Short answer. With the Perplexity API, limits depend on how much you have purchased over the account's lifetime, not on your balance. The Agent API allows 1 request per second at tier 0 (0 dollars purchased), 3 at tier 1 (50+), 8 at tier 2 (250+), 17 at tier 3 (500+) and 33 at tiers 4 (1,000+) and 5 (5,000+); the Search API instead has 50 units per second for everyone. The limit is shared across all models and all keys of the organization, over a rolling one-second window. On costs, tools have public prices (0.0025 dollars per standard search) while the models' token cost is not on the pricing page I read: it must be measured. This article shows how to survive 429s and how to put a spending ceiling of your own.
Verified on 30 October 2026
From the "Rate limits & usage tiers" page. Tiers are based on cumulative purchases, not on the current balance, and never downgrade. The same page says the Agent API QPS limit is shared across all models and all keys in the organization. Token limits (TPM and TPH) exist but the values were not in the text I could read: I do not report them.
The tier table
| Tier | Credit purchased (cumulative) | Agent API QPS |
|---|---|---|
| 0 | $0 | 1 |
| 1 | $50 or more | 3 |
| 2 | $250 or more | 8 |
| 3 | $500 or more | 17 |
| 4 | $1,000 or more | 33 |
| 5 | $5,000 or more | 33 |
For the Search API (POST /search) the limit is 50 units per second with a burst of 50, for all tiers. One query is one unit; billing counts requests, limits count queries: a five-query request is one billed request and five limit units.
The three kinds of 429 and what to do
The documentation distinguishes Agent API errors by error.type:
request_rate_limit_exceeded: you exceeded the QPS. WaitRetry-After(normally one second) and retry.token_rate_limit_exceeded: you exceeded the per-minute or per-hour token limit (the message says which window). Wait at leastRetry-Afterand retry with exponential backoff and jitter.overloaded: not your limit but the upstream model's capacity. Retry with backoff, or use themodelsfallback list.
Two warnings follow: requests rejected for token limits still count toward QPS, so too many parallel retries make the problem worse; and polling background runs also counts toward QPS, so do it with backoff, or with resumable streaming. For the Orchestrator API (private preview) the documentation says requests rejected with a 429 are not billed.
import random, time
def call_with_backoff(fn, attempts=6, base=1.0, cap=30.0):
"""fn() performs the call. Adapt the check to your SDK's errors."""
for n in range(attempts):
try:
return fn()
except Exception as e: # narrow to the SDK type
status = getattr(e, "status_code", None)
if status != 429 and status not in (500, 502, 503, 529):
raise
headers = getattr(getattr(e, "response", None), "headers", {}) or {}
wait = float(headers.get("Retry-After", 0))
exponential = min(cap, base * (2 ** n))
time.sleep(max(wait, random.uniform(0, exponential)))
raise RuntimeError("Too many attempts: request abandoned")
Jitter (a random wait between zero and the maximum) prevents a hundred clients rejected at the same instant from all retrying at the same instant. Capping the attempts prevents the opposite: a loop that never ends.
A spending ceiling of your own, in twenty lines
The vendor bills what you consume. If you want a bug in your code to become an exception instead of an invoice, the ceiling must live in your service. A daily counter on Redis is enough:
import datetime as dt
import redis
r = redis.Redis()
DAILY_REQUEST_CAP = 2000 # your choice, based on budget
class CapExceeded(Exception):
pass
def count_and_check(user_key: str) -> int:
today = dt.date.today().isoformat()
key = f"perplexity:{today}:{user_key}"
n = r.incr(key)
if n == 1:
r.expire(key, 60 * 60 * 26) # expires on its own
if n > DAILY_REQUEST_CAP:
raise CapExceeded(f"Daily cap reached ({n}).")
return n
The counter counts requests, not dollars: for dollars you need a price per request, and for the Agent API the token cost is not known up front. So also record, after the fact, tool_calls_details and the tokens from the response and compare with the invoice: after two weeks you have the real median cost per level, the only number on which to base a quote.
How to estimate a cost without knowing everything
- Known part (tools): requests × maximum steps × tool price. At
low, 5 steps, standard search at 0.0025: at most 0.0125 dollars per request if every step were a search (afetch_urlcosts 0.0005, so it is a prudent ceiling). - Unknown part (tokens): measure it on a real sample of 50-100 requests, per level.
- Add them and a margin; compare with the invoice after two weeks and correct.
If your case allows, the flex (0.5 times the token rate) and priority (2 times) service tiers exist only for models that list them: check on the model you use before counting on them.
Use cases: where limits and costs change the design
Hypothetical scenarios; declared assumptions, documented prices and limits.
School: twenty-five students, one key, 1 request per second
Who: a computer-science teacher who lets a class of 25 students use a small cited-search tool, with a key of their own at tier 0. What they did: show results from the front of the room. What changes: when everyone presses "search" at the same instant, tier 0 allows 1 request per second: twenty-four will receive request_rate_limit_exceeded. Remedy: a server-side queue that releases at most one request per second (twenty-five seconds to drain) and shows "you are queued"; or move to tier 1 (50 dollars purchased, 3 QPS), a budget decision for the school. Maximum tool cost for 100 requests at low: 100 × 0.0125 = 1.25 dollars, assuming every step is a search. What goes wrong: a student types personal data or a whole assignment into the box; you need the usage rule and the filter from article 1, and the teacher must say clearly that sources are to be opened and read.
Small business, retail: an online shop's product assistant
Who: a shop with 2,000 questions a day on sale days (assumption), a peak of 10 requests in the same second. What matters: cost and not breaking the experience. What changes: with tier 2 (8 QPS, 250 dollars purchased) the 10-request peak produces a few 429s; with a queue and jitter it becomes a one-second wait. The cost of fast search alone is 2,000 × 0.001 = 2 dollars a day. What goes wrong: a long wait makes shoppers abandon the cart, and the daily cap triggers on the worst day: decide in advance what you show when it triggers (a static answer with the catalog, not an error).
Large enterprise, manufacturing: the nightly check of 5,000 suppliers
Who: the procurement office of a manufacturer, with a nightly job that for each of 5,000 suppliers looks for recent reports (assumption). What changes: at tier 4 (33 QPS) QPS is not the bottleneck; tokens per minute and polling are. Tool ceiling at low: 5,000 × 0.0125 = 62.50 dollars a night in the worst case, 1,875 dollars a month of search alone with 30 nights: a figure to decide, not to discover. Better fast (5,000 × 0.001 = 5 dollars a night) as a first sieve, and low only on the suppliers the first pass flags. What goes wrong: a false flag that blocks an order or a missed one that lets a problem through. The system produces a list for a buyer to read, with source and date; silence is not the absence of risk.
← Article 5: Perplexity MCP Article 7: PerplexityBot and robots.txt →
Frequently asked questions
What is the Perplexity Agent API request limit?
It depends on the tier, based on cumulative purchases: 1 QPS at tier 0, 3 at tier 1, 8 at tier 2, 17 at tier 3, 33 at tiers 4 and 5. The limit is shared by all models and keys of the organization.
How do I handle a 429 error?
Read error.type: for QPS wait Retry-After (normally one second), for tokens use exponential backoff with jitter, for overloaded retry with backoff or use the models fallback list. Limit parallel retries.
Does polling background runs count toward the limits?
Yes, per the documentation it counts toward QPS. Poll with backoff or use resumable streaming.
How do I cap spending?
In your own service, with a daily counter of requests per user or key that raises an error when exceeded, and by recording tools and tokens after the fact to compare with the invoice.
Sources and further reading
- Perplexity, Rate limits & usage tiers (read on 30 October 2026)
- Perplexity, Pricing (30 October 2026)
- Perplexity, Agent API: effort levels (30 October 2026)
Commenti
Caricamento commenti...
Sign in to comment