Tag

rate-limiting

6 posts tagged "rate-limiting".

Posts

Latest first

Budgets vs Rate Limits: Pick the Control, Then Set Both
Guides

Budgets vs Rate Limits: Pick the Control, Then Set Both

A budget caps dollars over a window and answers 402; a rate limit caps RPM/TPM right now and answers 429. Here is how to classify the risk, set each control in the dashboard, and write client code that tells the three rejections apart.

nRouter team
10 minRead →
Credits, Budgets, Rate Limits, Guardrails: Four Pre-Flight Gates
Guides

Credits, Budgets, Rate Limits, Guardrails: Four Pre-Flight Gates

Every request through an LLM gateway clears four independent gates before a provider ever sees it — credit balance, budget cap, RPM/TPM rate limit, and guardrails. Each has its own status code, its own scope, and its own fix.

nRouter team
11 minRead →
Reserve-and-Settle: Never Overspend a Credit Balance
Engineering

Reserve-and-Settle: Never Overspend a Credit Balance

Checking a balance and then calling a provider is a race, and under the fan-out an LLM gateway is built for it loses. Here is the reserve, settle and release contract as you can observe it — what your balance does on success, on an upstream failure, on a timeout, and when the cost is never knowable.

nRouter team
12 minRead →
Hard LLM Spend Caps at Org, Team, User, and Key Scope
Guides

Hard LLM Spend Caps at Org, Team, User, and Key Scope

A budget is a dollar allowance attached to a scope and a window. Here is how to create one on each of the four scopes, which status code each returns when it fires, and how to prove the cap bites before you trust it in production.

nRouter team
11 minRead →
429 vs 402 on an LLM Gateway: Which to Retry, Which to Stop
Guides

429 vs 402 on an LLM Gateway: Which to Retry, Which to Stop

Both a throttle and a budget block can arrive as 429, and both an empty balance and a team budget arrive as 402. Branch on the error code, not the status — with backoff, jitter, and idempotent retries.

nRouter team
9 minRead →
RPM and TPM Rate Limiting Per Key, Team, and Org
Engineering

RPM and TPM Rate Limiting Per Key, Team, and Org

A rate limit caps velocity, a budget caps total spend, and confusing the two is how a runaway loop burns a month of headroom before anything fires. Here is how RPM and TPM limits resolve per key, team and org, what each 429 means, and why the caller can never raise one.

nRouter team
11 minRead →