Operations

Rate limits

Each API key may make 60 requests per minute across the REST API and MCP tool calls combined. The window is fixed and resets every 60 seconds.

Response headers#

Every /api/v1 response

X-RateLimit-Limitinteger
Requests allowed per window.
X-RateLimit-Remaininginteger
Requests left in the current window.
X-RateLimit-Resetunix seconds
When the current window ends.
Retry-Afterseconds
Only on 429. Wait this long before the next request.

When you exceed it#

429 Too Many Requests
{ "error": { "code": "RATE_LIMITED", "message": "Rate limit of 60 requests per minute exceeded.", "hint": "Retry in 23s." } }

Staying under the limit#

  • Use webhook_url instead of tight polling loops. One webhook replaces dozens of polls for a video.
  • Poll images every 2–3 s and video every 5–10 s, and stop at a terminal status.
  • Cache GET /api/v1/models and /templates; the catalog changes rarely. Responses carry ETag and Cache-Control: max-age=60, so revalidate with If-None-Match and get a body-less 304 (see caching).
  • Filter on the server (q, kind, task, category) instead of downloading the whole catalog.
  • List many generations with one GET /api/v1/generations?limit=100 rather than fetching each one.

Need a higher limit for a production integration? Contact us with your team slug and expected volume.