Skip to navigation

Shadow APIs and Fake Models: The CISPA Study Explained

In short: Shadow APIs and fake models explained: what the CISPA study (arXiv 2603.01919) tested and found, plus a table of checks you can run on any LLM endpoint.

Published 30 min read
On this page

The CISPA paper “Real Money, Fake Models” audited three shadow APIs against the official services they claim to resell, and its headline numbers travel without their context. This post walks through it in plain language: who tested what, which figures are accuracy points and which are shares of tests, and what each result does not prove. You get three things the usual summaries skip. A table rebuilt from the paper’s own fingerprint results that shows, endpoint by endpoint, what each claimed model matched and how the 45.83% is counted. A table that pairs every finding with what it can and cannot support. And a test table that turns the paper’s method into checks you can run for $0 on any endpoint, ours included. One AI API Key publishes this post, so read the section on how we line up with that in mind.

What is a shadow API, in the paper’s own terms?

The authors, Yage Zhang, Yukun Jiang, Zeyuan Chen, Michael Backes, Xinyue Shen and Yang Zhang, work at the CISPA Helmholtz Center for Information Security and the University of Waterloo. They coined the term shadow API to describe a third-party service that gives indirect access to frontier proprietary models and works in regions where the official provider’s access controls apply. The first version appeared on arXiv on 2 March 2026, the page now shows version 3 revised on 21 September 2026, and the comments field says it was accepted by the ACM Conference on Computer and Communications Security (CCS) 2026. Both the abstract page and the full text are open.

The definition has a narrow edge that matters for everything below. A service counts as a shadow API only when it also sells access using credentials or credits issued by an intermediate provider and does not publicly document its upstream route. The paper excludes provider-operated endpoints, publicly documented distribution channels such as Azure OpenAI, routing platforms that disclose their upstream routing (it names OpenRouter as an example), and self-hosted relays that forward your own provider key. So the paper is not an indictment of every gateway. It is a study of one kind of seller, defined by what the seller leaves undocumented.

The authors give a seven-row contrast between a documented channel and a shadow API. We reproduce it because it doubles as a review form for any provider you are considering.

Criterion Documented channel Shadow API, per the paper
Upstream route Publicly documented Not documented
Credential source Your own upstream key The intermediate provider’s key
Legal entity Verifiable corporation Typically an individual
Registration identifier Business or ICP registry Rarely disclosed
Legal documentation Terms, SLA, privacy policy Often absent
Regional compliance Authorized regions only Bypasses restrictions
Payment accountability Corporate invoicing Individual Alipay, WeChat or USDT

The framing is also careful in a way that gets lost in retellings. The authors say they do not treat using these services as misconduct in itself, because official APIs can be expensive or unavailable in some countries and researchers face budget limits. Their concern is narrower: results get attributed to a named model when nobody can verify which model produced them. They call the property they care about model provenance integrity, the binding between the model name you buy and the backend that answers.

What did the paper find about the market itself?

Before auditing anything, the team counted who uses these services. They started from accepted papers at ICLR 2024 (2,260 papers, 1,108 with code) and ACL 2024 (1,923 papers, 1,005 with code). That is 2,113 papers with code. Of those, 92 projects used LLM APIs through their GitHub repositories, and 21 papers used at least one shadow API endpoint. The team then searched GitHub for other repositories calling the same endpoint URLs and repeated until no new ones appeared. The result was 17 shadow APIs appearing in 187 papers, of which 116 were accepted at peer-reviewed conferences or journals. By 6 December 2025 the most widely used one alone had more than 5,900 citations and more than 58,000 GitHub stars across associated repositories.

Then the team read what each provider disclosed. Fifteen of the 17 were run by individuals without transparent identity information, and only one had a valid corporate registration, an Internet Content Provider filing in China. Eleven were built on open-source model aggregation and redistribution software, mainly OneAPI and its derivative NewAPI. Two services had stopped operating during the measurements and four had stopped by the time of writing.

The 17 shadow APIs: what the audit found (count of providers)

  • Run by individuals, identity not transparent15 of 17
  • Built on OneAPI or NewAPI software11 of 17
  • Ceased operations by time of writing4 of 17
  • Valid corporate registration (ICP filing)1 of 17
Counts from Section 3.2 of the paper. The categories overlap, so the bars do not add up to 17. Running on OneAPI or NewAPI is a tool choice, and it says nothing about honesty by itself.

