Normal no failure
Primary answers.
Press "Run comparison".
Watch one request three ways: normal success, a primary-provider failure with no fallback, and the same failure with a cross-provider fallback set through nrouter_fallbacks. Then see why a stream that has already started is not replayed. Every failure, timing, attempt and cost on this page is simulated in your browser. None of it is a vendor benchmark or a real outage.
/v1/chat/completionsAll three lanes share one time axis, so waiting time is visible. Playback is sped up; the numbers are not.
Primary answers.
Press "Run comparison".
Primary fails; nothing else is configured.
Press "Run comparison".
Same failure, with nrouter_fallbacks.
Press "Run comparison".
Legend: grey = gateway, hatched = waiting for a first byte, green = primary output, blue = fallback output, red = failed attempt.
Same primary and the same fallback list, but with "stream": true. This time the provider fails after the first chunks have reached your app.
x-nr-request-id.| Upstream outcome | With a fallback configured |
|---|---|
| 429, 503, Anthropic 529 | next fallback |
| 401 / 404 from a misconfigured provider deployment | next fallback |
| Connection never opened, or no first byte in time | next fallback |
| 500, 502, 504 | returned as-is |
| Any error after response bytes arrive | returned as-is |
Source: nRouter Router Settings and Smart Routing. Up to 4 fallbacks, at most 3 provider calls per request by default.
According to nRouter, a request that fails over before any output holds credit once and settles once, at the list price of the model that answered. The attempts it failed over from cost $0.
In the fallback lane above, the modeled cost is the fallback model's list price for the same illustrative token counts. In practice, token counts differ between models (different tokenizers and output lengths), so the real settled cost will differ too. Read it from x-nr-request-cost (non-streamed) or from the request logs.
Sources: Smart Routing FAQ, Response Headers.
Same request as the fallback lane. nrouter_fallbacks replaces your saved fallback list for this one call. Claude models are served on /v1/messages rather than /v1/chat/completions, so on this endpoint the cross-provider fallback is a Gemini model.
x-nr-model: the catalog model that served the requestx-nr-routing: direct or fallback:<n>x-nr-attempts: total provider calls attemptedx-nr-request-cost and x-nr-cost-status: settled list-price cost (no cost header on streamed responses)x-nr-request-id: to look the request up in logsx-nr-latency-ms: edge arrival until response headers are readyReference: nRouter Response Headers.
Create a key, send a first request, and read the headers above on your own traffic.
A staff-only server-side smoke test ran once against the real nRouter API on 2026-11-26 with a restricted, low-limit key. It was a healthy request only, with no injected failure. The key is never shown on or sent to this page.
| Request | /v1/messages, anthropic/claude-haiku-4-5, max 16 tokens |
|---|---|
| Result | 200, x-nr-routing: direct, x-nr-attempts: 1 |
| Cost header | x-nr-request-cost: 0.000032, x-nr-cost-status: exact |
| Endpoint check | Asking for the same Claude model on /v1/chat/completions returned 404 "served on /v1/messages". That is why the demo's cross-provider fallback is Gemini. |
The test key did not allow OpenAI models, so the exact OpenAI-to-Gemini pair shown here was checked against the public catalog, not with a live call. One call does not make a benchmark.
This page records first-party aggregate counters only: a daily count per event name (page view, comparison run per failure type, mid-stream run, demo complete, snippet copied, quickstart clicked). It sets no cookies, has no user or session ids, stores no IP or user agent, and sends no third-party tags. There is no prompt input, so no prompt can be collected. Browsers that send Do Not Track or Global Privacy Control send nothing. "Demo complete" means the comparison and the mid-stream scenario were both run in the same page view.
x-nr-request-id, joined to the account's first-touch source. It needs no client-side tracking.nrouter_fallbacks.Steps 2 to 5 need nRouter's own product data. This demo has no access to it and makes no claims about it.