DeepSeek API Rate Limits: Current Limits and 429 Fixes

Last reviewed: November 21, 2026.

DeepSeek API rate limits currently include 2,500 concurrent requests for deepseek-flash and 500 for deepseek-v4-pro, according to the official model table. These figures describe simultaneous requests, not a fixed number of calls per minute.

If you are receiving a 429 Rate Limit Reached error, identify the endpoint that rejected the request, reduce the pressure on that service, and retry within a limited time budget. This guide covers the published limits, a practical troubleshooting sequence, and Python code for controlling concurrent model requests.

What are the current DeepSeek API rate limits?

For model requests sent directly to DeepSeek’s hosted API, the published concurrency ceilings are:

Model IDConcurrent requestsScope
deepseek-flash2,500Per account
deepseek-v4-pro500Per account

A submitted request occupies a slot until completion. Limits are account-wide, across API keys.

Treat these as service limits when planning capacity. Choose a lower application limit initially, then increase it based on measured latency, error rates, and the capacity available to your account. A published ceiling does not establish how much traffic your application can process comfortably.

Why some older pages disagree: a DeepSeek announcement from August 2024 described a service without concurrency or rate restrictions. That historical announcement predates the limits now listed in the active service documentation. Use the current reference when configuring a new integration.

How to fix a DeepSeek 429 error

Start with the failing request rather than assuming every “rate limit” message has the same cause. The following sequence separates account pressure, endpoint-specific limits, and problems introduced by your application.

  1. Confirm the destination. Record the API host, endpoint, and model. A request through OpenRouter, a cloud platform, or your own gateway can be restricted by that route’s controls.
  2. Identify the rejecting service. Check whether the failure came from model generation, Search, Fetch, OCR, or speech processing. Match it to the relevant limit below.
  3. Reduce new work. Lower active requests, pause optional batch jobs, and check whether scheduled tasks or agent workflows are creating bursts.
  4. Count traffic across your deployment. Include every worker, container, and application using the account. A low count in one process does not describe the whole workload.
  5. Retry selectively. Use delayed retries for eligible transient failures, with a maximum attempt count and an overall deadline. Keep authentication, balance, and invalid-request errors on separate recovery paths.

For an intermediary, use its own documentation. For example, OpenRouter documents its own limits and upstream-provider errors. Do not apply the direct DeepSeek numbers to every service that happens to offer a DeepSeek model.

Distinguish a rate limit from another failure

These meanings come from DeepSeek’s error reference. The response column below is a practical application policy.

ResultMeaningRecommended response
HTTP 429Rate, concurrency, or QPS restrictionReduce demand on the relevant service; retry with bounded backoff.
HTTP 401Authentication failureCheck the key and destination before trying again.
HTTP 402Insufficient balanceResolve the account balance; repeated requests will not fix it.
HTTP 400 or 422Invalid format or parametersCorrect the request using the returned error details.
HTTP 500 or 503Server failure or overloadAllow a small number of delayed retries and check service status.
HTTP 413Payload too largeReduce the file or request size according to the endpoint’s guide.
HTTP 408 or 504Upload or processing timeout in the applicable serviceCheck that service’s timeout rules and the request size.

For widespread failures, check the official DeepSeek status page. A service incident and a traffic spike require different responses: sending additional retries during an outage may only increase the backlog.

Also inspect the response body. An HTTP success does not guarantee a usable result: the Chat Completions schema can report finish_reason="length" when generation reaches an applicable limit. That is an output-completion issue, not an HTTP 429.

Concurrency, RPM, TPM, and QPS explained

The current model reference publishes concurrency ceilings without a universal RPM or TPM table. These measurements answer different questions:

MeasurementWhat it measuresWhat you would control
ConcurrencyRequests that are active at the same timeHow many requests can remain in flight
RPMRequests per minuteHow quickly requests start over a minute-based allowance
QPS / requests per secondRequests started per secondRequest-start pacing for services such as Search and Fetch
TPMTokens processed per minuteToken throughput where a provider publishes this allowance

A concurrency controller and a request-rate controller solve different problems. Five workers making very short requests can start many requests per second. Conversely, a small number of new requests per second can accumulate substantial concurrency when responses take a long time.

Context length and maximum output size are separate, per-request constraints in the model specifications. An account balance is a spending resource. Neither measurement can be substituted for a concurrent-request budget.

Why slower responses can trigger more 429 errors