The software point deserves a careful reading. Both new-api and one-api are public open-source repositories that anyone can deploy. The paper notes that these tools make key management, resale, request routing and automatic retries easy, which also makes resale and abuse easy. It does not say that using such software is a red flag. Plenty of honest operators run open-source routing software, and a dishonest one can write its own. The meaningful signals are the table rows above: who runs it, what they document and how you can reach them.

One more market fact explains the study’s tone. Four providers closing within months is a risk that has nothing to do with model identity. A prepaid balance at a provider that disappears is lost whatever the provider served, which is why our guides on prepaid credits and on which gateway to pick treat shutdown as its own line item.

How did the team build the audit?

The design is simple, and that is its strength. The same prompts went to the official API and to each shadow endpoint, with the same decoding settings, and the team compared the answers. Every experiment ran three times and results were averaged. The official endpoint was always queried directly, from an authorized region. The team picked three shadow APIs, labelled A, E and H, because they were popular by citations and GitHub stars, publicly accessible and covered all three model families being tested. They state that no service was included or excluded based on what it returned.

How the audit was built

Find shadow APIs17 found through papers and GitHubPick three to auditA, E and H: popular, broad model coverSame prompts, two endpointsofficial API vs shadow API, 3 runsScore utility and safetymaths, science, medicine, law, jailbreaksFingerprint the backendLLMmap and Model Equality Testing
The shape of the study as described in Sections 3 to 5. The last step is where the paper moves from 'the answers differ' to 'the backend looks like a different model'.

The models came from the November 2025 token-usage ranking on the OpenRouter public leaderboard. Family F-A was OpenAI (GPT-4o-mini, GPT-5, GPT-5-mini), F-B was Google (Gemini-2.0-flash, Gemini-2.5-flash, Gemini-2.5-pro) and F-C was DeepSeek (DeepSeek-Chat, DeepSeek-Reasoner). That makes eight models across three families, for 24 endpoint-and-model pairs over the three providers. For the sensitive-domain and safety tests the team used one model per family: GPT-5-mini, Gemini-2.5-flash and DeepSeek-Chat.

The benchmarks were AIME 2025 (competition mathematics), GPQA Diamond (PhD-level science questions), MedQA (medical licensing exam questions) and the SCALR task of LegalBench (legal reasoning). For safety they used JailbreakBench and a 50-item AdvBench subset, with four published attack methods, and scored harmfulness with a judge built on GPT-4o-mini and the StrongREJECT rubric. The authors say they did not release successful harmful outputs or the adversarial prompts, and we do not reproduce any here.

A point worth underlining: the paper measures divergence from the official endpoint under identical settings, not absolute accuracy. An endpoint that faithfully serves a model should track the official score whether that score is high or low.

How much worse were the answers?

Not uniformly, and the spread is the finding. Shadow API E tracked the official endpoints most closely in science, with an average accuracy drop of 2.64%, and even beat the official API by 1.18% on GPT-5-mini for GPQA, which the authors attribute to evaluation or decoding noise. Shadow APIs A and H showed average gaps of 9.81% and 6.46% on the science tasks. The sensitive domains were worse for all three.

Measure (as reported in the paper) Shadow A Shadow E Shadow H
Average accuracy drop, science (AIME 2025, GPQA) 9.81% 2.64% 6.46%
Average accuracy drop, sensitive (MedQA, LegalBench) 16.96% 15.71% 14.75%
Fingerprint failures, of 8 endpoints 5 2 4

The fingerprint row is our own count of wrong top matches in the paper’s Table 3, which the next section shows. The largest single drop is the one that made headlines. On MedQA, Gemini-2.5-flash scored 83.82% through the official API and an average of 36.95% across the three shadow APIs. That is a gap of 83.82 minus 36.95, or 46.87 points, and the paper reports the range across providers as 46.51 to 47.21. On LegalBench the same model lagged by 40.10 to 42.73 points at every shadow API.

Shadow API A on that MedQA run lets us check the arithmetic from the paper’s Table 15. Of 1,273 questions, both endpoints were right on 448, both wrong on 184, only the official API was right on 619 and only the shadow was right on 22. The official API was therefore right on 448 plus 619, or 1,067 questions, which is 83.82%. The shadow was right on 448 plus 22, or 470, which is 36.92%. Agreement is (448 plus 184) over 1,273, or 49.65%, and that matches the consistency figure the paper prints.

