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.
/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: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.