Skip to main content
When a request fails, the API returns a JSON response that contains error information:

Error List

400 β€” Bad Request

401 β€” Authentication Error

Platform key isolation: Keys issued on platform.kimi.ai are independent from keys issued on other regional Kimi platforms. Mixing keys across platforms returns 401. Make sure the endpoint matches the platform where the key was created.

403 β€” Permission Error

404 β€” Resource Not Found

429 β€” Rate Limit / Insufficient Quota

499 / 500 / 503 / 504 β€” Connection And Server Errors

Troubleshooting Tips

  • 401 response: First confirm that you are using an API key from the correct platform.
  • 429 response: First identify the cause by error.type: back off and retry for node overload, reduce concurrency or upgrade your account tier for organization-level rate limits, and top up for insufficient balance. See Top-up and Rate Limits.
  • 500 response: Try again later. If the issue persists, contact the support team at [email protected].
  • 504 response: The gateway timed out because the server produced no response for 900 seconds. Use streaming output (stream: true).