Skip to content

ERR_AI_RATE_LIMITED β€” AI Rate Limited

HTTP Status: 429 Retryable: Yes Automatic retry: The callWithRetry utility in utils/retry.ts automatically retries up to 3 times with exponential backoff, respecting the retry-after header from the provider.

What the User Sees

AI service is temporarily overloaded. Please try again in a few minutes. (ERR_AI_RATE_LIMITED)

What Causes This Error

Too many concurrent requests are being sent to the AI provider (Anthropic, Gemini, or OpenAI). Each provider has per-minute and per-day rate limits based on the API tier. During usage spikes β€” such as multiple users converting large documents simultaneously β€” the system can exceed these limits.

The automatic retry mechanism handles most transient rate limiting transparently. The callWithRetry utility waits the amount of time specified in the provider’s retry-after response header before retrying. This error only surfaces to the user if all 3 retry attempts are exhausted, which means the rate limiting persisted for an extended period.

Rate limits are per-API-key, so all users of the service share the same quota. A single user converting a very large document (100+ pages) can consume a significant portion of the rate limit, affecting other users.

The β€œbudget” quality tier uses cheaper models (typically Gemini) that often have higher rate limits than the premium Anthropic models. Switching tiers can be an effective workaround during periods of heavy usage.

Resolution Steps

For Users

  1. Wait 1-2 minutes and retry the conversion.
  2. Try the β€œbudget” quality tier, which uses different AI models that may have higher rate limits.
  3. If converting a large document, try using page ranges to convert smaller sections at a time.
  4. Avoid retrying rapidly β€” each failed retry consumes rate limit quota and makes the problem worse.

For Administrators

  1. Check the Anthropic usage dashboard at https://console.anthropic.com for current rate limit status and utilization.
  2. Check the Google AI Studio dashboard for Gemini rate limits.
  3. Review the admin cost dashboard to identify if a single user or tenant is consuming excessive resources.
  4. Consider upgrading the API tier with the provider if rate limiting is frequent. Anthropic offers higher rate limits on enterprise tiers.
  5. Monitor the Grafana dashboard for rate limit error trends. A sustained increase may indicate organic growth that requires a tier upgrade.
  6. As a temporary measure, enable budgetMode in the smart cascade converter to route all traffic through Gemini, which typically has higher rate limits.
  • ERR_AI_OVERLOADED β€” Provider infrastructure overloaded (affects all customers, not just rate limits)