Switching AI Models in Production Isn’t Routing — Only 3 Parameters Are Spelled the Same
From the publisher’s feed, collected in the ZeroLabs newsroom.
Can you switch between AI models without changing your code? Only for the ~36% of request features all four major providers share — and in August 2026 Stripe agreed to pay over $7 billion for the gateway that promises otherwise.2,436 findings is a discovery number. Nothing in it is a remediation number.There is a moment in every AI project that nobody puts in the architecture diagram.It happens about three weeks after launch, when someone in a cost review asks the obvious question: can we just move this workload to the cheaper model? And everyone nods, because of course you can — you’re behind a router. One endpoint, one API key, 400 models. That was the whole point. Switching between AI models in production is supposed to be a config change.Then an engineer opens the code and finds reasoning_effort. And prompt_cache_key. And a response-format block written against one vendor's JSON Schema dialect. None of it has anywhere to go.On August 16, 2026, Bloomberg reported that Stripe had finalized a deal to acquire OpenRouter for more than $7 billion, and Stripe confirmed the agreement publicly on August 19, 2026 — a company that raised $113 million in May 2026 at a reported $1.3 billion valuation, meaning the price tag jumped roughly 5.4× in about three months. OpenRouter’s stated pitch, in its CEO’s own framing at that funding round, was “Stripe for AI”: one access point to many models, without becoming locked into one provider.So here is the thesis of this piece, stated plainly: switching between AI models in production is not a routing problem, and a gateway cannot solve it — routers standardize the intersection of provider APIs, and we measured that intersection at 13 of 36 request-level capabilities, or about 36%. Everything that actually differentiates a frontier model in 2026 — reasoning budgets, caching keys, server-side conversation state, structured-output dialects — lives in the 64% the router has to drop, translate, or pass through untouched.Key takeawaysAcross four official AI SDKs measured on August 19, 2026 (openai 7.5.0, @anthropic-ai/sdk 0.118.0, @google/genai 2.17.1, @mistralai/mistralai 2.6.3), exactly three top-level request fields are spelled identically in all four: model, temperature, tools.Those four SDKs expose 88 distinct top-level request field names between them for a single “generate a response” call.After hand-mapping synonyms into 36 canonical capabilities, only 13 (36.1%) exist in all four providers — and 7 exist in exactly one.Comparing just OpenAI and Anthropic: 16 shared capabilities, 14 OpenAI-only, 3 Anthropic-only. That asymmetry is why “swap the model string” quietly downgrades behaviour instead of failing loudly.Stripe’s reported $7B+ price is best read as a bet on metering and settlement, not portability — the router’s durable asset is knowing what every model costs and who is paying for it.TL;DR: In August 2026 the AI gateway layer was valued at more than $7 billion on the promise of model portability. We spent an evening measuring how portable models actually are by diffing the request schemas of the four biggest official SDKs, and the honest answer is: portable enough for a chat app, not portable enough for anything that uses the features you’re paying a premium for. Routers are genuinely useful — for one API key, failover, and spend visibility. They are not an abstraction layer, because there is no stable thing underneath to abstract. Build for the intersection deliberately, and price the difference before you promise anyone a one-line model swap.What did Stripe actually buy for $7 billion?It bought the place where AI spending is decided and settled.OpenRouter sits between an application and hundreds of models, offering a single access point so customers can pick a model per task based on need and budget. At its May 2026 Series B — $113 million, reported $1.3 billion valuation, with Sequoia, Andreessen Horowitz, Menlo Ventures and Alphabet’s CapitalG among its investors — the company said it had 8 million users globally and access to more than 400 models. The Wall Street Journal reported acquisition talks in July 2026; Bloomberg reported the finalized deal on August 16, 2026, at more than $7 billion.Read the asset list carefully and the payments logic is obvious. A router sees, in near-real-time, which models win which workloads, what they cost, and which developers cross from experimentation into production billing. That is a ledger. Stripe’s core competence is ledgers.What a router does not buy — and this is the part the “no lock-in” framing obscures — is a stable, shared definition of what a model request even looks like.Can you switch between AI models without changing your code?Only for the features all your candidate models happen to share, which is roughly a third of the request surface. A router will accept your call and return a valid response after a model swap. What it cannot do is preserve behaviour, because the parameters that shape behaviour are not standard across providers. Anything provider-specific is either silently dropped, silently defaulted, or passed through as an opaque blob that only works on the model you originally wrote it for. The swap succeeds; the output quality is a coin toss.That claim is easy to assert and rarely measured. So we measured it.Five rewrites, two matches — and the matches are being deprecated out from under you.How we measured itOn the evening of August 19, 2026, we pulled the four most widely used official model SDKs straight from the npm registry — openai@7.5.0, @anthropic-ai/sdk@0.118.0, @google/genai@2.17.1, and @mistralai/mistralai@2.6.3 — and parsed the TypeScript declaration files for the primary "create a completion" request type in each: ChatCompletionCreateParamsBase, MessageCreateParamsBase, GenerateContentParameters plus GenerateContentConfig, and ChatCompletionRequest. We counted only top-level fields, ignoring nested shapes. Then we built a hand-written alias map (for example, max_tokens, max_completion_tokens, maxOutputTokens and maxTokens all collapse to one concept: max output tokens) and counted how many canonical capabilities each provider exposes, and how many are universal. Sample: 4 SDKs, one endpoint each, published versions as of that date. The extraction script ships alongside this post's draft so the count is reproducible.Here is what came back.Raw top-level request fields, canonical capabilities, and capabilities unique to each SDK (versions as of 2026–08–19):openai 7.5.0 — chat.completions: 37 raw top-level fields, 30 canonical capabilities, 4 unique to it@anthropic-ai/sdk 0.118.0 — messages: 19 raw fields, 19 capabilities, 0 unique@google/genai 2.17.1 — generateContent: 37 raw fields, 27 capabilities, 2 unique@mistralai/mistralai 2.6.3 — chat.complete: 23 raw fields, 22 capabilities, 1 uniqueUnion across all four: 88 distinct raw field names, 36 canonical capabilities, 7 of which appear in exactly one providerThree numbers are worth sitting with.Three. That is how many field names are spelled identically across all four SDKs: model, temperature, tools. Out of 88. Every other knob requires translation.Thirteen of thirty-six. After mapping synonyms generously — treating stop, stop_sequences, and stopSequences as one thing; treating thinking, thinkingConfig, reasoning, and reasoning_effort as one thing — only 13 capabilities are present in all four providers: model, conversation input, temperature, top-p, max output tokens, stop sequences, tools, tool choice, structured output, reasoning control, prompt caching, service tier, and metadata. That is 36.1% of the union.Fourteen versus three. Going from OpenAI to Anthropic, 16 capabilities carry over, 14 have no Anthropic equivalent, and 3 Anthropic capabilities have no OpenAI equivalent. The asymmetry is the dangerous part: a “downgrade” swap drops more than it gains, and nothing in the call signature tells you that happened.There’s a bonus finding we didn’t go looking for. Inside a single vendor, OpenAI’s newer responses endpoint exposes 30 top-level fields, and its field set diverges substantially from the 37 on chat.completions — different names for input, different names for output limits, different state handling. Cross-vendor portability is the headline problem. Same-vendor, cross-endpoint portability is already a migration.Why 36% is a generous number, not a harsh oneWe want to be honest about where our own measurement flatters the routers.The alias map is a judgment call, and we wrote it to be charitable. The clearest example is structured output. It counts as “present in all four” — but response_format with a JSON Schema, output_config, responseSchema plus responseMimeType, and responseFormat are not the same feature. They differ in which JSON Schema keywords are honoured, whether the constraint is enforced at decode time or best-effort, and what happens on violation. A router can map the field name. It cannot map the guarantee. Count that one honestly and universality drops below a third.Two more limits on this measurement, named plainly:We measured the request surface only. Response shapes, streaming event types, error taxonomies, rate-limit headers, and tokenizer differences are all separate switching costs we did not count. The real number is worse than 36%.Top-level fields undercount the divergence. Tool-definition schemas, message content-part types, and multimodal payload formats are nested, and they differ more than the top level does.So treat 36.1% as a floor on portability, not an estimate. It is the most optimistic reading of the evidence.What does an AI gateway actually give you, then?Three real things, none of which are portability.A gateway gives you one credential and one bill instead of six vendor relationships, which is a genuine procurement win. It gives you failover — when a provider degrades, traffic moves without a deploy, and that alone justifies the hop for many teams. And it gives you spend telemetry across models, which is the thing almost nobody builds well in-house and the thing that made this asset worth billions to a payments company.What it does not give you is a stable contract. The router’s surface is a moving intersection of vendor APIs that change underneath it. When a provider ships a new reasoning control, the router either adds a pass-through field — reintroducing the vendor coupling it was supposed to remove — or lags until it can generalize. Both outcomes are normal. Neither is an abstraction.This is the same lesson we hit when we measured why a 4× price cut per token wasn’t a 4× cut per task: the pricing page is not the unit of comparison, and neither is the endpoint. The workload is.The steelman: routers are still the right defaultThe strongest version of the opposite argument deserves a fair hearing, because it is mostly correct.Most production AI features use a small, boring slice of the request surface. Messages, a temperature, a token cap, a tool list, maybe a JSON schema. That slice is inside the universal 13. If your app lives there, a router genuinely does let you swap models with a config change — and the operational upside (failover, one key, spend visibility, access to cheap models you’d never sign a contract for) is real money against a portability cost you will never pay.The router also makes the intersection more valuable over time. Every provider that wants router traffic has an incentive to match the common shape, which is why tools and tool_choice converged at all. Standardization is downstream of aggregation, and aggregators like this one are how it happens.Our disagreement is narrow and specific: the pitch is sold as portability, and the delivered good is procurement and telemetry. Buy it for what it is. Teams get hurt when they write a migration plan that assumes the first thing and inherit only the second — and it usually surfaces as an agent that returns HTTP 200 with a quietly worse answer, not as an outage.A checklist for teams that want the swap to actually workIf you want a one-line model change to be real, you have to build for it on purpose. Five steps, in the order that matters:Write down your intersection. List every provider-specific field your code sets today. If it isn’t in the universal 13, it’s a migration cost. Most teams have never seen this list.Put a translation layer in your own repo. One function that takes your intent (budget, effort, strictness) and emits provider-specific params. Routers translate what they can; you own what they can't.Pin the capability, not the model string. “Needs strict JSON Schema enforcement” is a requirement. “Needs model X” is an accident.Run an eval before the swap, not after. A model change that passes type checks and fails quality is the default outcome, and only a scored eval catches it. Behaviour is not covered by the compiler.Price the difference. When a cheaper model only needs a 4% win rate to pay for itself, the switching cost — not the token price — is what decides whether the move is worth it.Do these and the router becomes what it should be: a convenience on top of a decision you already understand, rather than a promise you find out was conditional during a cost review.Frequently asked questionsDoes an AI gateway like OpenRouter prevent vendor lock-in?Partially. It removes commercial lock-in — one key, one bill, instant access to hundreds of models — but not capability lock-in. Our August 19, 2026 measurement of four official SDKs found only 13 of 36 request capabilities (36.1%) present in all four providers. Code that uses provider-specific reasoning controls, caching keys, or structured-output dialects still has to be rewritten to move.Can I switch AI models by changing one line of code?Only if your request uses features common to both models. Across openai 7.5.0, @anthropic-ai/sdk 0.118.0, @google/genai 2.17.1 and @mistralai/mistralai 2.6.3, just three field names are spelled identically: model, temperature, and tools. Anything beyond that basic set is dropped or defaulted on swap, so the call still succeeds while output quality changes silently.Why did Stripe acquire OpenRouter for over $7 billion?Bloomberg reported the finalized deal on August 16, 2026, at more than $7 billion — about 5.4× the $1.3 billion valuation OpenRouter reported at its $113 million Series B in May 2026. The strategic asset is metering: a router with 8 million users and 400-plus models sees which models win which workloads and where AI spending settles, which is payments infrastructure rather than model infrastructure.Is an AI gateway slower or riskier than calling providers directly?It adds a network hop and a third party to your data path, which matters for latency-sensitive and compliance-sensitive workloads. The tradeoff is usually worth it for failover and spend visibility. The under-discussed risk is not latency but silent capability loss: a gateway that accepts a parameter your target model does not support may drop it without an error.Here is the question we’d genuinely like answered: which provider-specific parameter is currently in your production code that a router could not carry over — and did you find out before or after you tried to switch?Sources & referencesStripe newsroom, August 19, 2026 — Stripe agrees to acquire OpenRouter to help businesses optimize token routing and usageTechCrunch, August 16, 2026 — first report that Stripe would acquire AI gateway startup OpenRouter for $7B+Dataconomy, August 17, 2026 — Stripe acquires OpenRouter for more than $7 billion (reporting Bloomberg and Wall Street Journal coverage)TechCrunch, May 26, 2026 — OpenRouter more than doubles its valuation to $1.3B in a yearPrimary source for the measurement — the published openai package on npm and the @anthropic-ai/sdk package on npm, versions 7.5.0 and 0.118.0 respectively, parsed on 2026-08-19Related measurements from us: why a 4× token price cut wasn’t a 4× cut per task, what a cheaper model has to win to pay for itself, why usage-based pricing broke flat AI coding subscriptions, and the agent failures no dashboard catchesWritten by Decoding AI. We measure the AI infrastructure claims everyone repeats, and publish the numbers — including the ones that make our own argument weaker.Switching AI Models in Production Isn’t Routing — Only 3 Parameters Are Spelled the Same was originally published in Towards AI on Medium, where people are continuing the conversation by highlighting and responding to this story.