Skip to main content

Rate Limits

PolarGrid enforces rate limits to ensure fair usage and platform stability. These limits apply uniformly across all inference endpoints (LLM, STT, TTS) and all models.

Current Limits

  • Request rate limit: A per-minute window allows up to 100 requests per user. The limit is keyed to the user who owns the API key, so every key created by the same user draws from one shared 100/min budget. Each edge node keeps its own counter and resets it at the minute boundary, so traffic spread across several nodes gets a separate budget on each (see Distribute requests across edges). If no API key is provided, the limit applies per client IP address.
This limit applies identically to all endpoints: /v1/chat/completions, /v1/completions, /v1/audio/speech, and /v1/audio/transcriptions.

What Happens When You Hit a Limit

When the limit is exceeded, the gateway returns an HTTP 429 Too Many Requests response:
The SDK surfaces this as a RateLimitError. When the response carries a Retry-After header, the SDK exposes its value as retryAfter (in seconds); when the header is absent, retryAfter is undefined, so apply your own backoff (see below). See Error Handling for the full error type reference.

Retry Strategy

Use exponential backoff with jitter to avoid thundering-herd problems when retrying after a 429:
The PolarGrid SDKs include built-in retry with exponential backoff for transient errors (including 429s). Configure via maxRetries when initializing the client. The examples above are for custom retry logic beyond the defaults.

Best Practices for Production

Distribute requests across edges

Use the autorouter to spread traffic across multiple edge nodes. Each edge node maintains its own rate limit counters, so distributing requests reduces the chance of hitting limits on any single node.

Implement client-side throttling

Rather than relying on server-side 429 responses, proactively throttle requests in your application:

Use streaming to reduce request count

A single streaming request holds one connection open while tokens are generated, rather than making multiple polling requests. This is especially effective for long responses.
See the Streaming guide for full details.

Batch where possible

If you have multiple independent prompts, send them as separate requests but pace them to stay within your rate limit. Avoid firing all requests simultaneously.

Custom Limits

Enterprise customers can request custom rate limits tailored to their workload. Contact support@polargrid.ai or reach out to your account representative to discuss higher limits.