What are the production rate limits for Fikra API?
Fikra API enforces strict throughput boundaries at the proxy layer using a high-concurrency Redis token bucket infrastructure. These caps abstract upstream provider limits, pooling multi-engine capacity internally while shielding clients behind deterministic constraints.
Operational Account Tiers
Quotas are computed primarily on a frequency basis (Requests Per Minute) by our Redis proxy engine, completely independent of upstream hardware tracking.
| Account Tier | Requests Per Minute (RPM) | Access Condition |
|---|---|---|
| Unverified | 30 RPM | Default sandbox evaluation state. Free tier usage limits apply. |
| Trusted | 100 RPM | Unlocked permanently following your first successful wallet top-up. |
| Growth | 500 RPM | For production organizations with high concurrent traffic. Requires active platform fee. |
| Scale | 2,000 RPM | High-throughput enterprise deployments. SLA included. Requires active platform fee. |
Decoupled Limit Tracking
Because Fikra handles automatic fallback routing and key rotation across Groq and Alibaba instances, upstream `x-ratelimit` headers are highly volatile. Fikra completely strips these upstream headers and injects decoupled metadata based purely on your Fikra account tier via our internal Redis bucket.
| Response Header Key | Returned Value Type | Metric Description |
|---|---|---|
| x-ratelimit-limit-requests | Integer | The hardcoded cap permitted under your assigned Fikra tier (e.g., 100 for Trusted). |
| x-ratelimit-remaining-requests | Integer | Remaining request count within your current 60-second sliding window. |
| x-ratelimit-reset-requests | Integer (Seconds) | Seconds remaining before your Redis sliding window resets completely. |
Handling Rate Limits (429) & Upstream Backoffs
When request thresholds breach the assigned Fikra token bucket boundary, the system returns a standard 429 Too Many Requests. You must implement exponential backoff logic in your client.
Note that temporary upstream 429s originating directly from hardware providers (like Groq) are caught and silently retried by Fikra's fallback router using backup API keys. If your application receives a 429, you have explicitly breached your Fikra-assigned Redis limits, not the upstream limit.