Skip to main content

Overview

AJ STUDIOZ Cloud Infra enforces rate limits to ensure fair access and platform stability. Limits apply per API key and are reset on a rolling or monthly basis depending on your plan.

Rate Limit Headers

Every API response includes headers showing your current usage:

Plan Limits

Token limits apply across all models. Larger models consume more tokens per request.

Rate Limit Errors

When you exceed your rate limit, the API returns a 429 Too Many Requests response:

Handling Rate Limits

Python (with retry)

Python (with tenacity)


Best Practices

  • Batch requests — combine multiple prompts where possible instead of making individual calls
  • Stream responses — use streaming to get faster first tokens without increasing rate limit usage
  • Cache results — cache identical prompts/responses to avoid redundant API calls
  • Use smaller models for dev — use gemma3:4b or gemma3:12b during development to save quota
  • Monitor headers — track X-RateLimit-Remaining to proactively back off before hitting limits

Upgrade Your Plan

Need higher limits? Upgrade at cloud.ajstudioz.com or contact us for Enterprise pricing.