Gemini-2.5-flash on MedQA: share of 1,273 questions answered correctly

  • Official API83.82%1,067 of 1,273
  • Shadow API A36.92%470 of 1,273, derived from the paper's Table 15
  • Average of A, E and H36.95%
The official figures and the shadow average are printed in the paper; the Shadow A bar is our arithmetic on its Table 15. All three shadow providers landed within a point of each other, a pattern the authors call informative but say cannot be explained from performance data alone.

Two more patterns are worth knowing. Reasoning models suffered most: on AIME 2025, shadow API A’s accuracy trailed the official score by 40.00 points for Gemini-2.5-pro and 38.89 points for DeepSeek-Reasoner, while the same endpoints did comparably on non-reasoning work. And per-question agreement can be bad even where the headline gap looks mild. For GPT-5-mini and DeepSeek-Chat the shadow endpoints agreed with the official answer on 80.56% to 96.70% of questions, so a few points of average accuracy can hide a lot of individual answers that changed. The paper’s own example is a MedQA question about a patient in active labor with major bleeding: the official API answered correctly in all three runs and all three shadow endpoints answered with a different option in all three.

Did the safety behavior change too?

Yes, in both directions, which is the awkward part. The team scored harmfulness on a scale where a higher number means a more harmful answer, using the judge described above. For GPT-5-mini under the Base64 attack on JailbreakBench, shadow API A scored 0.04 against an official 0.02. On AdvBench the same pairing was 0.05 against 0.01, five times higher. For Gemini-2.5-flash under the FlipAttack method, the official API scored 0.90 on JailbreakBench while the shadow endpoints sat at about 0.67 and 0.68, and 0.95 against about 0.82 on AdvBench.

Case Official API Shadow endpoint
GPT-5-mini, Base64, JailbreakBench 0.02 0.04 (API A)
GPT-5-mini, Base64, AdvBench 0.01 0.05 (API A)
Gemini-2.5-flash, FlipAttack, JailbreakBench 0.90 about 0.67 to 0.68
Gemini-2.5-flash, FlipAttack, AdvBench 0.95 about 0.82

The authors draw a narrow conclusion that is easy to overread. A lower harmfulness score from a shadow endpoint might understate the risk of the official model, and a higher one might overstate an attack’s success. Either way a safety paper that ran its tests through an unverified endpoint may be describing a backend other than the one it names. That is a reproducibility problem for researchers. For an everyday developer the same finding says something simpler: refusals, tone and guardrails are part of what you buy, and they can differ at a middleman. Our acceptable use policy applies to every request we serve, whichever model answers.

What did the fingerprint tests show?

Behavior differences show that an endpoint does not reproduce the official baseline. They do not say why. For identity the team used LLMmap, an active fingerprinting method by Pasquini and colleagues that sends crafted queries and compares the replies to a reference database. The LLMmap authors report identifying 42 model versions with over 95% accuracy from as few as 8 interactions. The CISPA team extended its model list, ran the default query strategy and measured the Euclidean distance between each endpoint’s fingerprint and the reference.

Across the 24 endpoints, 45.83% failed fingerprint verification, which is 11 of 24, and another 12.50%, or 3 of 24, showed large distance deviations. We rebuilt both counts from the paper’s Table 3. A failure is a cell where the top matched model is not the claimed one. The deviation rule is the Table 3 caption’s: a distance more than 1.25 times the official baseline for the same model.

Claimed model Shadow API Fingerprint matched
GPT-4o-mini A gpt-4o-2024-05-13
GPT-4o-mini H Qwen2.5-7B
GPT-5 A glm-4-9b-chat
GPT-5 E glm-4-9b-chat
GPT-5-mini H gpt-5-2025-08-07
Gemini-2.0-flash A gemini-2.5-flash
Gemini-2.0-flash E gemini-2.5-flash
DeepSeek-Chat A deepseek-v3-0324
DeepSeek-Chat H gemma-2-9b-it
DeepSeek-Reasoner A deepseek-chat
DeepSeek-Reasoner H deepseek-chat

Eleven rows, which is 11 over 24, or 45.83%. The three distance deviations are GPT-5-mini through A (18.63 against an official 14.57, a ratio of 1.28), Gemini-2.5-flash through A (19.78 against 15.19, 1.30) and DeepSeek-Chat through E (21.28 against 11.83, 1.80). Together that is 14 of 24 endpoints with something to explain, and 10 that passed cleanly, including all of Gemini-2.5-pro.

