Authentication

StatuscodeWhat to do
401missing_tokenAdd ?token=YOUR_TOKEN to the URL.
401invalid_tokenCheck the token in Profile → Security.
503service_unavailableService temporarily unavailable. Retry.

Limits

StatusWhenWhat to do
429More than 10 generation requests per minute or 100 requests per 15 minutesWait for the time in the RateLimit-Reset header and retry.
504Generation took too longShorten context or retry later.

Error format

{
  "success": false,
  "error": "validation_failed",
  "errors": [{ "field": "context", "message": "Field is required" }]
}

Every response has an X-Request-ID header. Include it when you report a problem.