DEV Community

boluo
boluo

Posted on

Gemini 4 Neon vs Claude Fable 5.2: A Beginner Tutorial on Measuring Output Tokens Before You Pick

I switched a production config based on a comparison table, then spent a month paying for that decision. This post is the re-measurement, plus the three checks I now run before trusting any model comparison.

The short version for anyone starting out: on the same six tasks, both models answered everything correctly, so accuracy gave me nothing. What separated them was output tokens, and output tokens turned out to be mostly a property of my prompt rather than of the model.

If your work looks like this Use this Why
single-file code generation, one shot Gemini 4 Neon same pass rate, under a fifth of the cost once formatting is constrained
long tool-calling agent loops Gemini 4 Neon, on price alone $6.86 vs $15.47 per task at list price, more steps but cheaper
repository-wide Q&A, needle in long context check SWE-Atlas-QnA and GraphWalks, not a composite score the composite gap sits almost entirely in the Q&A subtest
shipping patches, driving a terminal either FrontierCode and Terminal-Bench are within about a point
you only get one change today add an output format rule to your prompt no cost, no vendor change, visible on the invoice same day

Why I re-ran it at all

The table that misled me had two rows that nobody reads together. One row said 46.2% against 45.3%, a 0.9 point gap, in favour of Gemini 4 Neon. The row underneath, from the same third party, re-ran the same 132 tasks three times each on one shared harness and got 44.4% against 49.1%, in favour of Claude Fable 5.2.

The direction flipped. That is what happens when you subtract two numbers produced by two different harnesses: you are measuring the gap between harnesses, not between models.

Two more things I had assumed were stable turned out not to be.

The leaderboard I was reading ranks model-plus-agent pairs, not models. Gemini 4 Neon's 58.64 was produced inside Antigravity CLI, Claude Fable 5.2's 58.47 inside Claude Code, GPT-6.2 Astra's 53.47 inside Codex. A terminal agent decides what the model can see, which tools it can call, how it retries, how the context gets trimmed. Swap the agent and the number moves. The top five sit inside 0.48 points with no confidence interval published, so 0.17 points is rounding noise wearing a crown.

And effort, the setting I had never touched, moves a single model further than the gap between models. Claude Fable 5.2 spans 47.96 at low to 58.47 at xhigh, 10.5 points. GPT-6.2 Astra spans 17.9. For reference, Gemini 4 Neon against Astra at their best settings is 5.17 points apart. Every leaderboard flattens each model to one number and erases the variable with the largest range.

What I held fixed

Item Setting
Endpoint OpenAI-compatible API, one base URL for both models
Model IDs gemini-4-neon and claude-fable-5-2
Prompt byte-identical per task, only the model field changed
Effort Gemini 4 Neon pinned to low for the main run, swept separately
Logged pass or fail, output tokens, reasoning tokens, elapsed time
Cost basis list price × measured tokens, not the billed amount in the response
Date 2 December 2026

That cost basis line is not pedantry. One provider returns a cost field with a breakdown, the other returns nothing comparable. Recompute from list prices or your cross-model numbers are fiction. Input and output are both $3/$15 against $8/$40 per million, a flat 2.67× either way.

Six tasks, each with a broken twin

Every task ships with a plausible-but-wrong implementation. Before a task is allowed anywhere near a model, two checks must pass: my correct version passes, the broken version fails. If either flips, the task is dead. Without this, a failure tells you nothing about whether the model or the question is at fault.

Task What it probes
RFC 6902 JSON Patch, 17 cases array insert vs object overwrite, ~1/~0 escape order, move into own subtree must raise, input untouched on failure
Snowflake ID generator no duplicates or wraparound inside one millisecond, monotonic after clock rollback, out-of-range worker_id raises
200,000 overlapping intervals under 3 seconds a quadratic implementation cannot get there
Monthly billing with cache discount $1,080/day, $32,400/month, item by item
Architecture defect review, 8 seeded defects do both report the same set
Go concurrency minimal fix do both find the root cause

The patch semantics come from RFC 6902 rather than from memory, which matters because the trailing edge cases are where naive implementations die.

Both models got everything right

Three for three on the hard tasks, both sides. The easier batch matched too: identical billing figures down to the item, correct cache discount, and the same six of my eight seeded defects reported by both, with the two remaining ones turning out to duplicate the first six. That was my checklist being redundant, not the models missing anything.

Six tasks, six passes, no separation. This is where a comparison table stops being useful, because the thing it measures has saturated.

Where the money actually goes

