Methodology
RelayLens does not trust a model's self-description. It sends carefully designed requests to the relay, checks details only a real backend produces and that are hard to fake, then combines the results with weights.
Authenticity
Capability
Protocol
Billing
A relay is a proxy between you and the official API. It may forward faithfully, or quietly swap in a cheaper model, truncate context, inflate usage or inject hidden prompts. We break these behaviors into observable signals: cryptographic verification, protocol and response shape, billing numbers, and capability. Any single signal can be bypassed; faking all of them together is hard.
Carefully designed requests go to the relay; we record details only a real backend produces and that are hard to fake.
Each probe scores 0–100 and is multiplied by its weight. Skipped and errored probes do not count.
Σ(weight × score) / Σ(weight)
The weighted average is the total; the score line below gives the verdict, then the rules that can override it apply.
Total ≥ 85 is genuine, 60 ≤ total < 85 suspicious, below 60 high risk. If connectivity errors, the verdict is "unreachable" regardless of score.
A critical failure: high risk, whatever the score
A probe marked "Can force high risk" that hits the critical failure written on its card sets the verdict to high risk, whatever the total. Its other failures only count through the score.
Errored or skipped: left out of the score
Probes that were skipped (not in the chosen mode, for example) or errored (a timeout, for example) are left out of the total and listed in the report; the verdict follows the score of the rest. If connectivity errors, the verdict is "unreachable" and the check stops.
Billing alerts: flagged in red, never scored
Billing alerts (currently hidden prompt injection) neither count toward the score nor change the verdict, but are listed in red at the top of the report when found.
Model in the catalog: checked against its spec
Admins enter each model's official specs into the model catalog: output limit, context window, input types, Claude's thinking mode, whether an OpenAI model reasons and which tokenizer it uses, and the knowledge cutoff. Claude models can be calibrated in one click, reading the output limit, thinking mode and answers to the cutoff questions straight from the official API. During a check: the output limit boundary uses the catalog's limit; long-context tiers beyond the window are not sent; multimodal tests only the listed inputs; a Claude model marked as having no thinking skips the signature check; and the knowledge-cutoff probe compares with the calibration or the cutoff date. The names that count as "another vendor" in self-introductions are an admin setting too.
Not in the catalog: skipped, not guessed
A new model that is not catalogued yet is not judged by a similar model's numbers. The output limit boundary and the knowledge-cutoff probe are skipped and unscored, long context runs only the 32K tier, and multimodal is tested as usual. The report says the model is not in the catalog, and the admin console lists such models so they can be added. Other probes are unaffected.
The report also shows sub-scores for authenticity, capability, protocol and billing so you can see where the problem lies.
The two APIs expose different server-side guarantees, so overall verification strength differs.
| Dimension | Claude (Anthropic) | OpenAI (GPT / o-series) |
|---|---|---|
| Strongest evidence | Server-signed thinking blocks (tamper & reuse checks) + model limit error fingerprint | Responses/Chat response schema fingerprint + tokenizer count match (no cryptographic signature) |
| Billing & injection | Official count_tokens audit + hidden prompt check + prompt caching | Local js-tiktoken audit + hidden prompt check + prompt caching |
| Capabilities & context | Tool use, image/PDF multimodal, knowledge cutoff bank, 32K–200K needle tests | Function calling, structured output, logprobs, reasoning tokens, multimodal, long context |
| Overall strength | Strong (signed thinking models are very hard to spoof) | Moderate (relies on combined indirect signals; sophisticated proxies may bypass some checks) |
The three modes add probe tiers cumulatively; the long-context test can be layered on any mode:
7Claude4OpenAI
Only the key probes: those with Quick lit on their card, including connectivity, each provider's core fingerprints, the stream protocol and the billing checks.
14Claude15OpenAI
Quick plus tool use, multimodal, stop controls, error format, the capability quiz, model self-identity and response ID uniqueness. Scheduled probing and the ranking use this mode.
15Claude16OpenAI
Standard plus the prompt cache check.
Long context runs in three tiers (32K, 128K, 200K), adds on to any mode and is not counted above. What it checks and how it counts
Tested through POST /v1/messages. Requests carry both x-api-key and Authorization: Bearer for compatibility with different relays.
Under each probe: a fuller bar weighs more; lit modes run it, struck-out ones do not. Probes marked "Can force high risk" have failure cases that set the verdict to high risk on their own.
thinking_signatureTurns thinking on and asks for a tool call, then checks that the thinking block carries an Anthropic signature with the right shape and that each signature is new. It then sends the signature back with a few characters altered to see whether it is rejected as Anthropic does.
Forces high risk when: thinking with a fixed budget returns no thinking block; the thinking block has no valid signature; the same signature shows up again; or the signature has the wrong shape and was not verified by Anthropic. Refusing the thinking parameter or a check that cannot finish is not critical and only counts through the score.
model_limitsRequests max_tokens = 1,000,000, far above any model's limit. The official API rejects it before inference — no tokens consumed — and the error states the model's output limit and the model id it actually resolved. A different tier (Opus/Sonnet/Haiku) than claimed means the model was swapped (critical); a different version fails. A 400 rejection in a different format (e.g. rewritten by the relay) is a warning; other statuses (rate limits, outages) are skipped and not scored.
Forces high risk when: the error reveals a real model of a different tier than the one claimed.
output_limitSends two requests using the output limit N recorded for the model in the model catalog: the official API accepts max_tokens = N and rejects N+1 before inference. The question asks for a one-word reply, so an accepted request costs only a few tokens. N rejected means the real model has a lower limit (typical of an older model passed off as a newer one); N+1 accepted means a higher limit, or the relay rewrites the parameter. Skipped and unscored when the catalog has no output limit for the model.
identityAsks which company created the model, with no system prompt. Claiming to be OpenAI, Google, DeepSeek, Qwen and the like is flagged. Self-reports are unreliable, so the weight is minimal.
knowledge_cutoffAsks a few dated current-events questions from the bank the admin prepared for this model (latest first) to see whether the model knows them. A reply containing any of the admin's accepted answers counts as correct. The questions are ones the genuine model answers, so missing recent ones suggests an older model behind the relay. A model's memory of events is unreliable, so the weight is minimal and it only supports other evidence. Skipped when the bank has fewer than 3 enabled questions.
tool_useHas the model call the record_person tool and checks the toolu_-prefixed id, tool name, structured input (Alice, 31) and stop_reason tool_use. When the model catalog says the official API supports forced calls it forces the tool (tool_choice names it); when it says it does not (e.g. Opus 5.5, Sonnet 5.5) it asks with an automatic call naming the tool, and also sends one forced call, which the official API refuses — a relay that accepts it is suspicious; when not set, it forces first and switches to an automatic call if the relay answers that forced calls are not supported.
multimodalSends a solid-red PNG and asks the model to pick one of blue, green, red or yellow (only red alone counts), then a PDF containing the code word PINEAPPLE-7392, to detect relays that strip multimodal content.
prompt_cacheSends a ~5000-token randomized system prompt with cache_control twice and checks the cache creation/read fields in usage. Fields entirely absent mean caching is stripped.
longcontext_32k / 128k / 200kBuries three random codes at different depths of a long text and asks for them in order, to catch relays that cut or swap the context. Three tiers, 32K, 128K and 200K, each weighted 4; about 90% of the tier is sent. Tiers run smallest first, and a failed tier stops the larger ones. Missing codes or a cut context fail this probe; which case forces high risk is in the red box below.
Forces high risk when: billed input is under 85% of what was sent, so the context was silently cut. Missing codes only fail this probe.
connectivitySends a minimal message and checks HTTP 200, response type/role, the msg_-prefixed id, model echo, stop_reason and integer usage. Any non-200 counts as unreachable and aborts the run.
stream_protocolRequests a ~120-word reply with stream:true and validates the SSE event order: message_start → content_block_start/delta/stop → message_delta → message_stop, event names matching data.type, and output_tokens on message_delta. Also records time to first token and output speed (informational, not scored).
stop_controlsChecks that max_tokens=5 yields stop_reason max_tokens with at most 5 output tokens, and that stop_sequences=["7"] yields stop_reason stop_sequence with no "7" in the text.
error_shapeSends an invalid request (max_tokens=-1) and checks for a 400 with the standard Anthropic error body {type:"error", error:{type, message}}. Any error status (400, 502, 503, …) passes, since almost every relay converts between protocols and its errors need not match the official ones; only an invalid request handled as valid (200) fails.
consistencyCollects the ids of all responses in this run and checks they are unique. Duplicates suggest cached or replayed responses.
token_auditCompares count_tokens with the prompt tokens billed by /v1/messages (input_tokens plus cache creation/read tokens), and streaming with non-streaming billing. Billing above count_tokens counts as inflated; billing below it only warns.
Tested through the Responses API (POST /v1/responses); when a relay does not serve it, the whole run switches to Chat Completions (POST /v1/chat/completions). The Responses API has no stop parameter, so Stop controls is only tested on the Chat fallback. For reasoning models (o-series, gpt-5) some probes are relaxed or skipped. OpenAI has no equivalent of Claude's thinking-signature cryptographic proof, so overall detection strength is weaker.
Under each probe: a fuller bar weighs more; lit modes run it, struck-out ones do not. Probes marked "Can force high risk" have failure cases that set the verdict to high risk on their own.
usage_fingerprintInspects every response in the run for residue of other backends: Anthropic-only usage keys (cache_creation_input_tokens, cache_read_input_tokens; with the Chat Completions fallback also input_tokens and output_tokens), msg_ response ids, keys containing claude, or a model string with claude/gemini/deepseek/qwen/glm. Also checks for the input and output usage detail objects; the Chat Completions system_fingerprint is recorded but not scored.
Forces high risk when: responses carry fields only another backend (such as Anthropic) produces.
header_fingerprintLooks for openai-processing-ms, x-request-id, openai-version and x-ratelimit-limit-requests headers. Relays often strip them, so absence only warns and never fails.
logprobsRequests logprobs with top_logprobs=3 (the Responses API asks with include: message.output_text.logprobs) and validates the returned structure. Many fake backends drop logprobs. Skipped for reasoning models.
reasoning_tokensReasoning models only (o-series / gpt-5, excluding gpt-5-chat): asks a multi-step computation at medium reasoning effort (Responses reasoning.effort, Chat reasoning_effort) and checks the usage's reasoning_tokens is above 0. Zero suggests a downgrade to a non-reasoning model. The effort is explicit so models that default to no reasoning are not misjudged; models that reject the parameter are retried without it.
identityAsks which company created the model, with no system prompt. Claiming to be Anthropic, Google, DeepSeek, Qwen and the like is flagged. Self-reports are unreliable, so the weight is minimal.
knowledge_cutoffAsks a few dated current-events questions from the bank the admin prepared for this model (latest first) to see whether the model knows them. A reply containing any of the admin's accepted answers counts as correct. The questions are ones the genuine model answers, so missing recent ones suggests an older model behind the relay. A model's memory of events is unreliable, so the weight is minimal and it only supports other evidence. Skipped when the bank has fewer than 3 enabled questions.
function_callingHas the model call the record_person function and checks the call_-prefixed call id, the type (function_call on the Responses API, function on Chat Completions), the JSON arguments (Alice, 31) and the end state (Responses status completed, Chat finish_reason). When the catalog says forced calls are supported it names the function; when it says they are not, it asks automatically naming the function and also sends one forced call, which the official API refuses — a relay that accepts it is suspicious; when not set, it forces first and switches to an automatic call if the relay answers that forced calls are not supported.
structured_outputAsks for strict json_schema output (text.format on the Responses API, response_format on Chat Completions) and checks the output is exactly {city, country} with city Tokyo.
multimodalSends a solid-red PNG as a data URI and asks the model to pick one of blue, green, red or yellow; only red alone passes. This detects stripped images; a multiple choice avoids near names such as coral.
prompt_cacheSends the same ~1800-token prompt repeatedly (a random prefix avoids stale cache hits) and checks cached_tokens in the follow-ups' usage (input_tokens_details on the Responses API, prompt_tokens_details on Chat Completions). OpenAI caches prompts over 1024 tokens automatically; the field missing entirely means caching is stripped or the backend is not OpenAI. Automatic caching is best effort, so up to two follow-ups are tried and a miss only warns.
connectivitySends a minimal message through the Responses API (POST /v1/responses) and checks HTTP 200, object response, a resp_ id, created_at, status, model echo, an assistant message in the output and that usage sums correctly. When the relay does not serve the Responses API, the whole run switches to Chat Completions (/v1/chat/completions) and checks the chat.completion shape instead. If neither endpoint answers, the relay counts as unreachable and the run aborts.
stream_protocolRequests a ~120-word reply with stream:true. Responses API: every event has a response.* type, the stream opens with response.created, has response.output_text.delta events and ends with response.completed carrying usage, SSE event names match the type, sequence_number increases and the response id stays the same. With the Chat Completions fallback: each chunk's object, a consistent id, a role on the first delta, the [DONE] terminator and the final usage chunk. Also records time to first token and output speed (informational, not scored).
stop_controlsAsks the model to count from 1 to 50 with stop=["7"] and verifies finish_reason stop with no "7" in the text. The Responses API has no stop parameter, so this only runs when the relay fell back to Chat Completions; reasoning models do not support stop either. Otherwise it is skipped and unscored.
error_shapeSends an invalid request (a number as the Responses input; with the Chat Completions fallback, messages that is not a list) and checks for a 400 with the standard OpenAI error body containing message, type, param and code. Any error status (400, 502, 503, …) passes, since almost every relay converts between protocols and its errors need not match the official ones; only an invalid request handled as valid (200) fails.
consistencyCollects the ids of all responses in this run and checks they are unique. Duplicates suggest cached or replayed responses.
tokenizer_fingerprintCounts tokens of a fixed mixed English/Chinese/code/emoji text locally with js-tiktoken, applies the OpenAI cookbook formula and compares with the reported input tokens (Responses input_tokens, Chat prompt_tokens). A gap of up to 200 (800 for reasoning models) scores 100; a larger one warns at 70. Upstreams often add instructions of their own (ChatGPT subscription pools add thousands of tokens of Codex instructions), hence the wide tolerance. Whether stream and non-stream input tokens agree is recorded, not scored.
Signals such as invalid or reused Claude thinking signatures, an error naming a different model tier, foreign backend fields in OpenAI responses, or billing below 85% of sent long-context tokens strongly indicate swapping or silent truncation and should not be masked by easier passing checks.
RelayLens sends two nonce-tagged requests in parallel, validates protobuf signature structure and cross-relay SHA-256 uniqueness, then replays a tampered signature. Official Anthropic rejects tampered signatures with HTTP 400, whereas fake or signature-stripping proxies fail.
No. Apart from connectivity itself (which yields unreachable), timed-out or errored probes are excluded from the score denominator and listed separately as unverified items.
Manual runs can use unusual parameters, flaky networks or scripted attempts to game scores. The leaderboard uses only scheduled standard-mode probes so every listed relay is measured on the same yardstick.
Official API specifications and open libraries underpinning these black-box probes for independent verification.
Specifies thinking block signatures, round-trip validation rules, and adaptive thinking controls.
Defines cache_control breakpoints, cache_creation / cache_read usage fields, and TTL tiers.
Defines /v1/responses payloads, streaming events, input_tokens_details, and reasoning tokens.
Reference BPE encodings (o200k_base / cl100k_base) used for OpenAI tokenizer fingerprinting.
Independent operation policy, zero-storage user key handling, and AES-GCM probe key isolation.