Clusterbot measures usage in credits and protects the service with rate and concurrency limits. All limits are shared by every API key in your workspace.
Credits
| Request | Cost |
|---|---|
POST /v1/moderations (text moderation) |
1 credit per started block of characters — see below |
GET /v1/moderations/{reviewId} |
Free |
GET /v1/usage |
Free |
| Requests rejected by validation, authentication, rate limits, or quota | Free |
Cost of a text moderation
The cost depends on the length of content and your plan:
| Plan | Characters per credit | 16,000 characters (maximum) |
|---|---|---|
| Paid plans | 2,000 | 8 credits |
| Free plan | 1,000 | 16 credits |
Each started block costs one credit, so 2,001 characters on a paid plan cost 2 credits. Characters are counted as UTF-16 code units, the same way the 16,000-character limit is counted. The full submitted message is priced, even if screening shortens what is evaluated.
Credits are reserved before the message is evaluated. Failover between providers never costs extra. The portal's Usage & activity page shows the credits each request used.
- Service-side failures are refunded. If Clusterbot can't produce a result — for example
503 provider_unavailable— the request's credits are returned to your top-up balance. - Client cancellations are charged. If you cancel or disconnect after the request was admitted, the credits are spent.
- Retries are new requests. There is no idempotency key, so every attempt is charged separately.
Monthly allowance and top-ups
Your plan includes a monthly credit allowance. Requests use the monthly allowance first, then your top-up balance.
- Free plans and workspaces without a paid subscription reset at the start of each calendar month, UTC.
- Paid subscriptions reset monthly on your billing day. Annual plans also reset monthly.
- Top-up credits — purchased packs, grants, and refunded credits — never expire and carry over across resets and plan changes.
When both are used up, moderation requests return 429 with code quota_exceeded. Buy a top-up or change plan in Portal → Plan & billing.
Check usage
GET /v1/usage returns your current balances. It is free, so you can call it before batch jobs or on a dashboard.
curl "$CLUSTERBOT_BASE_URL/v1/usage" -H "X-Api-Key: $CLUSTERBOT_API_KEY"
{
"used": 1240,
"limit": 10000,
"resetsAt": "2026-12-01T00:00:00+00:00",
"unit": "credits",
"creditsUsed": 1240,
"creditLimit": 10000,
"creditsRemaining": 8760,
"topUpBalance": 500
}
| Field | Description |
|---|---|
creditsUsed |
Credits reserved in the current period, including requests later refunded to your top-up balance |
creditLimit |
Your monthly allowance |
creditsRemaining |
Unused monthly allowance (never negative) |
topUpBalance |
Carry-over credits available after the monthly allowance |
resetsAt |
When the monthly allowance next resets (ISO 8601, UTC) |
unit |
Always credits |
used, limit |
Same as creditsUsed and creditLimit; kept for compatibility |
Your available capacity is creditsRemaining + topUpBalance.
Rate limits
Rate limits count HTTP requests, not credits.
| Limit | Default | Scope |
|---|---|---|
| Workspace requests | 250 per minute | All moderation, review-status, and usage requests from your workspace, across all keys |
| Requests per IP address | 500 per minute | All /v1 requests from one source IP |
| Concurrent moderations | 2 per workspace | Moderation requests in flight at the same time |
Requests over a limit are rejected, not queued. Limits can change, so handle 429 and 503 instead of hard-coding these numbers. If your workspace needs a higher limit, contact us.
| Response | Meaning | What to do |
|---|---|---|
429 Too Many Requests |
A per-minute limit was reached. | Wait for the number of seconds in the Retry-After header, if present, then retry. |
503 Service capacity unavailable |
Too many requests are in flight at once. | Lower your concurrency and retry with backoff. |
Staying within limits
- Keep at most two moderation requests in flight per workspace. A small worker pool or semaphore works well.
- Retry
429and503with exponential backoff and jitter. Don't retry immediately. See the retry example. - Poll review status every 10–15 seconds at most, or use review callbacks instead.
- Cache
GET /v1/usagefor a minute in dashboards instead of calling it on every page view.
Other limits
| Limit | Value |
|---|---|
content length |
16,000 characters |
| Request body | 64 KiB |
Health check (GET /v1/health) |
Rate limited; no authentication |
Questions about this guide? Contact us or try requests in the playground.