For a stable workload, a useful planning relationship is average active requests ≈ request arrival rate × average request duration. This applies Little’s Law to the period between sending a request and completing its response.

For example, five new requests per second with a 20-second average duration imply roughly 100 active requests. If duration rises to 40 seconds while arrivals stay unchanged, the estimate rises to 200. Your request-start rate stayed constant, but twice as many calls are now occupying capacity.

The following hypothetical calculation uses an application-selected cap of 20 active requests. It illustrates the arithmetic; it is not a DeepSeek benchmark or an official RPM allowance.

Average full request durationApproximate throughput at 20 active requestsEquivalent completions per minute
2 seconds10 requests per second600
10 seconds2 requests per second120
40 seconds0.5 requests per second30

The calculation assumes steady traffic and continuously occupied capacity. Real traffic has bursts and variable durations. Track both the average and slower percentiles, leave headroom, and measure full completion time instead of using only time to the first token.

If errors appear after a prompt change, investigate whether the application now requests longer answers, sends larger histories, or runs more agent steps. Those changes can increase occupied time or the number of model calls per user task even when user traffic is unchanged.

Search, Fetch, OCR, and speech have separate limits

The standalone tool APIs use their own documented measurements. Identify the operation before choosing a limiter:

ServicePublished account limitOfficial reference
Search API100 requests per secondSearch & Fetch
Fetch API25 requests per second, plus a per-domain restrictionSearch & Fetch
OCR API15 recognitions in progressOCR
Text to Speech50 requests in progressText to Speech
Speech to Text50 requests in progressSpeech to Text

Search and Fetch have independent account quotas, separate from model concurrency. The Fetch guide also describes a per-domain QPS restriction without publishing its numeric ceiling. A Fetch 429 can therefore require lower traffic to one target domain, even when your total request rate looks modest.

These Search and Fetch figures describe direct calls to the standalone endpoints. For model-driven web tools, follow the corresponding integration documentation rather than assuming every internal tool action consumes the standalone allowance in the same way.

OCR adds an important cancellation detail: an unfinished recognition continues to count after the client disconnects. The OCR guide says disconnecting does not cancel processing. Repeatedly resubmitting a document after a local timeout can create overlapping work.

Build a retry policy that reduces overload

Retries should give a transient problem time to clear while keeping the total work bounded. A useful starting policy has four parts: a limited number of attempts, increasing delays, randomness between clients, and a deadline for the entire logical request.

Use exponential backoff with jitter

Exponential backoff widens the delay after repeated failures. Jitter chooses a random delay within that window so clients do not all retry together. These are established reliability techniques discussed in Amazon’s engineering guidance on timeouts and retries.

For example, an application might allow four attempts total and use progressively wider random waits between them. Those settings are design choices. Tune them to the user’s acceptable wait, your traffic pattern, and the cost of another attempt. If the service remains overloaded, stop admitting optional work instead of increasing the retry count.

Honor Retry-After when it is supplied

The HTTP specification allows a 429 response to include Retry-After. Its value can be a delay in seconds or an HTTP date, as defined in RFC 9110. Treat a valid value as the minimum wait before another attempt.

Do not assume every DeepSeek response supplies that header, a reset timestamp, or a remaining-request counter. Inspect the actual response. If the requested delay exceeds your remaining application deadline, stop or defer the work; shortening the server’s delay would retry too early.

Choose one layer to own retries

The OpenAI Python SDK automatically retries eligible failures twice by default. Adding an outer retry loop without accounting for that behavior can multiply network attempts. In the example below, max_retries=0 gives the application sole control over retries.

A timeout also leaves uncertainty about what happened remotely. Do not automatically replay an entire agent workflow that may already have changed a database or called an external service. Track completed operations and handle ambiguous outcomes at the application level.

Python example: limit concurrency and retry 429

This example requires Python 3.11 or later because it uses asyncio.timeout(). In an isolated project environment, install the client:

python -m pip install --upgrade openai

Set your DeepSeek API key in the terminal that will run the script. Replace the placeholder locally and keep the real key out of source control.

macOS or Linux:

export DEEPSEEK_API_KEY="replace-with-your-deepseek-key"

Windows PowerShell:

$env:DEEPSEEK_API_KEY = "replace-with-your-deepseek-key"

The following values are application settings for the demonstration: two local concurrent requests, four total attempts, and a 120-second deadline for each logical request. They are not additional DeepSeek quotas. Save the code as deepseek_rate_limits.py:

