Docs / API Reference / Rate Limiting

Rate Limiting

TrueEntropy enforces rate limits per API key to ensure fair usage and system stability. Limits are based on your subscription tier and measured per minute.

Rate Limits by Tier

TierRequests/MinRequests/MonthBurst (150%)
Free101,00015
Developer10050,000150
Pro500500,000750
Business2,0005,000,0003,000
EnterpriseCustomUnlimitedCustom

Rate Limit Headers

Every API response includes rate limit information in the headers:

HeaderDescriptionExample
X-RateLimit-LimitMaximum requests per minute for your tier500
X-RateLimit-RemainingRequests remaining in current window47
X-RateLimit-ResetUnix timestamp when the window resets1741536180
Retry-AfterSeconds to wait (only on 429 responses)12

Burst Allowance

Each tier includes a 150% burst allowance to handle traffic spikes. If your Pro plan allows 500 req/min, you can briefly burst to 750 req/min. Sustained usage above your base limit will trigger rate limiting.

429 Response

429 Too Many Requests
{ "error": { "code": "rate_limited", "message": "Rate limit exceeded. Retry after 12 seconds.", "retry_after": 12, "limit": 500, "remaining": 0, "reset": 1741536180 } }

Best Practices

  • Use the batch endpoint - POST /v1/batch counts as 1 request regardless of value count
  • Implement exponential backoff - On 429, wait retry_after seconds before retrying
  • Cache when appropriate - If you need random values infrequently, fetch and cache a batch
  • Monitor via dashboard - Set up usage alerts at 80% and 90% thresholds
  • Use SDKs - All official SDKs handle rate limiting automatically with exponential backoff

Monthly Quota Exceeded

When your monthly allocation is exhausted, requests continue to work but are billed at the overage rate of £0.004 per 1,000 requests. Set a hard spending limit in your dashboard billing settings to prevent unexpected charges.