When the model name in an API is wrong

By InferTrail · · 5 minute read

A research team can write a careful evaluation, release its prompts and pin its client dependencies, then still lose the ability to reproduce its results. If the team contacted a proxy and recorded the model name from that proxy's API, the identity of the upstream model remains outside the repository. The proxy can decide which service handles the request. It can also change that decision over time while keeping the model identifier in the request and response the same.

In a 2026 study, Yage Zhang and colleagues identified 17 third-party APIs used in 187 academic papers. They audited three representative services against official endpoints across utility, safety and identity checks. The authors reported model-fingerprint verification failures in 45.83% of their tests and performance divergence up to 47.21%. Those rates describe the audited endpoints and test conditions, not all third-party APIs. A model alias alone gave the researchers no assurance that they had reached the advertised system. Real Money, Fake Models

A model identifier can be an instruction to the router

A client asking for a model sends a string that the first endpoint interprets. With a gateway, the string can be an alias. An internal team might intentionally give multiple versions one name so it can change routing centrally. A service with a disclosed fallback might route to a different provider when the normal route is unavailable. Open-source gateways document model mapping and routing facilities for these ordinary uses. New API project documentation

The same feature also makes an undisclosed substitution possible. If the storefront publishes one price and advertises one model, it can keep that outward-facing contract stable while forwarding requests elsewhere. A cheaper upstream might serve some requests. A service can return the advertised name in its response even when it rewrites the request upstream. The JSON tells the customer what the endpoint reports, without independently confirming which model ran.

Forum complaints preserved in InferTrail's research use terms such as 掺假, or adulteration, to describe suspected substitutions. Sellers can also advertise a route as “full strength” or emphasize that users will get the genuine model. What these claims show directly is that buyers value model identity and have a vocabulary for mistrusting it. A forum accusation against a particular service needs its own supporting traces or tests.

Why spot checks miss changes

Many models can write a short function or give a credible overview of a common topic. A response that looks impressive tells the buyer little about the exact system. Asking a model to name itself is also weak. An answer can reflect training data, instructions passed along by the gateway, or instructions attached by the upstream provider. The gateway can expose a friendly model label independently of the model's answer.

Detecting a change becomes more consequential on workflows that stress differences between models. A coding agent may depend on correct structured tool calls, consistent handling of long context, recovery from a tool error and stable stream semantics. A replacement model can answer ordinary questions well while breaking one of those contracts. A research team might observe a change in refusal rates or task accuracy and attribute it to its new prompting technique. A production user may interpret slower tool loops as a problem with the agent itself.

A more informative comparison uses repeated, controlled tests and an appropriate official reference. Keep the workload, model version and settings comparable when possible. Check multiple traits, including failure modes that are relevant to the application. A fingerprint mismatch of the kind measured in the Zhang study can support a finding that behavior is inconsistent with the expected endpoint. It may also reflect a version difference or a change in the surrounding configuration. Model attribution becomes stronger when independent routing evidence corroborates the behavioral result. Real Money, Fake Models

The transaction can fail even when the response succeeds

A buyer may pay for a premium model and receive a cheaper substitute. The debugging cost can be harder to spot. A team investigating regressions may spend hours comparing application changes while the service silently ships a different upstream. In research, an inaccurate model record can make comparisons unreliable even if every prompt and result remains available to future reviewers.

The 2026 paper also reported that four of the 17 identified services had ceased operations by the time of writing. That illustrates another part of reproducibility. An endpoint can disappear outright, and an experiment that depends on it can lose its reference condition. Retaining request parameters and results helps future readers reconstruct what was done. Retaining documented route information helps them determine whether an apparently similar experiment can use the same system. Real Money, Fake Models

An enterprise buyer can make the same distinction during an evaluation. The model field expresses the request. Independent provider documentation, route records and a contract governing substitution describe the commitment. Controlled behavior tests measure what the service appears to deliver. If the provider can change routes, the buyer can ask how that change is labeled and whether a required model can be pinned. This approach gives procurement and engineering something concrete to compare against later performance.

The timing of a test matters as well. A reseller can use several routes behind one alias and choose among them according to region, load or account capacity. A test run in the morning can therefore agree with the expected model while evening requests behave differently. Recording test times, documented provider routes where available and changes in performance helps distinguish a persistent mismatch from one that appears intermittently. Researchers can report the proportion of tests affected and the conditions under which they ran, which gives future readers a clearer picture of the reliability of the endpoint.

The same distinction applies to price research. A cheap rate advertised under a familiar model name establishes a cheap advertised rate for an alias. To calculate the discount on a specific upstream model, the comparison needs a defensible reason to believe the model is the same. A useful price comparison should say whether model identity was checked, how it was checked and when the tests ran.

Related research

All InferTrail articles