Balance, PLUMES and limits
How credits work, how to check them, and the request limits.
PLUMES are your credits. Your administrator gives you a balance and each request takes some PLUMES. The amount depends on the kind of request, and some are free (following a background request is). When the balance is too low you get a 402 and nothing is charged for the failed call.
Check your balance
usage is free, works at a zero balance, and shows this month's use, your limits and the prices.
usage = catalyst.usage.get()
usage.plumes.remaining, usage.plumes.used
usage.limits # requests_per_minute, concurrent_requests
usage.prices # PLUMES per route typeEvery generation result also carries its own cost: result.usage.plumes.
Limits
- Requests per minute are capped per key. Past the cap you get a
429with aRetry-Afterheader. - Simultaneous requests are capped per key (a streaming reply counts until it ends). Past the cap you get a
429. - If the gateway cannot reach Catalyst, the PLUMES for that request are returned.
The SDKs honour Retry-After and retry for you. For plain HTTP, a retry loop that respects the limit:
curl --retry 5 --retry-delay 2 --retry-all-errors -sS "https://api.falcorelabs.com/v1/fetch/demo-1" -H "Authorization: Bearer $FALCORE_API_KEY"Look before you spend. A product should read usage first and stop with a clear message when the balance is zero. The tutorial does exactly this.