Tag

llm-gateway

49 posts tagged "llm-gateway".

Posts

Latest first

LLM Streaming Failures: Why Mid-Stream Retry Duplicates Output
Engineering

LLM Streaming Failures: Why Mid-Stream Retry Duplicates Output

Streaming makes responses feel fast, but it creates a hard recovery boundary. Learn when an LLM request can fail over safely, why emitted tokens cannot be replayed silently, and how clients should handle partial output.

nRouter team
11 minRead →
Four Outcomes That Get an LLM Gateway Funded
Company

Four Outcomes That Get an LLM Gateway Funded

A feature matrix does not survive a finance review. The internal case for an LLM gateway is four measurable outcomes — total spend, unit cost, performance under load, and shipping speed — each with a number attached.

nRouter team
10 minRead →
Budget Ceilings That Turn AI Spend Into a Forecast
Product

Budget Ceilings That Turn AI Spend Into a Forecast

A forecast is only a forecast if the worst case is bounded. Set hard dollar ceilings at the org, team, user and key scope, decompose next month's number into them, and know exactly which code your client gets when one bites.

nRouter team
11 minRead →
Ship Your First AI Feature: Signup to Production in an Afternoon
Guides

Ship Your First AI Feature: Signup to Production in an Afternoon

A step-by-step path from a funded nRouter account to a production LLM call with a spend ceiling on it — create a scoped key, point your existing OpenAI client at one base URL, cap the key, and verify the cost header came back.

nRouter team
11 minRead →
Latency Routing and Automatic Failover Without Retry Code
Guides

Latency Routing and Automatic Failover Without Retry Code

Point a router alias at a candidate set with the Latency strategy, keep the automatic cross-provider failover, tune the two settings that decide how fast a bad provider is abandoned, and prove the effect on your own p95.

nRouter team
11 minRead →
Cut LLM Costs by Routing, Not by Rewriting Your App
Product

Cut LLM Costs by Routing, Not by Rewriting Your App

Routing is the one cost lever you can pull from a dashboard. Point an alias at a set of models, choose cost or latency or weighted, and change what a request costs without touching a line of application code.

nRouter team
11 minRead →
One API Key Across Providers: The Integration You Stop Writing
Product

One API Key Across Providers: The Integration You Stop Writing

Provider breadth behind a single OpenAI-compatible key. What the swap changes in your codebase, what the model string buys you, which providers are live today, and the integration work that stops being yours to maintain.

nRouter team
11 minRead →
Set Up LLM Log Callbacks: Datadog, Langfuse, S3, Slack
Guides

Set Up LLM Log Callbacks: Datadog, Langfuse, S3, Slack

Configure log destinations once at the gateway instead of instrumenting every call site. Here is how to add and verify a callback today, what the Beta does and does not deliver yet, and the live paths that get data out in the meantime.

nRouter team
10 minRead →
Write-Time PII Redaction in LLM Logs, Without Losing Debug Detail
Engineering

Write-Time PII Redaction in LLM Logs, Without Losing Debug Detail

"Redact the logs and you cannot debug" is a false trade. Here is how write-time redaction, typed structure-preserving placeholders and metadata scrubbing keep LLM request logs reproducible while the sensitive values never reach durable storage.

nRouter team
11 minRead →
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 →
What an LLM Request Log Should Contain — and What to Leave Out
Guides

What an LLM Request Log Should Contain — and What to Leave Out

The fields that make an LLM request log worth keeping, the content that turns it into a liability, and how a gateway's built-in logs compare with running your own self-hosted trace store.

nRouter team
10 minRead →
LLM Latency: p50, p95, p99, and Time-to-First-Token
Engineering

LLM Latency: p50, p95, p99, and Time-to-First-Token

An average latency number describes an experience nobody had. Here is how to read LLM latency as a distribution — p50, p95, p99, time-to-first-token and total completion time — and how to find what is actually causing a bad tail.

nRouter team
11 minRead →
Gateway Credits vs Prepaid Tokens: How the Balance Works
Guides

Gateway Credits vs Prepaid Tokens: How the Balance Works

Prepaid tokens are one provider's currency, priced against one rate card. Gateway credits are dollars that fund any model behind one key. Here is how to consolidate, read the balance card, and prove each call settled at real cost.