The authors read the 11 rows as two patterns. First, premium proprietary models behaved like cheaper open-weight ones (GPT-4o-mini toward Qwen2.5-7B, GPT-5 toward GLM-4 variants). Second, reasoning models were served as non-reasoning ones: DeepSeek-Reasoner through A and H matched DeepSeek-Chat, and Gemini-2.0-flash was often matched to Gemini-2.5-flash. They are careful about the wording. A fingerprint match to a specific alternative model supports substitution but does not prove it, because black-box fingerprinting is probabilistic. They use “deceptive model claim” only for endpoints sold under one model identity whose fingerprint points to another, and they say the term does not establish what the operator intended.

Why does the same endpoint fail some checks and pass others?

Because the checks measure different things, and the paper shows this with two awkward cases. First, GPT-5 through providers A and E fingerprinted as a 9-billion-parameter GLM model, yet the AIME 2025 accuracy fell only 2.22 to 7.78 points. A small model should fall much further. The authors suggest a substituted backend can track the claimed model on standard reference tasks and diverge mainly under demanding reasoning. They checked that idea: Qwen2.5-7B scored 3.33% on AIME 2025 and 42.93% on GPQA, against 14.44% and 44.61% for the official GPT-4o-mini. Near parity on GPQA, an 11.11-point gap on the maths.

The second case runs the other way. Gemini-2.5-flash fingerprinted correctly at all three providers, with distances close to official, yet accuracy in the sensitive domains fell by roughly 47 points at all three. The paper offers a conjecture, flagged as a conjecture: the providers may serve the real model with its thinking budget disabled or cut, which leaves the fingerprint intact and breaks hard questions. They also list other ways a provider can serve the claimed model and still degrade output, including misconfigured inference parameters, context truncation and silent prompt preprocessing. The lesson in their words is that identity checks alone cannot certify behavior, and benchmarking has to complement them.

The regression across the 24 endpoints supports the same point. The fit is weak (R squared of 0.15), identity mismatch alone was not a reliable predictor of accuracy drop, and price ratio had no predictive power at all (coefficient of minus 1.447, p of 0.490), including among endpoints that passed the fingerprint. In plain terms, paying more at a shadow API did not buy more fidelity. The reverse is not proven either, since the paper’s sample is 24 endpoints at three providers.

What did the pricing patterns look like?

The paper tabulates three pricing patterns where the advertised model and the fingerprinted backend disagreed.

Pattern Example Price ratio vs official What the fingerprint matched
Information premium API A, Gemini-2.0-flash 7.10 and 7.25 times gemini-2.5-flash
Discount substitution API A, GPT-5 1.00 times glm-4-9b-chat
Resale markup API H, GPT-4o-mini 1.09 times Qwen2.5-7B

Read the table for what it says about price. In the first row the seller charged more than seven times the official rate for a model that matched a newer, cheaper one. In the second the seller charged the official rate for a small open-weight match. In the third a small surcharge sat on a different backend. None of these is a bargain-bin pattern, which is why a cheap price is a poor way to sort sellers into good and bad. Our guide to flat monthly prices that cannot add up covers the opposite warning sign, where the arithmetic itself rules the offer out.

The paper also prints a historical cost snapshot for GPT-5 on GPQA: $14.84 of official value, against $5.70, $5.35 and $7.77 of equivalent value at the three shadow APIs, a shortfall of $7.07 to $9.49. The authors label this descriptive context and do not rely on it for their conclusions, and neither do we.

What did latency and token counts reveal?

For each of the 24 endpoints on two benchmarks, 48 endpoint-benchmark pairs in all, the team compared the standard deviation of latency and total token counts against the official API. Latency was unstable: 64.58% of pairs (31 of 48) had a standard deviation more than 1.2 times the official one, and 35.42% (17 of 48) more than twice. Every case above twice official was in the Gemini or DeepSeek families, none in GPT. Token counts were more even but 20.83% of pairs (10 of 48) exceeded twice the official spread, again in Gemini and DeepSeek, while another 20.83% fell below 0.8, mostly GPT endpoints on AIME. The authors read that second group as consistent with truncation or fixed-length response caps.

