How to Check That an LLM API Relay Really Serves the Model You Pay For
Learn how to verify whether an LLM API relay is serving the real model you paid for or silently swapping to cheaper models, injecting prompts, and pooling degraded accounts.
Summary
- Response model fields and public status monitors are easily spoofed at the gateway layer and cannot prove model authenticity.
- A two-word curl request with usage tracking exposes hidden anti-ban prompt injection and artificial input token padding.
- Mutating the numbers in classic logic riddles catches relays that pre-cache or inject answers to popular benchmark prompts.
- Token fingerprinting tools and throughput checks help spot tier downgrades (like Sol to Luna or Opus to Haiku).
When you point your SDK or coding agent at a third-party LLM API relay and pay for gpt-6.1-sol or claude-opus-5-5, you cannot trust the "model" string returned in the JSON response. Every OpenAI-compatible or Anthropic-compatible gateway controls the serialization layer. It takes three lines of proxy code to accept a request for gpt-6.1-sol, forward it to gpt-6-luna or an open-weight model, and rewrite the response metadata before sending the stream back to your terminal.
Public uptime pages and standard system-prompt extraction tests do not solve this either. I have tested relays where every monitoring dashboard showed green and the extracted system preamble looked identical to an official account, yet the endpoint failed basic multi-file edits that a direct subscription handled on the first try.
Verifying a relay is tricky because poor output usually comes from one of three distinct causes, and most developers only test for the first one:
- Hard model swapping: The relay routes your request to a cheaper tier (such as serving
gpt-6-lunawhen you paid forgpt-6.1-sol, or routingclaude-opus-5-5to Haiku) either to pocket the margin or as a silent fallback when its upstream pool runs out of quota. - Degraded upstream account pools: Instead of calling official enterprise API keys, the relay reverse-proxies pooled consumer or Team subscriptions. When those shared accounts hit concurrency limits or risk control, the upstream provider itself throttles their reasoning effort.
- Hidden prompt injection: The relay prepends unseen instructions or fake tool definitions to your request—either to bypass official coding-agent blocks or to inflate your input token count on seemingly cheap multiplier tiers.
Here is how I actually test a relay endpoint to separate those three failure modes and confirm whether I am getting the model I paid for.
On this page
Step 1: Send a Minimal curl Request to Catch Prompt Injection and Token Padding
Before you run a single reasoning puzzle, check whether the relay is tampering with your raw request payload.
When a relay advertises a 1.0x or 0.8x billing multiplier that somehow drains your balance three times faster than an official Pro subscription, prompt injection or token padding is usually the culprit. You can catch this immediately by bypassing your IDE and sending a minimal curl request (if you use Python instead, see how to point the OpenAI Python SDK base_url at a custom provider):
curl https://your-relay-endpoint.com/v1/chat/completions \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $RELAY_API_KEY" \
-d '{
"model": "gpt-6.1-sol",
"messages": [{"role": "user", "content": "Hello"}],
"max_tokens": 5
}'
Look straight at usage.prompt_tokens in the response JSON. On an unmodified endpoint, a single-word message consumes roughly 7 to 15 input tokens once message framing is counted. If prompt_tokens comes back at 1,200—or in extreme cases I have seen, nearly 100,000 input tokens for a single greeting—the relay is either padding usage numbers in its billing middleware or injecting a massive hidden system prompt into every turn.
That hidden context does not just wreck your cost calculations against official OpenAI API pricing; it also pollutes the model's attention before your real prompt even begins.
Some relays now openly split their channels by injection level. They will offer a 1.0x or 1.2x group with heavy anti-ban prompt injection meant to keep reverse-proxied Claude Code sessions from triggering 400 blocks, alongside a 2.0x+ group with zero injection. Never run intelligence or reasoning checks on an injected channel. Because the injected instructions force the model to mask its behavior, they suppress chain-of-thought output and cause genuine models to fail logic tests.
Step 2: Check Generation Speed and Reasoning Token Structure
You cannot prove a model is authentic from throughput alone, but token generation speed is the fastest way to catch a blatant tier downgrade.
When I tested a shared claude-opus-5-5 channel that felt noticeably shallower than my direct account, the system prompt check came back clean. However, watching the raw stream showed the endpoint generating at roughly 220 tokens per second. An official Opus 5.5 instance does not stream at 220 tokens per second; that speed profile belongs to Haiku or a small open-weight fallback.
Apply the same structural check when paying for high-effort reasoning tiers like gpt-6.1-sol (xhigh). On a clean channel, complex architectural prompts trigger extended thinking time, populate completion_tokens_details.reasoning_tokens in the API response, and—inside agentic CLI tools—spin up multiple subagents to inspect the codebase in parallel. When a relay's upstream Sol pool crashes and its router silently falls back to gpt-6-luna, the endpoint starts returning fast, flat answers without spawning subagents.
Step 3: Mutate the Numbers in Standard Logic Riddles
A common mistake is copying a viral benchmark prompt—such as the candy distribution riddle, drawing an SVG pelican, or asking a standard "juice" identification question—and assuming the relay is honest if it answers correctly.
Relay operators read the same forums you do. Many relays maintain a lookup filter or inject the answers to well-known test riddles directly into the upstream system prompt so their cheapest channels still pass user spot-checks.
I caught three different "guaranteed unthrottled" relay channels doing this by making a tiny change to the classic candy puzzle. On the standard version of the problem, the correct answer is 20 or 21, and all three relays answered it effortlessly. I then changed two numbers in the problem table so the true arithmetic answer became 15, and sent the modified prompt at temperature: 0.
All three relays barely spent any time thinking and still output 20 or 21. Their models were not solving the math; they were matching the pattern of the riddle and regurgitating the pre-injected answer.
Whenever you use a math or logic probe to test a relay, have a trusted model rewrite the numbers first so the expected answer is unique to your test. Making the final number slightly larger also forces a real reasoning model to spend visibly more tokens working through the steps.
As for quick knowledge-cutoff probes—like asking who the Prime Minister of Japan is without web browsing enabled—use them only as a fast mid-session sanity check. When a gpt-6-astra or gpt-6.1-sol channel degrades, it often regresses to older cutoff answers or ignores your constraint and searches the web anyway. Still, a cutoff question alone is never conclusive proof, because throttled accounts occasionally fail trivia while still writing valid code.
Step 4: Understand Where Token Fingerprinting Tools Fail
Tools like ModelTrace attempt to verify models mathematically by feeding fixed prompts into an endpoint and comparing the output token sequence against a pre-recorded fingerprint database.
Fingerprinting is genuinely helpful when your route inspector claims you are hitting gpt-6-astra or gpt-6-terra, yet every test run matches the fingerprint of gpt-6-luna. When a relay swaps a flagship model for a much smaller sibling, sequence fingerprinting catches the discrepancy quickly.
However, you cannot treat a fingerprint mismatch as standalone proof of a scam. First, fingerprinting tools can only classify models that already exist in their reference library. When a provider pushes a new checkpoint—such as when gpt-6.1-sol first rolled out before fingerprint libraries updated—an out-of-library model will produce arbitrary matches, sometimes even getting misclassified as a Claude Sonnet model.
Second, closely related models converge over time. On launch day, numeric fingerprints separated gpt-6-astra and gpt-6.1-sol with roughly 95% accuracy. Within a week of official server-side updates and account-level throttling, their output distributions drifted close enough together that classification accuracy dropped into the 70% range. If a fingerprint tool agrees with the model name you requested, that is a good sign; if it disagrees between two close tiers, verify the behavior on actual code before accusing the relay.
Step 5: Test Across Context Compaction to Catch Pooled Account Switching
The most frustrating relay issue is a channel that passes every verification test at the start of your workday, writes solid code for half an hour, and then abruptly turns incompetent mid-session. Suddenly it stops finishing tasks, breaks tool calls, or prints bizarre hallucinations claiming it "already sent a message to the parent agent" when you never enabled subagents.
This happens because most budget relays do not route your requests to a single dedicated API key. They sit in front of a pool of shared Team and Pro subscriptions and route your conversation using prompt cache affinity.
As long as your requests share the same cached prompt prefix, the relay keeps sending you to the same upstream account so it can benefit from cached input discounts. The moment your coding agent hits the context limit and compacts the conversation history—or the moment that specific upstream account hits a rate limit or risk-control flag—the prefix cache invalidates. The relay's load balancer then silently moves your session to another account in its pool. If that next account has been flagged by the upstream provider for heavy multi-user sharing, you land on a severely degraded instance mid-task.
Because context compaction usually happens automatically while you are away from the keyboard, you only notice the drop in quality when the task fails. To test whether a relay has a clean pool, do not just send isolated single-turn prompts:
- Run a real multi-file task that you keep on disk as a baseline benchmark. On a healthy
gpt-6.1-solchannel, the agent will read the files, apply the diffs, and finish cleanly. On a degraded relay pool, the model will often loop—apologizing and agreeing with your instructions while making zero modifications to the project files. - Force a context compaction (
/compactin most CLI agents) or clear the prefix cache mid-task, then immediately re-test the model's reasoning on the next turn to see if the relay switched you onto a throttled account.
Step 6: Make Sure Your Own Client or Local Proxy Didn't Trigger a Silent Fallback
Before you open a dispute with a relay operator, verify that your own local stack did not swap the model behind your back.
Several popular coding clients and local proxy routers are designed to fail open when an endpoint rejects a model name. For example, in Claude Code, if you configure a subagent to request a specific tier that fails to resolve on the endpoint, the CLI can fall back to running Sonnet while only showing a subtle indicator in the terminal—leaving the main assistant convinced it is reading analysis from the stronger model.
Local OpenAI-compatible proxy wrappers can be even quieter. If your pinned model (gpt-5.6-sol or gpt-6.1-sol) returns a hard 400 error from the upstream provider, a fallback rule in your local proxy can automatically retry the turn on a cheap open-weight Flash model, complete the request, and write the entry to your session log with no error field attached. Always inspect your local proxy's raw JSONL logs or HTTP trace to confirm that resolvedModelIsFallback (or your router's equivalent flag) did not fire before blaming the remote relay.
How to Protect Your Workflow
No single prompt will keep an untrustworthy relay honest forever, because a relay operator can change upstream routing pools at any hour of the day. If you rely on third-party channels for daily development, keep a local gateway switch configured with at least two independent providers so you can cut over the second a session degrades after context compaction.
Before you deposit money into any new platform, walk through our Claude API Reseller checklist to see how upstream billing and per-request reconciliation should look. And if you are tired of babysitting reverse-proxied subscription pools and want an API router that forwards requests to verified upstream endpoints with transparent per-request logs, use SeedRouter.