nRouter team
10 minRead →
LLM Cost Attribution: Keys, Teams, and the user Field
Guides

LLM Cost Attribution: Keys, Teams, and the user Field

"The AI bill went up" becomes a query once spend carries structure. Three attribution layers — virtual keys, teams, and the OpenAI-spec user field — turn one opaque total into a breakdown you can group, filter, and cap.

nRouter team
10 minRead →
What Is an LLM Gateway? The Six Jobs It Takes Off Your Code
Guides

What Is an LLM Gateway? The Six Jobs It Takes Off Your Code

An LLM gateway is one endpoint in front of every model provider that owns six cross-cutting jobs — auth, cost, limits, safety, observability and failover. What it does, what happens to a request inside it, and when you need one.

nRouter team
11 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 →
No Demo Mode: Every Number You See Came From a Real Request
Company

No Demo Mode: Every Number You See Came From a Real Request

nRouter has no sandbox, no sample dataset, and no demo mode. The dashboard figure, the playground response, the cost header and the ledger row are all produced by the same live path a paying request takes. The cost of that honesty is that there is nothing to look at until you have paid for a call.

nRouter team
10 minRead →
Markup-Free LLM Credits: The Fee Is On Top, Never In The Rate
Product

Markup-Free LLM Credits: The Fee Is On Top, Never In The Rate

A gateway can take its cut two ways: silently, inside the per-token rate you can never decompose, or visibly, as a platform fee added at purchase. nRouter does the second, so every credit you buy is spendable at the provider's own settled cost.

nRouter team
10 minRead →
RAG on One Key: Costing Embeddings and Chat as One Answer
Product

RAG on One Key: Costing Embeddings and Chat as One Answer

A RAG app makes two kinds of model call and most teams only ever price one of them. Put embeddings and chat behind one gateway key and the cost of answering a question becomes a single number, under a single budget, with one fallback.

nRouter team
11 minRead →
Migrate Off OpenRouter: The Base-URL Swap and What Does Not Map
Product

Migrate Off OpenRouter: The Base-URL Swap and What Does Not Map

Moving an OpenAI-compatible app from OpenRouter to nRouter is two lines of config. The work that is actually left is model-slug mapping, the vendor extensions you added, and a cost-and-error contract that behaves differently. Here is the whole checklist.

nRouter team
10 minRead →
SOC 2 for an LLM Gateway: The Evidence an Auditor Asks For
Guides

SOC 2 for an LLM Gateway: The Evidence an Auditor Asks For

A criterion-by-criterion checklist for putting an LLM gateway through SOC 2 — access control, audit attribution, retention, encryption, tenant isolation and availability — with the honest current state of each control on nRouter.

nRouter team
11 minRead →
Org, Team, Member: Scoping Keys, Budgets, Guardrails
Engineering

Org, Team, Member: Scoping Keys, Budgets, Guardrails

A flat organization works until the second team arrives, and then every key, budget and policy is visible to everyone. Here is how nRouter nests org, team and key, which control attaches where, and why the team a request is billed to is read from the key rather than the request body.

nRouter team
12 minRead →
Virtual Keys vs Master Key: Scoping a Key Per Job
Guides

Virtual Keys vs Master Key: Scoping a Key Per Job

A management credential and an inference credential are different tools with different blast radii. Here is how to issue one virtual key per environment-and-service pair, narrow it with the four scope fields, cap it, and rotate it without downtime.

nRouter team
11 minRead →
Server-Side Prompt Templates: Version, Roll Back, A/B Test
Engineering

Server-Side Prompt Templates: Version, Roll Back, A/B Test

A one-word prompt fix should not need a deploy, and a bad prompt should not need an incident bridge. Here is how referencing a versioned server-side template by id makes prompt changes reversible, auditable, and testable on real traffic.

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 →
Cost-vs-Quality LLM Routing: Which Tasks Can Go Cheap
Guides

Cost-vs-Quality LLM Routing: Which Tasks Can Go Cheap

Quality is a property of a task, not of a model. Here is how to inventory your traffic by task, point a router alias at a candidate set, prove each downgrade with an A/B test, and read the saving off the Cost vs Usage report.

