On this page
- What "Downgraded" Can Actually Mean
- Rule These Out First
- Before You Test: Control the Variables
- Method 1: Check the Returned Model Field
- Method 2: Self-Identification and Knowledge Cutoff Are Weak Signals
- Method 3: Randomized Reasoning Quiz, Repeated
- Method 4: Passphrase Test for Truncated Context
- Method 5: Token Counts and Speed
- Method 6: A/B Against the Official API
- How to Verify on Zivv
- Testing From Different Clients
- How to Protect Yourself
- FAQ
This guide is for developers who call GPT, Claude or Gemini through an API relay and suspect the model "got dumber", and for anyone who wants to verify a relay before paying for it. Nothing here depends on a specific provider: the curl commands and Python scripts work against any OpenAI-compatible endpoint once you swap in your own base URL and key. The last part covers how to check, on Zivv, which model actually served each request and what it cost.
What "Downgraded" Can Actually Mean
"Nerfed" covers at least six different things, and each needs a different test:
| Type | How it happens | Typical symptoms | Best test |
|---|---|---|---|
| Model substitution | You ask for a flagship; the relay quietly sends the request to a cheaper model or another vendor | Lower accuracy on hard tasks, different style, suspiciously fast | Model field, randomized reasoning quiz, token counts |
| Version or alias drift | An undated alias now points to a new snapshot, or the request is mapped to a different version | Behavior changes from one day to the next | Model field, pinned snapshot ids |
| Reduced reasoning | Reasoning effort lowered, extended thinking stripped | Wrong answers on hard problems, zero reasoning tokens, instant first token | Reasoning tokens, randomized quiz |
| Truncated context | Earlier turns or the system prompt get cut or compressed | Forgets what you said earlier | Passphrase test, input token growth |
| Capped output | max_tokens silently lowered | Answers stop mid-sentence | finish_reason / stop_reason |
| Cheaper deployment | Same model name, quantized or lower-grade serving (more common with open-weight models) | Subtle, inconsistent quality loss | Large-sample comparison only; hardest to prove |
The first three are what most people mean, and they are also the easiest to detect. One more variant is easy to miss: a relay injecting its own system prompt in front of yours, which shows up as odd self-descriptions and more input tokens than you expect.
Rule These Out First
A lot of suspected downgrades are misdiagnoses. Before blaming the provider, check:
- Randomness: with temperature above zero, the same prompt produces different answers. One miss followed by one hit means nothing
- Your own parameters: temperature, max_tokens, reasoning effort, whether Claude's extended thinking is on. A new client or SDK version may have changed the defaults
- A genuinely hard task: if the question is beyond the model, the official API fails too. Confirm the official API solves it reliably before using it as a test
- The client doing its own thing: ChatGPT and Claude.ai have their own system prompts, memory and tools, so they are not comparable with the API; Claude Code and Cursor compact long conversations and hand background tasks to smaller models
- An official update: undated model names move to new snapshots when the vendor updates them, so "different from last week" is not automatically the relay's fault
- Long-context decay: the fuller the context window, the worse any model recalls material buried in the middle
People also call the ChatGPT web app "nerfed" when it stops thinking or gives shorter answers. The causes are debated and not officially documented. The web app shows neither the model field nor token usage, so the best you can do there is paste in the randomized questions below by hand. This article focuses on API usage.
Before You Test: Control the Variables
A downgrade test is a controlled experiment. Sloppy controls give meaningless results:
- Fix the parameters: same model, same system prompt, same temperature, max_tokens and reasoning effort. If a reasoning model rejects temperature, leave it out on both sides
- Run every test at least five times and look at the distribution, not a single result
- Record each time: the model field, input / output / reasoning tokens, time to first token, total time, finish_reason
- Do not use the well-known liveness prompts ("hi", "what is 1+1", "17 times 23"). Some upstreams recognize these, skip the model entirely and return a canned reply with made-up usage. Freshly randomized questions cannot be recognized in advance
- If you can, keep an official API key as a control group and rerun the same script with only the URL and key changed
Check the model's profile in the Model Hub first, for example Claude Sonnet 5.5 or GPT-6.1 Sol: context length and reasoning support decide which tests apply.
All commands and scripts below read three environment variables (the example uses Zivv; point them at whatever service you are testing):
export BASE_URL=https://zivv.pro/v1
export API_KEY=sk-your-key-here
export MODEL=claude-sonnet-5-5Method 1: Check the Returned Model Field
The most direct signal is the model field in the response body. OpenAI format:
curl -s "$BASE_URL/chat/completions" \
-H "Authorization: Bearer $API_KEY" \
-H "Content-Type: application/json" \
-d "$(jq -n --arg m "$MODEL" '{model: $m, messages: [{role: "user", content: "Explain idempotency in one sentence."}]}')" \
| jq '{model, usage, finish: .choices[0].finish_reason}'For Claude models, repeat the call in native Anthropic format so protocol translation does not muddy the result:
curl -s "$BASE_URL/messages" \
-H "x-api-key: $API_KEY" \
-H "anthropic-version: 2023-06-01" \
-H "content-type: application/json" \
-d "$(jq -n --arg m "$MODEL" '{model: $m, max_tokens: 256, messages: [{role: "user", content: "Explain idempotency in one sentence."}]}')" \
| jq '{model, usage, stop_reason}'Reading the result:
- Same name as requested, or the same name plus a date snapshot suffix (claude-haiku-4-5 versus claude-haiku-4-5-20251001), counts as a match
- Same prefix but a different tier (you asked for Opus and got Haiku, asked for a flagship and got the mini version), or another vendor entirely, is a strong substitution signal
- No model field at all is sloppy; note it
The limitation is obvious: the server writes this field, and a relay can write anything it likes. A match proves little; only a mismatch is convincing.
Method 2: Self-Identification and Knowledge Cutoff Are Weak Signals
The first instinct is to ask "which model are you, and who trained you?" It has almost no diagnostic value:
- Models routinely get their own version wrong, and the same model may answer differently each time
- Training data contains plenty of conversations with other models, so claiming to be another vendor's model is not unusual
- A system prompt can rewrite the self-description at will; one injected line is enough
Asking for the knowledge cutoff is just as unreliable, because models are vague about their own cutoff. A slightly better version asks about a well-documented event shortly before the officially published cutoff: if the official API answers it consistently and the relay consistently cannot, that is one data point. A model that insists it comes from a different vendor is a reason to dig deeper, never a verdict on its own.
Method 3: Randomized Reasoning Quiz, Repeated
This is the most discriminating test. Questions are generated fresh each run and answers are computed locally, so a relay cannot cache answers or spot the test prompt and route just that one to a better model. Swap in a smaller model or switch off reasoning and the score drops visibly.
import datetime
import os
import random
import re
import string
import time
from openai import OpenAI
client = OpenAI(base_url=os.environ["BASE_URL"], api_key=os.environ["API_KEY"])
MODEL = os.environ["MODEL"]
EXTRA = {}
if os.environ.get("REASONING_EFFORT"): # e.g. high, for GPT reasoning models
EXTRA["reasoning_effort"] = os.environ["REASONING_EFFORT"]
def make_quiz():
"""Four fresh questions per run, answers computed locally."""
a, b = random.randint(100000, 999999), random.randint(10000, 99999)
letters = "".join(random.choice("abcde") for _ in range(40))
target = random.choice("abcde")
day = datetime.date(1901, 1, 1) + datetime.timedelta(days=random.randint(0, 72000))
s = "".join(random.choices(string.ascii_lowercase + string.digits, k=18))
return [
(f"Compute the exact value of {a} × {b}", str(a * b)),
(f"How many times does the letter {target} appear in {letters}?", str(letters.count(target))),
(f"What day of the week was {day.isoformat()}? Answer 1-7, Monday is 1", str(day.isoweekday())),
(f"Write the string {s} reversed", s[::-1]),
]
def norm(x):
return re.sub(r"[^0-9a-z]", "", x.lower())
def run_once():
quiz = make_quiz()
prompt = "Solve each question. End with one final answer per line, formatted as 'Answer 1: ...', 'Answer 2: ...'.\n" + "\n".join(
f"{i + 1}. {q}" for i, (q, _) in enumerate(quiz)
)
t0 = time.time()
resp = client.chat.completions.create(
model=MODEL, messages=[{"role": "user", "content": prompt}], **EXTRA
)
text = resp.choices[0].message.content or ""
score = 0
for i, (_, ans) in enumerate(quiz):
m = re.search(rf"Answer\s*{i + 1}\s*:\s*(\S+)", text)
if m and norm(m.group(1)) == norm(ans):
score += 1
details = getattr(resp.usage, "completion_tokens_details", None)
reasoning = getattr(details, "reasoning_tokens", None)
print(
f"model={resp.model} score={score}/{len(quiz)} "
f"in={resp.usage.prompt_tokens} out={resp.usage.completion_tokens} "
f"reasoning={reasoning} {time.time() - t0:.1f}s"
)
for _ in range(5):
run_once()Reading the result:
- A reasoning model (a GPT reasoning model with reasoning on, Claude with extended thinking, and so on) should score close to full marks. If most of five runs score below 3, be suspicious
- Reasoning is enabled but reasoning tokens stay at 0: reasoning may have been switched off. It may also mean the upstream simply does not report the field (the script then prints None), so compare against the official API
- Non-reasoning models often miss big multiplications and letter counts anyway. Do not convict them with this quiz; compare their score with the same model on the official API instead
- Scoring only reads the "Answer N:" lines. If a run scores 0, read the raw text before concluding anything; the model may have ignored the format
For coding ability, swap the questions for "write a function that does X" and grade with local unit tests. Same principle: randomized, verifiable, repeated.
Method 4: Passphrase Test for Truncated Context
Hide a random passphrase in the first sentence, pad the middle with irrelevant text, and ask for the passphrase at the end. At the same time, watch whether prompt_tokens grows with the padding:
import os
import random
import string
from openai import OpenAI
client = OpenAI(base_url=os.environ["BASE_URL"], api_key=os.environ["API_KEY"])
LINE = "This is an unrelated log line used only to pad the context. Please ignore it."
for n in [0, 200, 2000]: # padding lines; start small, bigger costs more
secret = "".join(random.choices(string.ascii_uppercase + string.digits, k=8))
filler = "\n".join(f"[{i}] {LINE}" for i in range(n))
prompt = f"Remember this passphrase: {secret}\n\n{filler}\n\nWhat was the passphrase at the start? Reply with the passphrase only."
resp = client.chat.completions.create(
model=os.environ["MODEL"], messages=[{"role": "user", "content": prompt}]
)
answer = resp.choices[0].message.content or ""
print(f"{n} lines: prompt_tokens={resp.usage.prompt_tokens} correct={secret in answer}")Reading the result:
- Each padding line costs roughly the same number of tokens, so the jump from 200 to 2000 lines should be about ten times the jump from 0 to 200
- A missed passphrase, or prompt_tokens barely moving while the padding grows tenfold, means the context was truncated, or the usage figures are estimated or invented
- If the 0-line request already reports noticeably more input tokens than the same request on the official API, a system prompt may have been injected
2000 lines is a few tens of thousands of tokens, so mind the cost on flagship models. Increase n to test longer contexts, but stay under the model's advertised context window.
Method 5: Token Counts and Speed
- Input tokens: a given prompt always tokenizes to the same count under the same model family's tokenizer. If the relay's prompt_tokens differs a lot from the official figure (after accounting for any injected system prompt), you are probably talking to a different model family
- Reasoning tokens: if the official API spends thousands of reasoning tokens on a hard problem and the relay consistently reports zero or a few dozen, reasoning has likely been turned down
- Speed: small models are usually much faster than flagships. A flagship reasoning model that "instantly" solves hard problems and streams far faster than the official API deserves suspicion. Load, region and caching move speed around a lot, though, so treat it as a supporting signal only
Streaming makes speed easy to measure: time from sending the request to the first content chunk is time to first token, and output tokens from usage divided by the remaining generation time gives tokens per second. OpenAI-format streams only include usage at the end if you send stream_options: {"include_usage": true}. Take the median of several runs on each side. On Zivv you can skip the stopwatch: /v1/generation, covered below, returns ttft_ms and duration_ms for every request.
Method 6: A/B Against the Official API
Each method above has blind spots; a side-by-side comparison closes most of them. Run the same scripts twice, once against the relay and once against the official API, changing only BASE_URL, API_KEY and MODEL (model names may be spelled differently on each side, so make sure you compare the same model and version). Do 5 to 10 runs per side and compare:
- Average quiz score
- Order of magnitude of reasoning tokens
- Input tokens for the same prompt
- Whether the passphrase survives
- The returned model field
Then read the evidence with this table:
| What you observe | Likely cause | Strength |
|---|---|---|
| Model field names a different tier or vendor | Model substitution | Strong |
| Quiz scores far below official, reasoning tokens at zero | Reasoning disabled or a non-reasoning model swapped in | Strong |
| Passphrase lost, input tokens far below expected | Context truncation | Strong |
| Input tokens for the same prompt differ a lot from official | Different tokenizer (different model family) or injected system prompt | Medium |
| Answers often stop mid-way with finish_reason length | max_tokens lowered, or set low by you | Medium |
| Much faster than official | Possibly a smaller model | Weak |
| Wrong self-identification | System prompts and training data both affect it | Weak |
| An occasional wrong answer | Randomness | None |
A fair verdict needs at least two strong or medium signals that the official API does not reproduce.
How to Verify on Zivv
Zivv is itself an API relay, so every method above applies to Zivv as well. On top of that, Zivv gives you a few ready-made ways to check.
Look Up the Actual Model and Cost of Any Request
Every response carries an X-Request-ID header. Pass it to /v1/generation:
curl -s "https://zivv.pro/v1/generation?id=<X-Request-ID>" \
-H "Authorization: Bearer $API_KEY" \
| jq '.data | {model, upstream_model, models_tried, input_tokens, output_tokens, total_cost, ttft_ms, duration_ms}'- model: the model name that finally served the request. With model fallback enabled, this can be one of your backups
- upstream_model: the model name the upstream reported in its own response, empty if the upstream reported none. A difference from model is not automatically a problem, since the same model can carry a versioned id on different cloud platforms; a different tier is worth reporting
- models_tried and attempts: the models tried in order, and the details of each attempt
- total_cost and the token counts: cost and usage summed across all attempts
You can only look up your own requests, and the result contains no channel information. Usage is written when the request finishes, so a request that just ended may take a few seconds to appear.
Billing Follows the Model the Upstream Reports
When the upstream reports a different model from the one the gateway sent (a downgrade or a different snapshot), Zivv prices the request by the reported model first, provided that model is priced on Zivv, rather than by the name you requested. In other words, as long as the upstream honestly reports what it swapped in, you pay that model's price, and its name shows up in upstream_model.
Model Switches Only Happen When You Ask
A model usually has several upstream channels, and the gateway moves between them automatically on rate limits or failures; the public model name stays the same, and whatever the upstream reports is recorded in upstream_model. Switching to a different model only happens when you put a models backup list in the request body. In that case the X-Zivv-Model response header names the model that actually served the request (the header only appears on requests with a valid models list), and models_tried in /v1/generation lists the switch. Setup is covered in model fallback and per-request cost lookup.
Usage Logs and Platform-Side Checks
- The Usage logs page in the console lists every request with model, tokens, cost breakdown, duration, time to first token and request ID. If an answer looks wrong, use "Report this request" on that entry to open a ticket with the request ID attached
- Known canned placeholder replies from upstreams (the kind that return fixed text without calling the model) are treated as a failed attempt, and the request moves to the next channel
- If an upstream reports more input tokens than the model's context window can physically hold, the usage is flagged as corrupt and billed from an estimate based on the request body instead
- The admin console has an on-demand deep check for upstream channels (triggered manually by an admin). It inspects the returned model field, whether input token counts really grow with input, reasoning tokens, self-identification and speed, and whether max_tokens, stop, JSON mode, forced tool calls, system prompts and multi-turn context actually take effect
- Service status is public at status.zivv.pro
Testing From Different Clients
- curl / SDKs: every method works here, and this is where you should test
- Claude Code: background tasks use a Haiku-class model (set by ANTHROPIC_DEFAULT_HAIKU_MODEL), so small-model requests in your usage records are expected, not a downgrade. Claude Code also sends a long system prompt and tool definitions, so input tokens are naturally large, and it compacts long sessions. To test the backend model, run curl with the same key and base URL, and use /model in the session to confirm which model is selected. Setup is in the Claude Code API setup guide
- Codex CLI: reasoning effort comes from model_reasoning_effort in config.toml. If you set it to low, weaker answers are your own setting
- Cursor and other editors: they trim and assemble context themselves, which affects answer quality heavily. Do not use them to judge whether the backend is nerfed; test with curl
- ChatGPT / Claude.ai: not the API. You cannot see the model field or tokens, so pasting in the randomized questions by hand gives you a rough indication at best
How to Protect Yourself
- Pin dated snapshot ids in production (for example claude-haiku-4-5-20251001) to take alias drift out of the equation
- Keep your own regression set of 10 to 20 prompts with verifiable answers, run it on a schedule, and alert when the score drops
- Log the model field, usage and request ID for every call so you have evidence when something changes
- Judge relays on transparency: can you see the actual model and cost of each request, is there a public status page? Start with a small top-up, test for a week with the methods above, then commit. See how to choose an API relay
- When you want a backup model, use explicit request-level fallback instead of accepting invisible substitution
FAQ
Can I tell whether a model is downgraded by asking it what it is?
Not on its own. Models often get their own version wrong, training data includes conversations with other models, and a system prompt can rewrite the self-description, so self-identification is a weak signal. Randomized reasoning questions with verifiable answers, repeated several times and compared with the returned model field, reasoning tokens and the official API, are far more reliable.
The model got one question wrong. Is it nerfed?
No. With temperature above zero answers vary, and the official model also misses hard questions. Run at least five rounds, look at the average, and run the same prompts and parameters against the official API. Only a score that is consistently and clearly lower than official, together with other anomalies such as zero reasoning tokens or mismatched input tokens, justifies a conclusion.
The model field matches what I requested. Am I safe?
Not entirely. The server writes the model field and a relay can rewrite it, so a match only means there is no obvious red flag, while a mismatch is a strong signal. To confirm the model is genuine, combine it with behavioral tests such as the randomized quiz, the passphrase test and token counts, which are much harder to fake.
How do I test whether a relay's model is genuine?
Work in this order: check the model field and usage with curl; run the randomized quiz 5 to 10 times and record scores and reasoning tokens; run the passphrase test to see whether long inputs get truncated; then rerun the same scripts against the official API as a baseline. Avoid common liveness prompts like "hi" or "1+1", because some upstreams recognize them and return canned text.
How do I see which model actually served a request on Zivv?
Every response includes an X-Request-ID header. Call GET /v1/generation?id= with that ID and the same API key: model is the model that served the request, upstream_model is the name the upstream reported, total_cost is what the request cost, and models_tried lists every model attempted. The Usage logs page in the console also shows model, tokens and cost for each request.