Rate limits
Per-tier per-minute and per-day caps, retry semantics, and the MCP-specific bucket.
Rate limits
MarketIntell enforces both per-minute and per-day caps per API key. The two are independent — hitting either returns 429 Too Many Requests.
Tier table
| Tier | Per minute | Per day | Notes |
|---|---|---|---|
| Free | 10 | 20 | No card required. |
| Builder | 120 | 5,000 | $49/mo. AI overlays + WebSocket. |
| Pro | 300 | 25,000 | $199/mo. Sonnet 4.6 + T3 supervisor + agents. |
| Enterprise | 1,000 | unlimited | from $5,000/mo. SSO, SLA, custom. |
Public read-only endpoints (/v1/billing/plans, /widgets/*, /health, /.well-known/*) do not count against the daily query cap. They are still rate-limited per minute (~60/min/IP unauthenticated).
MCP transport
The MCP transport has a separate per-key bucket so a chatty autonomous agent doesn't starve the same key's chat traffic. Default: 30 calls/min/key. Override via the MCP_RATE_LIMIT_MAX env var on a self-hosted deployment.
MCP responses include an X-RateLimit-Limit-MCP header so an agent can distinguish REST vs MCP throttling on the same key.
429 response shape
HTTP/1.1 429 Too Many Requests
X-RateLimit-Limit: 300
X-RateLimit-Remaining: 0
X-RateLimit-Reset: 1747000000
Retry-After: 12
Content-Type: application/json
{
"error": "rate limit exceeded",
"retry_after_ms": 12000,
"request_id": "req_2eGYz7Xh..."
}X-RateLimit-Limit— the bucket size for this key.X-RateLimit-Remaining— calls remaining in the current window.X-RateLimit-Reset— epoch seconds when the window resets.Retry-After— RFC 7231 seconds until next allowed call.retry_after_ms— same asRetry-After, in milliseconds, in the JSON envelope.request_id— opaque trace id; quote this when filing support tickets.
Recommended retry strategy
- Read
retry_after_msfrom the JSON body orRetry-Afterfrom the header. - Sleep that long.
- Retry the request idempotently.
- If the second attempt still 429s, double the sleep (backoff) and retry.
- After 3 backoff retries, surface the error to the caller — don't loop forever.
In TypeScript:
async function withRetry<T>(
fn: () => Promise<Response>,
maxAttempts = 3
): Promise<T> {
let attempt = 0;
while (true) {
const res = await fn();
if (res.status !== 429 || attempt >= maxAttempts) {
if (!res.ok) throw new Error(`HTTP ${res.status}: ${await res.text()}`);
return (await res.json()) as T;
}
const body = await res.clone().json().catch(() => ({}));
const retryMs =
Number(body?.retry_after_ms ?? 0) ||
Number(res.headers.get("Retry-After") ?? 1) * 1000;
await new Promise((r) => setTimeout(r, retryMs * 2 ** attempt));
attempt++;
}
}Daily quota responses
Daily quota uses the same 429 shape but with error: "daily quota exceeded". The reset is the next midnight UTC.
Per-tenant cost cap (Pro / Enterprise)
In addition to query rate limits, every key has a monthly_cost_cap_cents value. When COST_TRACKING_V2=enforce, hitting the cap returns:
{
"error": "Monthly LLM cost cap reached",
"request_id": "req_..."
}Default caps: Free $3/mo, Pro $50/mo, Enterprise unlimited (null). Override per-key via the admin API.
Avoiding rate limits
- Stream rather than poll —
?stream=trueon/v1/chatreturns SSE; one connection, many tokens. - Cache
/v1/billing/plansand/widgets/accuracy.jsonaggressively — they're CORS-open with explicit CDN cache hints. Don't refetch every render. - Use the MCP bucket for batch agent traffic — separate from your interactive REST quota.
- Upgrade to Builder ($49/mo, 12× the rate, 250× the daily) before considering complex retry logic.
See also
- Authentication — how to get a key.
- Pricing — full machine-readable tier comparison.
- Status — live system health.