cd /news/large-language-models/same-code-about-60-more-output-token… · home › topics › large-language-models › article
[ARTICLE · art-155767] src=dev.to ↗ pub= topic=large-language-models verified=true sentiment=· neutral

Same code, about 60% more output tokens on Claude: 80 runs across Claude Code, Codex and Antigravity in 5 languages

A developer ran 80 tests across Claude Code, Codex and Google's Antigravity CLI in five prompt languages and found that Claude Opus 5.5 consumed roughly 60% more output tokens per character of generated code than Gemini 4 Argon and about 57% more than gpt-6-luna. Because Opus scored nearly identically in two different tools (591 and 596 tokens per character), the developer attributes the gap to the model's tokenizer rather than the surrounding tool, noting that output tokens cost five times more than input on the API. An earlier test found the same source code in 10 programming languages needed 43% to 59% more Claude tokens than GPT tokens.

by read2 min views4 publishedOct 23, 2026

Yesterday I compared Google's new Antigravity CLI with Claude Code and Codex. One number kept bothering me: Claude Opus 5.5 wrote shorter games than Gemini but did not use proportionally fewer output tokens. So I divided output tokens by the size of the file each run wrote, across four tool and model pairs and five prompt languages.

Tool + model EN KO JA ES UK Average
Claude Code + Opus 5.5 554 624 581 614 584 591
Antigravity + Opus 5.5 574 590 606 612 597 596
Antigravity + Gemini 4 Argon 367 380 370 364 378 372
Codex + gpt-6-luna 367 386 385 366 376 376

Opus needed about 60% more output tokens per character than Gemini, and about 57% more than GPT. The interesting part is that Opus came out almost the same in two very different tools (591 and 596). That points at the model's tokenizer, not the tool around it. The language of the prompt barely mattered.

Output tokens are the expensive ones. On the API, Opus 5.5 charges five times more for output than for input, so this gap goes straight into the bill, on top of any difference in how much code each model decides to write.

This also fits an earlier test of mine, where the same source code in 10 programming languages needed 43% to 59% more Claude tokens than GPT tokens.

Input tokens EN KO JA ES UK
Claude Code + Opus 5.5 96,462* 78,638 79,266 79,030 79,787
Codex + gpt-6-luna 51,674 48,538 48,660 48,201 48,816
Antigravity + Gemini 4 Argon 13,041 13,289 12,408 12,629 13,447
Antigravity + Opus 5.5 9,822 11,316 9,983 9,945 10,958

*Two of the five English Claude Code runs took an extra step.

The prompt is a few dozen tokens; the rest of every request is the tool's own instructions. Which tool you use decides the input size, not which language you write in.

One more detail: in Antigravity, Opus wrote longer games for Korean and Ukrainian prompts (about 31% and 20% more characters than in English), so its total output rose there. Per character it stayed the same.

79 of 80 did, and every game showed its text in the prompt language. The one failure is a Ukrainian Codex game from the earlier test.

── more in #large-language-models 4 stories · sorted by recency
── more on @claude opus 5.5 3 stories trending now
sponsored brought to you by zahid.host 4,200+ EU-deployed projects
reading about agents? ship yours in a single git push.

Run your AI side-project on zahid.host

EU-based hosting, git-push deploys, automatic HTTPS, no cold starts. Free tier with a custom domain — perfect for shipping the agent you just read about.

$git push zahid main
→ Live at https://your-agent.zahid.host ✓
Get free account → Pricing
from €0/mo · no card required
LIVE [news/same-code-about-60-m…] indexed:0 read:2min 2026-10-23 · —