---
title: "Kimi API 429 Error: Engine Overloaded vs Rate Limit vs Quota"
description: "A Kimi API 429 has three causes: engine overload, rate limit, and exhausted balance. Code to read error.type, a handling table, SDK retry effects, and api.moonshot.cn probe data."
url: https://cdnping.org/en/blog/kimi-api-engine-overloaded-vs-rate-limit
language: en
published: 2026-11-02
category: "Troubleshooting"
tags: ["Kimi","Moonshot AI","429","Rate limiting","API troubleshooting"]
source: cdnping.org
license: Free to quote and summarize with a link to the url above.
---
# Kimi API 429 Error: Engine Overloaded vs Rate Limit vs Quota

When you hit a Kimi API 429, read `error.type` in the response body first. The status code alone tells you nothing. `engine_overloaded_error` means Moonshot AI's servers are out of capacity. It has nothing to do with your account, topping up won't help, and all you can do is back off and retry. `rate_limit_reached_error` means your account exceeded its concurrency, RPM, TPM, or TPD limit, so you need to send requests more slowly or raise your account tier under the official rules. `exceeded_current_quota_error` means your balance or quota is used up. No number of retries will succeed, and the only fix is to top up in the console.

All three errors share the 429 status code, yet the right responses are nearly opposite.

## What do the three 429 response bodies look like?

The Moonshot AI Open Platform (Kimi's API) is OpenAI-compatible, and its errors are JSON with roughly this structure (the exact message wording depends on what is actually returned and on the [official docs](https://platform.moonshot.cn/docs)):

```json
{
  "error": {
    "type": "engine_overloaded_error",
    "message": "The engine is currently overloaded, please try again later"
  }
}
```

The other two use `rate_limit_reached_error` and `exceeded_current_quota_error` as their `type`. Rate-limit messages usually name the limit you hit, such as "max concurrency", "max RPM", "max TPM", or "max TPD". Quota messages typically tell you to check your balance or account status.

Branch on the `type` field and use the message only for extra detail. The platform may change the wording, so matching on message strings is unreliable.

## How do you quickly see the error type?

### See the full response with curl

`-i` prints the status code and headers, so you can also check for a `Retry-After` header:

```bash
curl -i https://api.moonshot.cn/v1/chat/completions \
  -H "Authorization: Bearer $MOONSHOT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"<the model you use>","messages":[{"role":"user","content":"ping"}],"max_tokens":8}'
```

If you only care about the error type, pipe the output through `jq`:

```bash
curl -s https://api.moonshot.cn/v1/chat/completions \
  -H "Authorization: Bearer $MOONSHOT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model":"<the model you use>","messages":[{"role":"user","content":"ping"}],"max_tokens":8}' \
  | jq -r '.error.type // "ok"'
```

`max_tokens` is kept small to spend as little quota as possible while debugging.

### Branch on type in Python

When you call Kimi through the OpenAI SDK, a 429 raises `RateLimitError`. All three cases use the same exception class, so you have to read `type` from the body:

```python
from openai import OpenAI, RateLimitError

client = OpenAI(
    api_key="sk-...",
    base_url="https://api.moonshot.cn/v1",
    max_retries=0,  # disable SDK auto-retry; decide retries yourself
)

def classify_429(e: RateLimitError) -> str:
    body = e.body if isinstance(e.body, dict) else {}
    err = body.get("error", body)  # handle bodies that are already the error object
    return (err or {}).get("type", "unknown")

try:
    resp = client.chat.completions.create(
        model="<the model you use>",
        messages=[{"role": "user", "content": "ping"}],
        max_tokens=8,
    )
except RateLimitError as e:
    kind = classify_429(e)
    retry_after = e.response.headers.get("retry-after")
    print(kind, retry_after)
```

The nesting of `e.body` can differ between SDK versions, and the code above handles both shapes. Before shipping, mock a 429 response with the JSON above and confirm each of the three types reaches its own branch.

## How should you handle each 429?

| error.type | Where the problem is | Does retrying help? | What to do |
|---|---|---|---|
| `engine_overloaded_error` | Moonshot AI server capacity | Yes, but back off | Exponential backoff with jitter; honor the `Retry-After` header if present; if it persists, switch to a backup model or degrade |
| `rate_limit_reached_error` | Your account exceeded concurrency, RPM, TPM, or TPD | Yes, if you slow down | Check which limit the message names; for concurrency add a client-side queue, for TPM shorten the context or lower `max_tokens`; if it is chronically insufficient, raise your account tier under the official rules |
| `exceeded_current_quota_error` | Balance or quota exhausted | No | Stop retrying immediately, alert whoever owns billing, and top up in the console |

### Engine overloaded: wait, but don't hammer

`engine_overloaded_error` originates on the server, and usually many users are affected at the same time. Nothing you do on your side will make it recover sooner. There are two things you can do:

1. Retry with backoff. For example, wait 1-2 seconds the first time, double after that, add random jitter each time, and set a total time cap. For the implementation, see [How to write LLM API retries: exponential backoff with jitter](/en/blog/llm-api-retry-exponential-backoff-jitter).
2. After consecutive failures pass a threshold, stop calling Kimi and switch to a backup model. For circuit-breaker and fallback-chain design, see [LLM API multi-provider failover](/en/blog/llm-multi-provider-failover-circuit-breaker).

This is the same kind of condition as Claude's 529 `overloaded_error`, except Moonshot AI uses the 429 status code. For a comparison of the two, see [What Claude's 529 overloaded_error means](/en/blog/claude-529-overloaded-error-explained).

### Rate limit: find out which limit you hit