import asyncio
import math
import os
import random
from datetime import datetime, timezone
from email.utils import parsedate_to_datetime

from openai import APIStatusError, AsyncOpenAI

# Local application settings for this process.
CONCURRENCY = 2
MAX_ATTEMPTS = 4
TOTAL_TIMEOUT = 120.0


def retry_after_seconds(value):
    if not value:
        return 0.0
    try:
        seconds = float(value)
    except ValueError:
        try:
            date = parsedate_to_datetime(value)
            if date.tzinfo is None:
                date = date.replace(tzinfo=timezone.utc)
            seconds = (date - datetime.now(timezone.utc)).total_seconds()
        except (TypeError, ValueError, OverflowError):
            return 0.0
    return max(0.0, seconds) if math.isfinite(seconds) else 0.0


async def request_text(client, slots, prompt):
    async with asyncio.timeout(TOTAL_TIMEOUT):
        for attempt in range(MAX_ATTEMPTS):
            try:
                async with slots:
                    response = await client.chat.completions.create(
                        model="deepseek-flash",
                        messages=[{"role": "user", "content": prompt}],
                        max_tokens=500,
                        stream=False,
                        extra_body={"thinking": {"type": "disabled"}},
                    )
            except APIStatusError as exc:
                if exc.status_code not in {429, 500, 503}:
                    raise
                if attempt + 1 == MAX_ATTEMPTS:
                    raise
                floor = retry_after_seconds(exc.response.headers.get("retry-after"))
                jitter = random.uniform(0, min(30.0, 2.0 ** attempt))
                await asyncio.sleep(floor + jitter)
                continue

            choice = response.choices[0]
            text = (choice.message.content or "").strip()
            if choice.finish_reason != "stop" or not text:
                raise RuntimeError(f"Incomplete answer: {choice.finish_reason}")
            return text


async def main():
    slots = asyncio.Semaphore(CONCURRENCY)
    prompts = [
        "Explain a Python list in one sentence.",
        "Explain a Python dictionary in one sentence.",
        "Explain a Python tuple in one sentence.",
    ]
    async with AsyncOpenAI(
        api_key=os.environ["DEEPSEEK_API_KEY"],
        base_url="https://api.deepseek.com",
        timeout=45.0,
        max_retries=0,
    ) as client:
        results = await asyncio.gather(
            *(request_text(client, slots, prompt) for prompt in prompts),
            return_exceptions=True,
        )
    for result in results:
        print(type(result).__name__ if isinstance(result, Exception) else result)


if __name__ == "__main__":
    asyncio.run(main())

Run it with:

python deepseek_rate_limits.py

The script sends three short prompts and prints each completed answer or the exception type. Live requests use your DeepSeek API balance. The explicit thinking toggle keeps this short-answer demonstration in non-thinking mode; see DeepSeek’s thinking-mode guide.

What the example controls

  • Active requests: the shared semaphore limits requests in this Python process. It releases its permit before a retry delay.
  • Retries: only HTTP 429, 500, and 503 are retried, with at most four attempts including the initial request.
  • Server hints: a valid Retry-After becomes a minimum delay, with jitter added afterward.
  • Elapsed time: the overall deadline includes semaphore waiting, network calls, and backoff. It is separate from the SDK’s 45-second transport timeout.
  • Output: a blank or incomplete answer raises an error instead of being accepted as finished.

Transport failures are left for the caller to handle because their remote outcome can be uncertain. The outer timeout also does not establish that server-side computation stopped when the local task was canceled.

For a large or continuous workload, use a bounded work queue and a fixed worker pool. Constructing a task for every incoming item can exhaust memory even when a semaphore limits active API calls. Python’s queue documentation explains how a positive maxsize makes producers wait when the queue is full.

This example uses a small fixed batch. Multiple processes need a shared admission policy, and Search or Fetch need request-start pacing in addition to any concurrency control. During sustained 429 bursts, add a shared cooldown so new work does not continually replace delayed retries.

Streaming, keep-alives, and timeouts

For streaming, keep your local concurrency permit until the response has finished or the stream has been closed. Releasing it after the first token allows additional requests to start while earlier streams are still active. Close streams during error handling and cancellation so local resources are cleaned up.

Pending responses may carry blank lines or SSE : keep-alive comments. DeepSeek closes the connection when inference has not started after 10 minutes; see the keep-alive documentation.

