Skip to content
Docs

Documentation

Errors and limits

Handle Raywake API errors, permission failures, insufficient credits and rate limits. Learn status codes and when to retry a request.

Errors return a JSON body with a readable detail message.

Error body
{ "detail": "quote_id is required for customer generations" }
HTTP status codes
NameTypeDescription
400Bad request
Invalid input, missing fields, or an input that cannot be priced.
401Unauthorized
Missing or invalid API key.
402Payment required
Not enough available credits for the quote. Top up and retry.
403Forbidden
The key lacks the permission this endpoint needs.
404Not found
Unknown model or job, or a job owned by another account.
409Conflict
The quote expired or no longer matches the input, or the Idempotency-Key was used for a different request.
429Too many requests
A usage limit was reached. Wait for Retry-After seconds; X-Limit-Reason names the limit.
503Unavailable
A dependency is temporarily unavailable. Retry with backoff.

Limits

Accounts have limits on concurrent generations and daily spend to protect you from runaway usage. During the preview the limits are deliberately low; contact us if you need more.

Your own spending limits

You can set limits on the Alerts page, per hour or per 24 hours. A generation that would pass one returns 429 with X-Limit-Reason: spend_limit and a Retry-After for when enough spending has left the window. Limits cover the studio and every API key, and can only be changed from the studio.

Next: API reference →