Grok passesConcurrency in use
For Grok pass keys, Grok team member keys and unlimited xAI reseller keys: see right now how many images and videos the key is running, and how many parallel requests are free before you send a new create call.
https://framewharf.com/api/v1/concurrencyAuthorization: Bearer sk-your_api_keyCall it with the same key you use to create images and videos, in the header Authorization: Bearer. It takes no parameters.
curl "https://framewharf.com/api/v1/concurrency" \
-H "Authorization: Bearer sk-your_api_key"{
"object": "concurrency",
"limit": 10,
"in_use": 4,
"available": 6,
"pending": 1,
"rendering": 3
}Polling a video's status and downloading it use no slots. Right after a plan's parallel requests are lowered, in_use can exceed limit for a while because running jobs are not cut off; available never goes negative.
Read available before sending a create call and only send when a slot is free, instead of sending continuously and retrying on 429. Reading it every few seconds is enough.
Every error has the shape { "error": { "message": string } }.