This is the lowest-effort evidence to gather yourself, because every OpenAI-compatible reply carries a usage object and a model field, as the chat completion object reference shows. If the numbers do not match a tokenizer count you run locally, or spike without a reason, something between you and the model is doing extra work. Our guide to auditing billed tokens shows how to separate legitimate overhead, such as system prompts and tool schemas, from the kind that should worry you.

How reliable were the detection tools themselves?

The team did not simply trust LLMmap. It also ran Model Equality Testing, or MET, from Gao, Liang and Guestrin, a two-sample test of whether an endpoint’s outputs come from the same distribution as the official model’s, at a 0.05 significance level. Then it built a controlled testbed of six endpoints whose true backend was known: three honest, and three substituting in three ways (GPT-5 served by GLM-4-9B, Gemini-2.0-flash served by Gemini-2.5-flash, DeepSeek-Reasoner served by DeepSeek-Chat). That gave a sanity check on false alarms and misses.

Method Overall accuracy False positive rate False negative rate
LLMmap 96.00% 3.00% 5.00%
MET 88.33% 4.67% 18.67%

A false positive here is an honest endpoint flagged, and a false negative is a substituting one waved through. Both methods flagged all three substitution modes. MET’s 18.67% miss rate is the number to remember: it measures distribution shift, so it can miss a swap to a close relative such as a neighboring version in the same family. On production endpoints MET broadly agreed with the fingerprints. The one exception was Gemini-2.5-pro, where MET did not reject on AIME 2025 for any provider, and the authors warn that this must not be read as certifying faithful serving.

Putting the evidence together, the paper rates each of the 24 endpoints on four flags (fingerprint, MET, performance, metadata). Eleven endpoints (45.83%) had three or more flags and were rated High risk, nine (37.50%) Medium and four (16.67%) Low. The distribution differs sharply by provider.

Endpoints rated High risk, out of 8 per provider

  • Shadow API A5 of 83 Medium, 0 Low
  • Shadow API H4 of 83 Medium, 1 Low
  • Shadow API E2 of 83 Medium, 3 Low
Paper Table 10. Three of the four Low-risk endpoints belong to provider E, which is also the provider whose average accuracy drop in science was smallest. The three providers were picked for popularity and access, so these rates describe those three and not the market.

What the study does not show

The authors are unusually clear about their limits, and a fair summary has to repeat them. The table pairs each headline finding with what it supports and what it does not.

Finding What it supports What it does not prove
45.83% of fingerprint tests failed Those endpoints did not behave like the claimed model under this method That the operator meant to deceive, or what the real backend was
Accuracy fell by up to 47.21 points The endpoint does not reproduce the official score on that benchmark That every model at that provider is degraded
Latency spread above 2 times official in 35.42% of pairs Routing or upstream instability at those endpoints A cause, since retries and load look the same
Price ratio did not predict accuracy drop Price is a poor stand-in for fidelity in this sample That price never matters, from a sample of 24 endpoints
MET passed Gemini-2.5-pro on AIME 2025 No distribution difference was visible on that sample That the endpoint serves the real model
4 of 17 providers closed Market volatility is real Anything about identity or honesty
  • Only three providers were audited in depth. The paper says it does not generalize endpoint-level results to the other 14 services.
  • It is a snapshot. Checks ran from September to December 2025. Providers switch upstreams without notice, so a pass in one window does not establish later consistency.
  • Detection is probabilistic. Passing both tests indicates absence of evidence of substitution, not authenticity. A faithful surrogate could in principle evade both tests.
  • It cannot name the cause. Differences in utility, safety, latency or metadata show that an endpoint does not reproduce the baseline, and do not identify the backend or the reason. Quantization, distillation, fine-tuning and version drift all look alike from outside.
  • Official APIs can change too. Proprietary providers may fine-tune without telling anyone, which the team mitigated by running three runs per experiment.
  • It says nothing about intent. The four provider closures are reported as market developments and not attributed to the authors’ disclosure to official providers.

It also covers a particular corner of the market: frontier proprietary models sold through indirect credentials, mostly in regions with limited access. Whether any given model id on a gateway belongs in that corner depends on the id and on how the gateway sources it, which is exactly why the checks in the next sections matter more than the label. Our guide to model verification and the risk guide for cheap resellers cover how those checks apply beyond this one study.

What does the paper tell you to do?