nRouter team
11 minRead →
Hash-Based A/B Tests: Same User, Same Model Variant, Every Call
Engineering

Hash-Based A/B Tests: Same User, Same Model Variant, Every Call

A coin flip on every request is not an experiment — it is noise with a dashboard. Here is how deterministic hash-based assignment gives each user a stable variant for the life of a test, why the experiment id belongs in the hash, and what the gateway refuses to let a caller override.

nRouter team
11 minRead →
Provider Fallback Chains: Surviving an OpenAI Outage
Engineering

Provider Fallback Chains: Surviving an OpenAI Outage

When a provider 5xxs, overloads or times out, the request should still return. Here is how an ordered fallback chain advances only on retryable failures, bills exactly one hop, and turns a 38% error rate into 0.125%.

nRouter team
11 minRead →
Langfuse alternative: observability AND routing AND governance included on every plan
Comparison

Langfuse alternative: observability AND routing AND governance included on every plan

Head-to-head: nRouter vs Langfuse. A self-hostable observability + prompt + evals specialist vs a hosted LLM gateway that bundles observability, routing, and governance — every feature included on every plan. Pay-as-you-go fee of 4% of your credits, 0% on Pro. Models available in your live catalog behind one API key.

nRouter team
9 minRead →
LLM routing strategies 2026: benchmark-anchored vs ML-classifier vs operator-controlled — how to pick the routing intelligence that fits your team
Buyer's Guide

LLM routing strategies 2026: benchmark-anchored vs ML-classifier vs operator-controlled — how to pick the routing intelligence that fits your team

Vendor-neutral buyer's-guide decision tree across the three durable LLM routing-intelligence shapes — benchmark-anchored (Unify-style), ML-classifier (NotDiamond-style), and operator-controlled (nRouter-style). Three questions, one shape, one product. Pick the failure mode your team is best equipped to own.

nRouter team
13 minRead →
TrueFoundry AI Gateway alternative: buying one module of a platform
Comparison

TrueFoundry AI Gateway alternative: buying one module of a platform

TrueFoundry's gateway is one module of a platform that also sells model deployment, GPU serving, and agent, MCP and skills registries — metered by requests and by seat. nRouter sells the gateway alone, priced as a share of model spend. A procedure for deciding which purchase you are making.

nRouter team
12 minRead →
Kong AI Gateway alternative: what you still operate after the plugin is enabled
Comparison

Kong AI Gateway alternative: what you still operate after the plugin is enabled

Kong's AI plugins put LLM governance in the data plane you already run — and leave you running it: provider credentials in plugin config, Redis behind the rate limiter, SSO and audit logging on the Enterprise tier. nRouter is the other trade: a managed endpoint that holds the provider keys.

nRouter team
12 minRead →
Eden AI alternative for the LLM half of a multi-service AI bill
Comparison

Eden AI alternative for the LLM half of a multi-service AI bill

nRouter vs Eden AI for teams running OCR, vision and translation alongside their LLM traffic. What a focused gateway serves, what it deliberately does not, and how to split a multi-service invoice before you move anything.

nRouter team
12 minRead →
Cloudflare AI Gateway alternative: a managed LLM gateway that isn't tied to one cloud edge
Comparison

Cloudflare AI Gateway alternative: a managed LLM gateway that isn't tied to one cloud edge

Head-to-head: nRouter vs Cloudflare AI Gateway, on the axes that actually differ — an account-scoped endpoint, the cf-aig-* cache, Unified Billing's 5% credit fee and its 200-requests-per-60-seconds cap, and a per-account log pool. One base-URL switch, governance on every plan.

nRouter team
12 minRead →
Vercel AI Gateway alternative: a managed LLM gateway that isn't tied to one host
Comparison

Vercel AI Gateway alternative: a managed LLM gateway that isn't tied to one host

Head-to-head: nRouter vs Vercel AI Gateway on the axes that decide it — BYOK spend that budgets cannot cap, governance gated to Pro and Enterprise, OIDC auth that assumes a Vercel deployment, and what a zero-markup gateway costs you elsewhere. One base-URL switch.

nRouter team
12 minRead →
Helicone alternative: governance built in, not gated behind Pro
Comparison