Moonshot AI's rate limits are set by account tier and generally cover concurrency, requests per minute (RPM), tokens per minute (TPM), and tokens per day (TPD). The exact values for each tier are in the official docs. To troubleshoot:

1. Read the message to see which limit was exceeded.
2. Concurrency: add a semaphore or queue on the client to keep in-flight requests below the cap. If several processes or machines share one key, concurrency is counted across all of them, so you need a central rate limiter.
3. RPM: spread requests out evenly instead of sending them in one batch.
4. TPM or TPD: check whether every call carries a long conversation history and whether `max_tokens` is set too high. TPD is counted per day, so slowing down rarely relieves it the same day; you generally wait for the quota to reset.
5. If you have done all of that and it is still not enough, consider whether your account tier needs to be raised.

For RPM, TPM, and general rate-limit handling, [What to do when an API returns 429 Too Many Requests](/en/blog/llm-api-429-too-many-requests-fix) goes into more detail.

### Insufficient balance: the only one to stop on immediately

`exceeded_current_quota_error` is the one most often mishandled. If your retry logic looks only at the status code and retries every 429, a zero balance fills your logs with failures while the alert may never reach anyone who can top up. Give this type its own alert that says "top-up needed" and keep it separate from ordinary rate limiting.

## Why can SDK retries make 429s multiply?

The OpenAI Python and Node SDKs retry 429 and 5xx responses twice by default, so one call can send up to 3 requests. That default also applies when you point the OpenAI SDK at Kimi:

- On a rate limit, auto-retry adds up to two more times the request volume to traffic that is already over the limit, so recovery is slower.
- On insufficient balance, every call needlessly sends two extra requests, and the inflated failure count in your logs can be mistaken for widespread rate limiting.
- If you wrap the SDK in another retry layer, the two multiply. For example, if the outer layer also retries twice, one business call can become up to 9 requests.

The safe approach is to set `max_retries` to 0 and let your own code decide whether to retry based on type. Alternatively, keep the SDK retries but don't add another layer outside. Default timeouts and retry parameters for each SDK are covered one by one in [Timeout and retry settings in the OpenAI and Anthropic SDKs](/en/blog/openai-anthropic-sdk-timeout-retry-config).

## How do you tell whether Kimi as a whole is having problems?

After an `engine_overloaded_error`, the next question is usually whether it is just you or everyone. Check in this order:

1. Open [Is Kimi down?](/en/down/kimi) to see the official status, API probe results, and one-click user reports (including "rate limited" and "slow"). If several people report rate limiting in the same period, it is most likely a server-side problem.
2. Open [Moonshot API status](/en/status/moonshot) to see recent probe latency and failure points for api.moonshot.cn. The data on this page comes from probes run every 5 minutes from Cloudflare's edge, and Moonshot AI's official status page is synced every 15 minutes.
3. Use the [cdnping home page](/en) to measure first-connection and round-trip time from your current network to the Kimi API. If the connection itself is slow or fails, the problem may be your own network rather than Moonshot AI overload.

To understand how incident levels on official status pages work and how components map to the API, see [How to read the OpenAI and Claude status pages](/en/blog/how-to-read-ai-status-pages).

## What does cdnping see when probing api.moonshot.cn?

The data below comes from cdnping's API status probes. The probe point is a Cloudflare Denver (DEN) edge node, and the window is 2026-10-17 08:40 to 10:05 (UTC). cdnping only started collecting on 2026-10-17, so this window is about 85 minutes. The numbers describe that period only and should not be taken as long-term availability.

| Metric | Value |
|---|---|
| Probe target | api.moonshot.cn |
| Median latency (p50) | 375 ms |
| Latency p95 | 1125 ms |
| Availability in window | about 94.4% |
| Official status page at the time | No active incidents |

How to read these numbers:

- p95 is 3 times p50, so a small share of requests are noticeably slower. If your client timeout is too tight, those requests are counted as failures and trigger retries, which adds load.
- Availability in the window was about 94.4%, while the official status page showed no active incident in the same period. A healthy official status page does not mean every request succeeds, so you still need your own monitoring and retry logic.
- The probe is in the US, so the latency figures mainly reflect the cross-border path and do not represent direct connections from within China. For real conditions in China, trust what you measure yourself on the [cdnping home page](/en).

Separately, the Moonshot AI official status page records that cdnping syncs show 8 critical-level incidents since 2026-09-17. That number comes from the official status page's history, not from cdnping's own probes. A fallback plan for Kimi in production is warranted. For how the data is collected, see [Methodology](/en/methodology).

## Is the web "server busy" message the same as the API's 429?

Not exactly. When the Kimi web app or mobile app says the service is busy, the company has not publicly said which backend error that corresponds to, or whether it shares the same capacity pool as the Open Platform API's rate limits. The safer reading is this: if the web app and the API fail at the same time, overall server load is probably high; if only the API returns `rate_limit_reached_error` while the web app works, you are hitting your own account's rate limit, unrelated to platform-wide status.

## Pre-launch checklist

- [ ] Error handling branches on `error.type`, not just the status code.
- [ ] `exceeded_current_quota_error` is not retried and triggers its own alert to whoever owns billing.
- [ ] `engine_overloaded_error` uses exponential backoff with jitter and a total time cap.
- [ ] `rate_limit_reached_error` logs the message so you can see which limit was exceeded.
- [ ] Only one layer of retry remains, either the SDK's or your own.
- [ ] When several processes share one key, there is central concurrency control.
- [ ] Client timeouts are set from p95, not p50.
- [ ] A backup model or degraded path exists for sustained overload.
- [ ] The on-call runbook lists both [/en/down/kimi](/en/down/kimi) and [/en/status/moonshot](/en/status/moonshot) as places to check.
