On this page12 sections
The difficult sentence is almost right. You want another model to try it, but first come another account, another key and a different API format. OpenRouter puts a common connection in front of those services so comparing the answers need not begin with rebuilding the plumbing.
OpenRouter is a hosted model gateway and marketplace. Its account and API provide access to models from several developers and providers, with web chat for trying them. It forwards a request to an eligible provider that runs the model. This is not software installed on your GPU to download and run those models locally.
That arrangement can help with exploration, model-configurable applications and multi-model software. It does not make the models equally capable or the providers interchangeable. It makes changing a choice less likely to require changing every connection around it.
Begin in chat to compare answers, or with one selected model and approved providers for an application. Establish quality, data handling and cost before adding backups. A large catalog is useful without turning the first experiment into a tour of every entry.
From a catalog to the connection an application uses
OpenRouter began in early 2023, co-founded by Alex Atallah and Louis Vichy. Atallah previously co-founded OpenSea, according to his biography; the original account identifies him as OpenRouter’s cofounder and CEO. The premise was that developers would want model choices to change rather than bind each application to one permanent supplier.
A catalog helps you find a candidate and try a prompt. A gateway carries that choice into software: the application uses one API address even when the selected model changes. OpenRouter combines the place where models are discovered with the connection used to call them.
A June 30, 2025 Orrick announcement describes $40 million in seed and Series A funding. Stripe announced an acquisition agreement on August 19, 2026; OpenRouter said its name, product and roadmap would remain. An acquisition agreement is not, by itself, evidence here that the acquisition completed.
The company’s founding account emphasizes a multi-model future. Whether today’s application benefits from that flexibility remains a practical question for its owner.
Who made the model, and who is answering this request?
Take Meta’s Llama. Meta develops it; another company may operate the endpoint that serves it; OpenRouter can route a request to that endpoint. Those are three different jobs:
- The model generates the answer. Its capabilities determine whether it can write, reason, interpret an image, or use the features your task needs.
- The provider runs a model endpoint, the service address that accepts requests. It contributes serving capacity, latency, pricing and data-handling terms.
- OpenRouter presents the common API and selects an eligible route under the applicable settings.
The model identifies the learned system, while the provider identifies who runs it for this request. Several endpoints can serve the same model with different capacity, price, delay and terms. The routing documentation explains the choices.
Provider fallback tries another eligible host for the same model. Model fallback tries a different model after an error. The latter can change the answer’s behavior as well as the chance of getting an answer, so the backup needs its own test.
Auto Router delegates the choice of model itself. That is a different experiment from selecting one model or a list of backups. Start with a route you understand; otherwise, when the answer changes, it may be difficult to tell which choice changed with it.
Try the maintenance notice before adding another dependency
Suppose a maintenance notice is accurate but hard to read. OpenRouter chat lets you give the same text to several models without opening an account for each. If one produces a useful version, its API route can make that choice available inside an application. Repeated comparisons are where a common connection may save work.
The test can be concrete: did the rewrite keep the maintenance time, maximum interruption and exception for old reports? Another pleasant answer is not automatically another notice you can send.
If your current model already handles the notice well, its provider’s direct API may suffice. If you only need to write the notice once, a finished assistant application may be simpler than managing model access. Each route below gives you a different amount of setup to own.
| Your main need | A reasonable starting point | What you take on |
|---|---|---|
| Try several hosted models through one account | OpenRouter chat or API | Model and provider choices, usage charges, and another service handling requests |
| Use one provider's capabilities directly | That provider's API | A separate integration and account for each additional provider |
| Get a ready-made personal assistant | An assistant application | The choices and workflow that application exposes |
Two further options involve operating infrastructure. LiteLLM supplies a common-interface SDK and a proxy you host, with deployment, updates and availability left to you. A local model runtime moves inference onto hardware you control, along with memory and serving work. Hosting a gateway yourself while it forwards remotely does not make inference local. The inference guide separates these decisions.
The gateway is also a dependency. Switching providers may handle one endpoint’s failure, but OpenRouter’s own availability remains on the path. Weigh the integration saved against that additional service.
Choose a model that keeps the exception
The notice’s important exception is that old exported reports remain available while some new reports may not load. Ask a candidate to preserve that distinction in a short rewrite. Use the catalog to find a text model and its exact ID, then check the context limit and current trial price.
This request needs text in and text out. A later screenshot needs image support; a fixed response shape or tool calls need those features too. Check both model and serving endpoint when the requirement arises. A long context window offers room for the material, not proof that every important sentence will be used.
Give two candidates identical text and instructions. If one changes “some customers” into everyone, reject it before comparing prices. Among the versions that preserve the conditions, compare the corrections still needed and the time each took.
Save the prompt and returned model and provider with the chosen answer. If behavior changes later, those details help locate whether the request, model or route changed. Replacing all three at once may help, but will not show which replacement mattered. The models API can gather current model information as the comparison grows.
Use chat for the first checkable comparison
Open web chat, sign in and review privacy and credit settings. Select a model, check its current price and use non-sensitive input. The chat interface is a convenient front end, not a promise of free inference.
Try this constructed notice, where the conditions are easy to compare with the answer:
Rewrite this notice in plain English, under 70 words.
Keep the time zone, the maximum interruption, and the exception.
Do not imply that all customers will lose access.
On Tuesday at 14:00 UTC, reporting will undergo maintenance.
Some customers may be unable to load new reports for up to 10 minutes.
Previously exported reports remain available.
Look for 14:00 UTC, an interruption of no more than ten minutes for some customers, and continued availability of previous exports. “Reporting will be unavailable” loses those distinctions. Readability matters, but not at the cost of telling customers the wrong thing.
Send the identical request to another model and compare the version you would actually use after corrections. The result concerns this task, not programming, every language or an overall model ranking.
If that meets the need, stay in chat. Use an API when this operation belongs in a script or application, checking explicit OpenRouter or compatible API support and routing controls. A model dropdown alone does not establish that compatibility.
Count the first attempt as well as the usable one
Each attempt adds input and output usage. Sending words and generating words can have different rates; a continuing conversation can resend earlier material. The FAQ covers credit purchases, separate fees and features such as reasoning, images, caching and tools that may add charge categories.
At invented prices of $1 per million input tokens and $2 per million output tokens, 2,000 input tokens plus 500 output tokens cost $0.003. Ten thousand identical calls cost $30 before other charges. These are teaching rates, not a quote for a model.
Suppose the first rewrite drops the exception and another call repairs it using the same token counts. The usable notice cost $0.006 across both attempts. Counting only the final answer hides half the charge. Different history or reply length changes the total, so retain actual usage for each attempt.
A lower token rate can cost more if the model needs more tries. Bringing your own provider key changes who bills underlying inference; it does not make inference free. Compare the whole effort of producing a usable notice, including your checking and correction time.
Set a small trial budget and inspect Activity after the first call. A team’s shared workspace pool governs combined spending; member and key limits constrain particular callers. Neither changes the token price. The spend guide describes these controls.
Follow the prompt to every recipient
Our invented notice contains no customer record. A private incident log is different. OpenRouter receives it and forwards it to an eligible provider. Removing a name may still leave tokens, account numbers or internal details. Identify both recipients and the permissions for this use before sending it.
A provider might promise not to train on the log while retaining a copy. That differs from retaining no prompt content. OpenRouter exposes data_collection: "deny" and zdr: true; the latter requires endpoints it classifies as zero-retention. Read the chosen endpoint’s provider policies and ZDR scope. Different endpoints from the same company can have different terms.
Copies can arise elsewhere as well. OpenRouter’s own controls distinguish prompt/output logging, improvement opt-ins, retained metadata and anonymous categorization, and your application may log the response afterward. ZDR on one route does not delete a copy another part of the workflow made. The documentation reviewed for the original article also flagged an October 27, 2026 planned update to screen even ZDR inference traffic for child sexual abuse material, with flagged content potentially retained for human review, reporting and legally required preservation. That stated exception belongs in the decision about what this route may receive; verify its current policy before use.
A tool that sends part of the log to search adds another recipient. If processing must remain in a particular region, check the regional service and its terms; a company’s headquarters does not locate the machine handling the request. Approval needs to follow the actual path the log takes.
Make the route visible in a small Python client
The next example asks for an incident handoff from a synthetic note. Model and permitted provider occupy separate fields. Price limits and ZDR requirements then determine whether a provider is eligible to answer. You can inspect those choices before making a call.
Use Python 3, an account, your own API key and approved credit. The standard-library client keeps the key on the calling machine, outside source control and browser code. Replace the placeholders with a real model ID and approved provider from the current catalog before attempting a charged request.
An endpoint can serve the selected model and still fail the policy. This example requires ZDR and permits at most $1 per million input tokens and $2 per million output tokens. If nothing meets all restrictions, no route is the correct result. The quickstart explains the connection; the following choices make the request deliberate.
The incident ends at rollback start, not recovery
In the constructed note, checkout releases at 14:02 UTC, timeouts rise at 14:06, pool waiting increases while database CPU stays at 35%, and rollback begins at 14:11. No later measurements are supplied. The assistant can organize the handoff, but it cannot finish the incident on the team’s behalf.
Read the request as the route this note will travel: selected model, allowed providers and output allowance. The excerpt omits full messages; the expandable client below is complete. Save it as handoff.py. Without --send, it prints a dry run; with it, it requests the key and makes the call.
{
"model": "YOUR_MODEL_ID",
"messages": [{"role": "user", "content": "..."}],
"max_completion_tokens": 500,
"provider": {
"only": ["YOUR_PROVIDER_SLUG"],
"allow_fallbacks": true,
"require_parameters": true,
"data_collection": "deny",
"zdr": true,
"sort": "price",
"max_price": {"prompt": 1, "completion": 2}
}
}
- Choose a text-generation model from the catalog and copy its exact ID. For this short exercise, a non-reasoning model keeps the completion allowance easier to interpret.
- Inspect the available providers and select the ones approved for your input. A base provider slug can match multiple endpoint variants; use the full endpoint slug when approval is narrower.
- Check current prices and policy compatibility. This example requires ZDR and permits at most $1 per million input tokens and $2 per million output tokens. Those deliberately limited settings may leave no eligible route. Choose a suitable combination or revise the limits intentionally before sending.
- Set the experiment's account or key budget, then inspect the request in dry-run mode.
Inspect the request locally before sending:
python3 handoff.py --model YOUR_MODEL_ID --provider YOUR_PROVIDER_SLUG
Check the model, restrictions and observations in the printed JSON. When ready for a charged call, add --send from an interactive terminal. The client stops if hidden key entry is unavailable. Add further --provider arguments only for approved providers.
The non-streaming request goes to /api/v1/chat/completions and prints available metadata before accepting answer text. On most providers, the 500-token max_completion_tokens allowance may include reasoning as well as visible output. Check the chosen model before increasing it; the request reference and reasoning guide explain the fields.
The client rejects capped, empty and malformed answers, with no automatic retries. Its 45-second socket timeout limits a blocked operation, not total production lifetime. The original local tests covered these failures without calling a model.
Complete dry-run Python client for handoff.py
"""Synthetic teaching example. Dry-run unless --send is specified."""
import argparse
import getpass
import json
import socket
import time
import urllib.error
import urllib.request
import warnings
INCIDENT = """Synthetic incident, all times UTC:
14:02 checkout release r42 finished.
14:06 checkout timeout rate rose from 0.2% to 7%.
14:08 database CPU remained at 35%; connection-pool wait rose.
14:11 responder began rollback. No post-rollback metrics supplied.
No customer count, traces, or root-cause analysis supplied.
"""
def make_request(model, providers):
return {
"model": model,
"stream": False,
"max_completion_tokens": 500,
"messages": [
{"role": "system", "content": (
"Write an incident handoff in three sections: Observed facts, "
"Uncertainty, Next checks. Use only the supplied evidence. "
"Keep timestamps. Do not claim a root cause or recovery "
"without evidence. Do not execute or suggest automatic changes."
)},
{"role": "user", "content": INCIDENT},
],
"provider": {
"only": providers,
"allow_fallbacks": True,
"require_parameters": True,
"data_collection": "deny",
"zdr": True,
"sort": "price",
"max_price": {"prompt": 1, "completion": 2},
},
}
def extract_answer(data):
if not isinstance(data, dict):
raise ValueError("Expected a response object")
if data.get("error"):
raise ValueError("API returned an error object")
choices = data.get("choices")
if not isinstance(choices, list) or not choices:
raise ValueError("Missing choices")
choice = choices[0]
if not isinstance(choice, dict) or not isinstance(choice.get("message"), dict):
raise ValueError("Malformed choice")
if choice.get("finish_reason") != "stop":
raise ValueError("Incomplete or unexpected finish; review before use")
content = choice["message"].get("content")
if not isinstance(content, str) or not content.strip():
raise ValueError("No usable text returned")
return content
def main():
parser = argparse.ArgumentParser()
parser.add_argument("--model", required=True)
parser.add_argument("--provider", action="append", required=True)
parser.add_argument("--send", action="store_true")
args = parser.parse_args()
body = make_request(args.model, args.provider)
if not args.send:
print(json.dumps(body, indent=2))
return
try:
with warnings.catch_warnings():
warnings.simplefilter("error", getpass.GetPassWarning)
key = getpass.getpass("OpenRouter API key (hidden): ")
except getpass.GetPassWarning:
raise SystemExit("Hidden input unavailable; use an interactive terminal")
request = urllib.request.Request(
"https://openrouter.ai/api/v1/chat/completions",
data=json.dumps(body).encode(),
headers={"Authorization": "Bearer " + key,
"Content-Type": "application/json"},
method="POST",
)
started = time.monotonic()
try:
with urllib.request.urlopen(request, timeout=45) as response:
data = json.load(response)
except urllib.error.HTTPError as error:
raise SystemExit(f"HTTP {error.code}; inspect Activity before retrying")
except (urllib.error.URLError, socket.timeout, TimeoutError):
raise SystemExit("Transport failure; remote completion is unknown")
except (ValueError, KeyError, IndexError, TypeError):
raise SystemExit("Unusable response; inspect Activity before retrying")
if not isinstance(data, dict):
raise SystemExit("Malformed response; inspect Activity before retrying")
print(json.dumps({"id": data.get("id"), "model": data.get("model"),
"usage": data.get("usage"),
"elapsed_seconds": round(time.monotonic()-started, 2)},
indent=2))
try:
answer = extract_answer(data)
except ValueError as error:
raise SystemExit(str(error) + "; metadata retained above")
print("\nDRAFT FOR HUMAN REVIEW\n" + answer)
if __name__ == "__main__":
main()
Read the restrictions together, not one at a time
Suppose the named provider is unavailable. With only, providers outside the list remain ineligible even when fallbacks are enabled. With order, the named provider is a preference and permitted fallback may go elsewhere. Price sorting ranks eligible endpoints only; require_parameters excludes endpoints unable to support the requested parameters.
An endpoint above the example’s token-price limits is also excluded. Those max_price limits do not cap call count or total task spending. If no route survives all restrictions, inspect which condition excluded it before changing the policy. The routing reference explains how the settings combine.
If no permitted route works, show the original incident observations. The responder loses drafting help but keeps the facts. Filling an output box is not a reason to send those facts silently to an unapproved destination.
Read the handoff beside the observations
A useful answer keeps timestamps, separates observations from possible causes and asks for post-rollback measurements, pool waits or relevant traces. Recovery remains unknown. These are acceptance criteria for the synthetic input, not a captured model result.
Reject an invented customer count, a database-health conclusion drawn solely from steady CPU or recovery inferred from rollback beginning. Keeping the note beside the fluent draft makes those unsupported additions easier to spot.
The generation ID connects the local result to accounting. Inspect Activity or the metadata endpoint for the actual provider, model, usage and cost. The route requested and the route that served the answer are separate facts.
After a timeout, remote completion can remain unknown; inspect Activity before repeating. For truncation, read finish state and usage instead of resending blindly. The error guide describes failures, while the application remains responsible for retry decisions.
Add a backup after it has earned its place
After representative tests, another acceptable model may be useful as a backup. Replace the single model field with a priority-ordered models array:
"models": ["YOUR_PRIMARY_MODEL_ID", "YOUR_APPROVED_FALLBACK_MODEL_ID"]
Fallback handles errors such as rate limits, availability and context length. It does not react to a completed answer that invents recovery. The response identifies the model used, whose pricing applies, and restrictions must allow its provider. See fallback behavior.
Test each model first. A backup that supplies missing recovery facts can improve API success while making the application worse. A single-model baseline gives you something concrete to compare it with.
Return to the maintenance notice. If another model makes it easier to read while keeping time, duration and exception intact, there is a reason to explore further. OpenRouter earns its additional layer when choosing differently saves more work than routing adds. One understood route and one answer you can judge are enough to begin.
Sources & context
Sources linked in this article. Read alongside the author’s analysis; a citation does not independently verify a publisher’s claims.
- began in early 2023openrouter.ai
- own biographyalexatallah.com
- June 30, 2025 announcement by its legal adviser, Orrickwww.orrick.com
- Stripe announced an agreement to acquire OpenRouterstripe.com
- own account of its foundingopenrouter.ai
- provider-routing documentationopenrouter.ai
- Auto Routeropenrouter.ai
- LiteLLMdocs.litellm.ai
- model catalogopenrouter.ai
- models APIopenrouter.ai
- web chatopenrouter.ai
- billing FAQopenrouter.ai
- spend-control guideopenrouter.ai
- provider policy explanationopenrouter.ai
- ZDR scopeopenrouter.ai
- data-collection documentationopenrouter.ai
- regional serviceopenrouter.ai
- quickstartopenrouter.ai
- request referenceopenrouter.ai
- reasoning guideopenrouter.ai
- generation metadata endpointopenrouter.ai
- error guideopenrouter.ai
- model fallback behavioropenrouter.ai
