Skip to content
Rapid Router
← API reference

Errors

Part of the Rapid Router API reference. One OpenAI-compatible endpoint, https://rapidrouter.ai/api/v1, in front of every model in the catalog.

41Errors

CodeWhat it means
400Malformed request. model and messages are both required
401Missing, revoked or malformed API key
402Credit balance exhausted, or the key hit its monthly budget cap
404Unknown model. GET /models lists what is available
429Over the per-minute limit, or too many requests already in flight
500Something failed on our side. The message carries a request id to quote when reporting
502The upstream provider failed or could not be reached
503We list this model but its provider is not connected on this deployment yet

Every error, a 500 included, is the same envelope: { "ok": false, "error": { "code", "message" } }. Internal detail (stack traces, database errors) never appears in a response body; a 500's message contains a request id that maps to the full detail in our logs.

Monitoring us: GET /health answers if the process is up; GET /health/inference additionally runs the same database queries a chat completion runs and answers 503 when that path is broken. If you page on our availability, ping /health/inference, it is the one that tells the truth about whether inference works.