The snowflake task opened widest: 9,385 output tokens against 1,986, a 4.7× token gap, and the 2.67× unit price stacks on top for 12.3× overall. The other two hard tasks landed at 5.3× and 1.3×.

Then the part I did not expect. One line at the end of the prompt, asking for "cause" then "verification command" and nothing else, changed the bill outright.

Config Output tokens Reasoning tokens Cost Time
Neon low, no format rule 7,525 6,362 $0.1138 90.1s
Neon default, no format rule 11,479 10,096 $0.1725 170.7s
Neon low, format rule 1,304 1,019 $0.0205 18.2s
Fable 5.2, no format rule 3,483 — $0.1404 45.1s
Fable 5.2, format rule 2,491 — $0.1007 28.4s

Neon shed 82.7% of its output, Fable 5.2 shed 28.5%. Post-constraint, Neon costs under a fifth of Fable 5.2 and finishes 1.6× faster.

I read both outputs line by line to check nothing got flattened. Same three findings, downstream blocking, lock or connection-pool exhaustion, memory leak, every command runnable. Neon's was marginally sharper, grepping socketRead, epollWait and jdbc where Fable used a bare grep 'at '.

Worth noting: Neon's reasoning tokens fell from 6,362 to 1,019, tracking the output drop almost one to one. Most of that verbosity was going into phrasing. Whether that holds on other tasks I do not know, so do not build a cost model on it.

The two failure modes nobody warns you about

Reasoning effort never reaches Claude Fable 5.2 through a compatible endpoint. Three tasks, four effort levels, twelve runs: output tokens came out at 3,462/3,483/2,966/3,795 on one task, 1,500/1,136/1,376/1,259 on the next, 549/580/542/565 on the last, with reasoning tokens flat at zero everywhere. No ordering, no trend, and high sitting 14% below low on the first task. The vendor docs say reasoning is always on and defaults to high, controlled by output_config.effort, so the model is thinking. The compatible layer is dropping both the count and the parameter. Gemini 4 Neon under the same harness climbs cleanly from 1,624 to 2,770.

Gemini 4 Neon's upper effort levels time out on long tasks. Low returned in 90 seconds, default in 171. High and xhigh, fired twice each in parallel, all four died at 600 seconds. On any path with a timeout budget, only the low setting is real.

The false reading I nearly published

My first pass marked both long code tasks as failures, with the error pointing at the opening backtick of a code block. It looked exactly like a model ignoring the format instruction.

It was the gateway's max_tokens default of 8,192, cutting the output mid-block so the closing fence never arrived. Re-running with an explicit max_tokens passed both at 8,899 and 9,385 output tokens, both above 8,192, which confirms it.

Rule of thumb: when your scorer hits a syntax error, check finish_reason for length first. Skip it and you will file a harness bug as a capability problem, and it will look like a real finding.

Wiring both models behind one key

Key creation, quota, model scope and the IP allowlist are in Crazyrouter's authentication and key docs. Here is the part you actually type.

Create the key, put it in a password manager immediately, keep it in an environment variable. Then change two fields, the base URL and the model name:

import os
from openai import OpenAI

# both models share one key and one endpoint, only the model field changes
PROMPT = "Explain in three paragraphs what a prompt is, with one example."
client = OpenAI(
    base_url="https://api.crazyrouter.com/v1",
    api_key=os.environ["CRAZYROUTER_API_KEY"],
)

for model in ("gemini-4-neon", "claude-fable-5-2"):
    r = client.chat.completions.create(
        model=model,
        messages=[{"role": "user", "content": PROMPT}],
        max_tokens=32000,
    )
    # run one small call first and check that usage comes back
    print(model, r.usage.prompt_tokens, r.usage.completion_tokens)
Enter fullscreen mode Exit fullscreen mode

The IDs are gemini-4-neon and claude-fable-5-2. The same task-level thinking, applied to a different pair of everyday models, is written up in the everyday workload benchmark.

Then do the step everyone skips: read the usage block. Whether effort reached upstream and whether reasoning tokens are counted is only visible there. That is how I found the effort problem above, four requests with the same prompt and a zero in the reasoning field every time.

What I still cannot tell you

Multi-turn repair is untested. Everything here is single-shot, and real development is fail, paste the error, retry. Long context is second-hand, and the 95.2% on GraphWalks measures retrieval, a layer short of locating the offending file in a million-token repo and fixing it. Close either gap and the ranking can move.

What holds today, in the conditions above: accuracy cannot separate these two, output tokens can, and output tokens answer to your prompt more than to your model choice.

Top comments (0)