The authors’ bottom line is blunt: the fundamental fix is direct official access, wherever it is available. Where access is not available, they say to treat a shadow endpoint as an untrusted instrument: verified before use, monitored during use, disclosed at publication. They propose a four-stage auditor protocol where any flag means avoid the endpoint.

  1. Send at least 24 LLMmap probes and flag the endpoint if the distance exceeds 1.25 times the official baseline, or if the top match is not the claimed model.
  2. Run a Model Equality Test with a preset significance level such as 0.05, and flag a rejection.
  3. Run at least three independent sessions on a held-out benchmark and flag the endpoint if accuracy standard deviation exceeds 5% or latency coefficient of variation exceeds 0.15.
  4. Verify registration and legal entity disclosure against the criteria in the table at the top of this post.

For researchers they add a pre-registration list: record the full endpoint URL, claimed model version, access date and pricing tier, confirm the endpoint passes all four stages before collecting data, report per-run accuracy and the verification results, archive raw responses with latency, token counts and logprobs, and interleave lightweight probes daily or every few thousand requests, because a one-time check does not hold. They also point to open-weight models with self-hosted weights, or hardware-attested serving as studied by Cai and colleagues, as ways to remove the provenance question altogether.

The audit tools are open. The team’s ShadowAPI repository has utility, safety and fingerprint modules: you supply the endpoint and it collects from both sides and compares. Its README says it names and endorses no third-party service, includes no results, and refuses single-run comparisons because one run per side makes the MET step report a false rejection. It needs official keys for the baseline side, so it suits people who hold them.

Which of the paper’s checks can you run for $0?

Most developers have no GPU for a fingerprint database and no official key for every model they use. The table translates each stage into something you can do with a laptop. We mark clearly where our version is weaker than the paper’s.

Paper’s check Paper’s version What you can do for $0 How to read it
Identity fingerprint LLMmap, 24 or more probes, trained database Repeat identity-style probes against a baseline you trust (see the six-check guide) A weaker proxy: a mismatch is a reason to dig, a match is weak evidence
Distribution test MET, hundreds of samples per side Use the ShadowAPI toolkit if you hold an official key; otherwise skip Needs a baseline. 18.67% miss rate in the paper’s own validation
Stability across sessions 3 sessions, accuracy SD over 5% or latency CV over 0.15 The script below, 12 runs of one prompt Variance flags are for fixed prompts; verbose models vary naturally
Metadata and token counts Latency and token SD ratio against official Compare usage with a local tokenizer count, per the billing audit guide Consistent gaps are overhead; spikes are worth a question
Reasoning behavior Reasoning models behaving like non-reasoning ones Ask a multi-step problem and check whether reasoning tokens are reported (see the reasoning docs) A reasoning id that reports none and answers instantly is odd
Legal identity and documents ICP filing, entity, terms Read terms, privacy and contact pages; the checklist below Absent documents are a risk by the paper’s own table
Re-testing over time Daily or every few thousand requests Put the script in a scheduled job and log results The paper’s reason: providers change upstreams without notice

The script below runs one fixed prompt 12 times at temperature 0, records the model field the endpoint reports, the output token count and the latency, and prints the coefficient of variation the paper uses as its threshold. It runs against a free id on our free lane, which costs nothing per token, and the same file works against any OpenAI-compatible endpoint if you change the base URL, key and model id.

Python: repeat one prompt and measure the spread
import os
import statistics
import time
from openai import OpenAI

client = OpenAI(base_url="https://api.oneaiapikey.com/v1", api_key=os.environ["ONEAIAPIKEY_API_KEY"])

MODEL_ID = "z-ai-glm-5.3:free"   # swap in the id you want to test
PROMPT = "List the first twelve prime numbers, comma separated, then give one sentence on why 1 is not prime."
RUNS = 12

latency, out_tokens, model_names, answers = [], [], set(), set()
for _ in range(RUNS):
    start = time.perf_counter()
    reply = client.chat.completions.create(
        model=MODEL_ID,
        temperature=0,
        max_tokens=300,
        messages=[{"role": "user", "content": PROMPT}],
    )
    latency.append(time.perf_counter() - start)
    out_tokens.append(reply.usage.completion_tokens)
    model_names.add(reply.model)
    answers.add((reply.choices[0].message.content or "").strip())

def cv(xs):
    return statistics.pstdev(xs) / statistics.mean(xs)

print("model field(s) in replies:", model_names)
print("distinct answers over", RUNS, "runs:", len(answers))
print("latency mean %.2f s, coefficient of variation %.2f" % (statistics.mean(latency), cv(latency)))
print("output tokens mean %.0f, coefficient of variation %.2f" % (statistics.mean(out_tokens), cv(out_tokens)))