A keep-alive is connection maintenance, not generated answer text. It also does not guarantee that your reverse proxy, HTTP client, or application deadline will permit the same wait. Set those controls deliberately for interactive requests and background jobs.

If a stream fails after displaying text, keep the partial result marked as incomplete. The OpenAI SDK documentation explains that stream consumption is not automatically retried, since replaying it could duplicate output already delivered to the application.

How user_id affects account limits

Under DeepSeek’s isolation rules, regular accounts combine user_id traffic. Expanded accounts enforce an overall ceiling plus per-user limits of 2,500 Flash or 500 Pro requests; an empty ID is one bucket. In the OpenAI SDK, send an opaque, nonpersonal user_id through extra_body, alongside any other provider fields.

At the application level, give users fair access to the capacity you have. A queue per tenant, or a scheduler with per-tenant budgets, can prevent one large batch from monopolizing the service. Creating arbitrary user IDs is not a substitute for an approved account capacity increase.

How to request higher DeepSeek API limits

Use the capacity-request form linked from the official reference. DeepSeek assesses business needs and charges no additional expansion fee.

Before applying, prepare evidence that explains the capacity you need. The following is a suggested supporting package, not a list of mandatory form fields:

  • The model or endpoint you use and the quota you are requesting.
  • Typical and peak concurrent requests across the whole deployment.
  • Request arrival rate, full response durations, and representative input/output sizes.
  • Recent 429 frequency and the retry or queue controls already in place.
  • Expected growth, launch dates, and whether the work is interactive or batch-oriented.

Ask for a measured requirement with room for expected bursts. A request for “unlimited traffic” is less useful than explaining how your workload behaves and what service level you need.

Continue controlling load while the request is reviewed. Do not assume a particular approval timeline or a quota increase before it is confirmed. Capacity expansion also does not make inference free: usage remains subject to DeepSeek’s API billing.

Monitor the whole application as traffic grows

Treat capacity as a deployment-wide budget. Ten containers with a local cap of 20 requests each can collectively admit 200 active requests. Autoscaling the application can therefore increase upstream pressure even when no individual worker changes its settings.

Coordinate through a shared limiter, centralized queue, or explicitly divided worker budgets. Reserve capacity for interactive traffic if background processing would otherwise consume it. Keep separate measurements for each model and service so one endpoint’s failures do not hide another’s behavior.

MetricWhat it helps diagnose
Active requests by model and endpointHow much work is currently occupying capacity
Queue depth and oldest-job ageWhether admission exceeds processing capacity
Full request duration, including slower percentilesWhether rising latency is increasing concurrency
429, 402, and 5xx rates separatelyTraffic pressure, balance problems, and server failures
Attempts per logical requestRetry amplification and duplicate work
Completed answers versus partial or failed responsesWhether apparent success is producing usable output

Increase traffic gradually and compare successful completions, queue age, and cost. If you keep sending faster than work finishes, the queue will continue growing regardless of how many retries you allow. Set a queue size and a maximum acceptable wait, then reject or defer excess work predictably.

Log timestamps, the service route, status codes, and request identifiers when available. Keep API keys and sensitive prompt content out of routine diagnostic logs. For support, a short redacted record of a failing request is more useful than an unsorted dump of application traffic.

Frequently asked questions

Does DeepSeek have a fixed requests-per-minute limit?

DeepSeek’s current public model table does not list a universal RPM allowance. For standalone Search and Fetch, use their documented QPS limits.

When do DeepSeek API rate limits reset?

Capacity becomes available as active requests finish; a fixed reset time should not be assumed. Follow a valid retry hint when supplied, and keep retries within your application’s deadline.

Can extra API keys increase my capacity?

No. Additional keys on one account share that account’s limit.

Will adding balance fix a 429 error?

A balance problem is identified by HTTP 402 in DeepSeek’s error documentation. Treat a top-up as funding usage. For a 429, investigate the affected service’s traffic limits and use the documented capacity-request process when more concurrency is needed.

Do OpenRouter and self-hosted DeepSeek use these limits?

OpenRouter and other providers apply their own service and routing rules. A self-hosted deployment depends on the hardware, serving software, and controls you configure. The figures in this guide describe DeepSeek’s hosted API; identify the destination before applying them.

Will caching or a shorter prompt raise my quota?

Those changes optimize how your workload uses capacity; they do not establish a higher published quota. Measure whether they reduce response duration, token usage, or repeated work for your application. A shorter request can help throughput while the account ceiling remains the same.