Quotas & Limits
This page explains how rate limiting and quota enforcement work for the Safe Infrastructure API.
For authentication setup instructions and usage examples, see API Keys & Authentication.
API unit definition
One API unit equals 1 HTTP request to any Safe Infrastructure endpoint.
Enforcement behavior
Quota headers
Every API response includes headers that indicate your current quota status:
_10X-RateLimit-Limit | 50000_10X-RateLimit-Remaining | 49994_10X-RateLimit-Reset | 2591751 (seconds to reset)
- X-RateLimit-Limit: Your total monthly request allowance.
- X-RateLimit-Remaining: How many requests you have left in the current billing cycle.
- X-RateLimit-Reset: Seconds remaining until your quota resets.
These headers allow your application to monitor usage programmatically and take action before hitting limits.
When your monthly quota is reached
When your account reaches 100% of its monthly API unit quota, all subsequent requests are blocked with an HTTP 429 Too Many Requests response and a message indicating "Monthly quota exceeded."
Requests remain blocked until:
- Your billing cycle resets, or
- You upgrade your plan via the developer dashboard (opens in a new tab).
Example 429 response:
_10{_10 "detail": "Monthly quota exceeded."_10}
Account-level enforcement
Enforcement is applied at the account level, not per API key. This means:
- All API keys under an account share the same quota and RPS allocation.
- Creating multiple API keys does not increase your limits.
Anti-circumvention: Creating multiple accounts to circumvent rate limits or quotas violates the Safe Infrastructure terms of service. Accounts engaging in this behavior may be suspended.
Handling rate limit errors
When you receive an HTTP 429 response:
- Wait and retry with exponential back-off.
- Upgrade your plan if you consistently hit limits.
- Monitor your usage via the
X-RateLimit-Remainingresponse header.