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-LimitintegerRequests allowed per window.
X-RateLimit-RemainingintegerRequests left in the current window.
X-RateLimit-Resetunix secondsWhen the current window ends.
Retry-AftersecondsOnly on 429. Wait this long before the next request.
When you exceed it#
{ "error": { "code": "RATE_LIMITED", "message": "Rate limit of 60 requests per minute exceeded.", "hint": "Retry in 23s." } }Staying under the limit#
- Use
webhook_urlinstead 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/modelsand/templates; the catalog changes rarely. Responses carryETagandCache-Control: max-age=60, so revalidate withIf-None-Matchand get a body-less304(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=100rather than fetching each one.
Need a higher limit for a production integration? Contact us with your team slug and expected volume.