1000 requests per day or 60 requests per minute. By implementing rate limits, you can prevent abuse while protecting your resources from being overwhelmed by excessive traffic.
Why Rate Limit
- Prevent abuse of the API: Limit the total requests a user can make in a given period to control cost.
- Protect resources from excessive traffic: Maintain availability for all users.
- Control operational cost: Limit the total number of requests sent and total cost.
- Comply with third-party API usage policies: Each model provider has their own rate limit for your key. Planck’s rate limit is bounded by your provider’s policy.
Create a limit in the dashboard
Open Limits & Alerts → Rules → Create rule → Limit usage.- Choose Organization, Users, API keys, Sessions, or A custom property.
- For a scoped limit, choose each user/key/session/value separately or search for specific selections. Suggestions come from your organization’s requests; API keys are listed by name and ID, never by secret. You can also type a new value.
- Set a request count or USD amount and a reset period. Multiple selected values can share one allowance; otherwise each gets its own.
- Review the sentence preview, optionally change the name under Name & details, and save.
Planck-Session-Id, and reset on the selected period rather than after inactivity. Custom properties are passed with Planck-Property-<key> headers. Property keys are matched without regard to case; values are exact and case-sensitive.
Windows reset at fixed UTC boundaries. Calendar-month limits reset on the first of each month. Changing a rule’s scope or period starts a new allowance; changing its name or amount retains usage in the current bucket. Spend limits reserve an estimated cost before execution and reconcile it when actual cost is reported. Unreported costs retain their estimates; these limits are not a guarantee against every overrun.
These controls apply through the chat gateway, including chat-compatible requests routed through it. Other operation families require their own enforcement integration. Deploy the scope migration, API, and gateway together; the dashboard alone does not activate enforcement.
Quick Start
Set up rate limiting by adding thePlanck-RateLimit-Policy header to your requests:
Configuration Reference
ThePlanck-RateLimit-Policy header uses this format:
Parameters
Maximum number of requests (or cost in cents) allowed within the time window.
Example:
1000 for 1000 requestsTime window in seconds. Minimum is 60 seconds. Example:
3600 for 1 hour,
86400 for 1 dayUnit type:
request (default) or cents for cost-based limiting. Example:
u=cents to limit by spending instead of request countSegment type:
user for per-user limits, or custom property name for
per-property limits. Omit for global limits. Example: s=user or
s=organizationRate Limiting Scopes
Planck supports three types of rate limiting based on who or what you want to limit:Global Rate Limiting
Applies the same limit across all requests using your API key. Use case: “Limit my entire application to 10,000 requests per hour”Per-User Rate Limiting
Applies separate limits for each user ID. Use case: “Each user can make 1,000 requests per day”Per-Property Rate Limiting
Applies separate limits for each custom property value. Use case: “Each organization can make 5,000 requests per hour”Common Use Cases
Global Application Limits
Limit your entire application’s usage:Per-User Limits
Limit each user individually:Per-user rate limiting requires the
Planck-User-Id header. See User
Metrics for more details.Cost-Based Limits
Limit by spending instead of request count:Custom Property Limits
Limit by custom properties like organization or tier:Extracting Rate Limit Response Headers
Extracting the headers allows you to test your rate limit policy in a local environment before deploying to production. If your rate limit policy is active, the following headers will be returned:Planck-RateLimit-Limit: The quota for the number of requests allowed in the time window.Planck-RateLimit-Policy: The active rate limit policy.Planck-RateLimit-Remaining: The remaining quota in the current window.
If a request is rate-limited, a 429 rate limit error will be returned.
Latency Considerations
Using rate limits adds a small amount of latency while the gateway checks and updates usage in Redis. This overhead is typically minimal compared with the time required for an LLM provider request.Coming Soon
- Token-based rate limiting - Limit by number of tokens instead of just request count or cost
- Multiple rate limit policies - Apply multiple rate limiting criteria to a single request (e.g., limit by both request count AND cost simultaneously)
Need more help?
Need more help?
Additional questions or feedback? Reach out to
help@inquantum.ai or schedule a
call with us.
Retry-After and
x-should-retry: false. SDKs that honor this signal stop automatic retries for
that attempt; callers can make a new request after the allowance resets.
Transient enforcement failures and provider retry handling remain separate.
The Rules view shows Limit hit for recorded denials in the current reset window,
Active when no current-window denials are recorded, and recorded alert states, with status counts,
filters, and manual refresh. Triggered includes limit hits and alerts. Status refreshes
at the reset boundary; delayed event delivery can delay a hit appearing. Missing
event data shows Status unavailable. Active describes configuration. Not triggered does
not prove health: successful evaluation timestamps and live enforcement health
are not currently reported. Activity shows recorded events.
Limits & Alerts includes a compact overview above Rules and Activity for blocked
requests and alert triggers over
the last 24 hours or 7 days. Counts cover the whole selected chart range, not just
loaded history rows. Alert triggers count incident starts, including incidents
that later resolved. The All/Limits/Alerts selection controls visible series;
chart time range is separate from the history list’s request-time filter.