Be careful with the output. The paper’s 0.15 latency threshold comes from fixed benchmarks across independent sessions, and a single prompt on a shared free lane can exceed it for ordinary reasons, such as load on a busy hour. Use the numbers relatively: compare today with last week, and one endpoint with another running the identical file. Two things are worth acting on. If the model field names something other than what you asked for, ask why. If a reasoning id returns the same text instantly every time with no reasoning tokens, look at the reasoning guide. The free-trial test protocol adds tests for streaming, tool calls and billing movement, and the compatibility probe post covers the API-behavior side.

Here is a calculator that applies the paper’s stage-three thresholds to numbers you collect. It runs in your browser and sends nothing.

Stage-three variance check (the paper's thresholds)

Baseline accuracy
82.0%
Endpoint accuracy
47.0%
Gap in points
35.00
Accuracy variance flag (paper: over 5 points)
Under the threshold
Latency coefficient of variation
0.13
Latency flag (paper: over 0.15)
Under the threshold

The two flags are the paper's stage-three thresholds for fixed benchmarks run in at least three independent sessions. The accuracy gap has no threshold in the paper: the paper's own results show gaps from about 3 to about 47 points, so judge it against your task and your baseline.

How does One AI API Key line up against the paper’s table?

We publish this post, and our own service is a middleman, so we apply the same table to ourselves and say where we are weaker. We do not claim the study is about us and we do not claim it is beside the point.

Paper criterion Where we stand today
Upstream route documented Partly. We say every model is served by upstream providers we select and that we run no model ourselves, but we do not name the provider for each model. The paper cites OpenRouter as a platform that discloses its routing, and that is stronger than what we do
Credential source We sell access with our own upstream credentials, like any gateway that does not take your key
Legal documentation Terms, privacy policy and acceptable use are published, with a support address
Payment accountability Paid access is set up by hand over email with a person you can write to, as the post on buying access by email explains
Prices before you pay Per-million rates are published on pricing and on each model page
Evidence you can read Status page, usage rankings with exact counts, and the transparency page
Detecting a swap A route we detect substituting or mislabeling a model is disabled. We have a manual black-box audit script that is not public and no scheduled job that scores answer quality, and the transparency page says so
Same output as the original Not promised. For work where an exact official endpoint matters, call the vendor directly

You can test most of that without trusting a word of it. Sign-in is Google only and there is no card field. A new account gets $10 of credit toward priced models, paid models are set up by hand by email, and the 48 ids that end in :free share 100 requests and 3,000,000 tokens a day per account and work at a $0 balance. Past that daily cap the gateway answers with a 429, as the free lane guide explains. Run the script above against one of those ids, read the model field and the token counts, and compare the answers to the vendor’s own endpoint if you hold a key for it. If something looks wrong, email somdutt777@gmail.com with the model id and the request id, as the transparency page describes, and a person reads it.

We would rather you run the checks than take our word. By default prompts and answers are not stored and only counts are kept, so the usage records you see (model, token counts, charge) are what you compare with your own measurements, and the privacy guide and the questions to ask any gateway about data cover what happens to your prompt. A gateway that does not like being tested is telling you something.

Endpoint review, built from the paper's Table 1 and protocol

0 of 10 passed

Untrusted

Treat the endpoint as an untrusted instrument, as the paper puts it: small spend, no private data, and verify before anything else.

Which part of the paper matters most for you?

I publish research or benchmarks

This is the paper's own audience. Record the endpoint URL, model version, access date and pricing tier, report per-run accuracy over at least three runs, and prefer official access. A result attributed to a named model through an unverified endpoint cannot be reproduced. The verification guide gives the checks.

I build a product on a named frontier model

Decide what an exact vendor model is worth to you. If a contract or a regulator names the vendor, go direct, as the gateway versus direct guide argues. If price and flexibility matter more, test the middleman, set a spend limit on every key and keep a second route ready.

I use models for coding agents or chat

The paper did not test agent workloads, so run the repeat script on your own prompts, watch cost per task and use a dedicated key per tool. If a relay asks you to run an installer script, read the seven installer checks first.

I evaluate model safety

Be careful. The paper found harmfulness scores moving in both directions through shadow endpoints, so a safety result without verified provenance may describe a different backend. Test against the vendor's own endpoint, and note the endpoint in your write-up.

Where this leaves a careful buyer

The study is useful because it is specific. It does not say every reseller cheats. It says that for three popular, undocumented, individually run shadow APIs, in late 2025, almost half of fingerprint tests pointed to a model other than the one sold, accuracy on hard tasks fell by tens of points in some cells, and price told you nothing about which was which. Its answer is an old one: verify before use, monitor during use, disclose afterward.

Everything in this post that you can check, you should. The paper is open on arXiv, the audit code is on GitHub, and the arithmetic we added is on the page. For a wider view of how to pick a middleman, our 12-point checklist, the comparison of LLM gateway options and the post on scam patterns in free API offers go further, and what a status page should show covers the monitoring side. For the structure of a gateway and why one key can reach many models, see what an LLM gateway is and the trade-offs in one key for every model.

Run the repeat test on a free id, then judge for yourself

$10 sign-up credit, 48 free models sharing 100 requests and 3,000,000 tokens a day, no card.

Frequently asked questions

What is a shadow API?
In the CISPA paper it is a third-party LLM API service that sells indirect access to frontier proprietary models, works in regions where the official provider is restricted, uses credentials or credits issued by an intermediate provider and does not publicly document its upstream route. A gateway that documents its routing, or a self-hosted relay that forwards your own key, is outside that definition. The reseller risk guide covers the wider market.
Did the study name the services it tested?
No. The paper labels the audited endpoints Shadow API A, E and H and masks service names in its compliance table. The authors say the repository on GitHub names no third-party service and contains no results, only the method. So nobody can read the paper and conclude that a specific company cheated, and this post does not try to.
Does the study prove those providers cheated?
No, and the authors say so. A fingerprint match to another model supports substitution but does not prove it, and the term "deceptive model claim" describes the gap between the commercial claim and the evidence without establishing operator intent. Operational instability can also cause behavior that differs from the official endpoint without any identity mismatch.
Is One AI API Key a shadow API?
We do not claim the study is about us, and we do not claim it is irrelevant. We sell access with our own upstream credentials, we say plainly that every model is served by providers we choose and do not run, and we do not name the provider for each model. We publish prices, terms, a status page and a transparency page that lists what we do and do not check. The right response is the same as for any middleman: run the test in this post against us.
How many probes does the paper recommend?
For auditors it recommends at least 24 LLMmap probes, a Model Equality Test with a preset significance level, at least three independent sessions on a held-out benchmark, and a check of legal identity. For researchers it adds daily lightweight probes or one every few thousand requests, because providers can switch backends over time and a single check does not hold.
Can I check an endpoint without a GPU or a research budget?
Partly. The paper trained its fingerprint database on a GPU server, but you can still repeat a fixed prompt, compare token counts with a local tokenizer, watch latency and answer variance, check whether a reasoning model reports reasoning tokens, and read the legal pages. The six-check guide and the eight-test free-trial protocol turn that into scripts.
Is a low price the warning sign?
The paper does not support that shortcut. Its regression found that price ratio had no predictive power for accuracy drop, and one provider charged 7.10 to 7.25 times the official price for a backend that fingerprinted as a newer cheaper model. Price is a reason to test, not a verdict in either direction. The flat-price arithmetic shows when a number cannot add up.
What if an endpoint passes every check?
Then you have an absence of evidence, not proof. The authors state that a sufficiently faithful surrogate could evade both of their tests, and that a Model Equality Test failing to reject is not a certificate of faithful serving. Keep the probes running over time and keep a baseline you trust.
Are the paper numbers still current?
They describe a snapshot. Provider checks ran between September and December 2025, citation and star counts were taken on 6 December 2025, and the models tested were the GPT-5, Gemini 2.5 and DeepSeek generation of that period. The authors warn that providers change upstreams without notice, so read the numbers as evidence the problem exists, not as a current market rate. I read the paper on 28 November 2026.
More in Blog

Try it

One API key for GPT, Grok, DeepSeek, Kimi, GLM, MiniMax, Qwen, Step, Beam, Nemotron, ERNIE, Hunyuan, Gemma, Laguna, LFM, LongCat, Llama, Solar, Jais, Mistral, K2 and Roleplay.

One AI API Key speaks the OpenAI and Anthropic formats, so you change the base URL and the key, not your code. Credit packs start at $10, and every model has a published per-token rate.

New accounts$10 credit on sign-up
Claim $10 credit →