Helicone alternative: governance built in, not gated behind Pro

Head-to-head: nRouter vs Helicone on the axes an observability-first product makes you choose — guardrails and evals starting at $79/mo, a one-month retention window on Pro, ingestion and API ceilings, and one seat on Hobby. Sourced against Helicone's own pricing page.

nRouter team
12 minRead →
Portkey alternative: every governance feature on every tier, free for life
Comparison

Portkey alternative: every governance feature on every tier, free for life

nRouter vs Portkey, the closest true competitor on governance breadth. What "plan-dependent" costs you beyond the price, where Portkey is genuinely ahead, and the two error codes a budget ceiling returns.

nRouter team
12 minRead →
Claude Proxy: One Base URL for Budgets, Fallback and Cost Data
Product

Claude Proxy: One Base URL for Budgets, Fallback and Cost Data

Point your Anthropic client at one gateway base URL and every Claude call arrives with a hard budget, a fallback path, a per-request cost header, and a team it can be billed to. No SDK rewrite, no provider key to paste.

nRouter team
11 minRead →
From Credits to Pro: when a flat subscription beats per-call billing on an LLM gateway
Pricing

From Credits to Pro: when a flat subscription beats per-call billing on an LLM gateway

The two breakevens that decide which nRouter plan is the cheapest option on your invoice. Pro's flat fee is a strategy, not a discount — the volume that makes it sustainable funds the provider reservations that compound the next savings round.

nRouter team
11 minRead →
LLM gateway buyer's guide 2026: routing, guardrails, evals, prompt management
Buyer's Guide

LLM gateway buyer's guide 2026: routing, guardrails, evals, prompt management

Eight axes that actually matter when picking an LLM gateway in 2026. Shortlist matrix across OpenRouter, Portkey, Helicone, nRouter. Decision tree by buyer profile, 90-minute evaluation.

nRouter team
14 minRead →
Cutting LLM costs: what published discounts actually save, and where the model is an assumption
Comparison

Cutting LLM costs: what published discounts actually save, and where the model is an assumption

A rebuilt savings model for a $40k/month LLM bill. Batch and prompt caching carry published rates; provider capacity reservations do not, so that lever is a labelled assumption with a stated range. Every line is separated into sourced and assumed.

nRouter team
14 minRead →
OpenRouter alternative: every enterprise LLM-gateway feature, free for life
Comparison

OpenRouter alternative: every enterprise LLM-gateway feature, free for life

Head-to-head comparison: nRouter vs OpenRouter, Portkey, Helicone. Guardrails, A/B tests, prompt management, evals, budgets — included on every plan. 4% pay-as-you-go, 0% on Pro. One base-URL switch.

nRouter team
9 minRead →
nRouter: One Key, Many Providers, a Cost on Every Call
Product

nRouter: One Key, Many Providers, a Cost on Every Call

nRouter is a managed LLM gateway. One OpenAI-compatible key reaches every model in your catalog, every response carries its exact cost, and guardrails, budgets, A/B tests and prompt management are on every plan, not gated.

nRouter team
11 minRead →
One Key Per Agent Role: Budgets That Stop a Runaway Agent
Product

One Key Per Agent Role: Budgets That Stop a Runaway Agent

An agent sends hundreds of calls without a human in the loop, so the loop bug you have not written yet is a billing event. Give each agent role its own key with its own rate ceiling and spend cap, enforced at the gateway rather than in the agent code that has the bug.

nRouter team
11 minRead →
Multi-Agent Cost Tracking: Attributing Spend Across an Agent Run
Engineering

Multi-Agent Cost Tracking: Attributing Spend Across an Agent Run

One user action becomes fifty model calls across four agent roles. Here is how to attribute that spend by role, by run and by step, reconcile it against the ledger, and put a ceiling under it that application code cannot bypass.

nRouter team
11 minRead →
LLM Routing for AI Agents: One Model Per Step, One Key
Engineering

LLM Routing for AI Agents: One Model Per Step, One Key

An agent run is not one request, it is eleven. Here is how to route each step to the model that fits it, keep the run alive when a provider fails mid-chain, and read one settled cost for the whole run instead of guessing.

nRouter team
11 minRead →