TokenSave logo TokenSave

TokenSave Data · Dataset

Same code, about 60% more output tokens: Claude vs GPT vs Gemini in four coding tools and five languages

To write the same kind of game, Claude Opus 5.5 spent about 60% more output tokens per character of code than Gemini 4 Argon, and about 57% more than GPT. Opus came out the same in Claude Code (591 tokens per 1,000 characters) and in Google’s Antigravity CLI (596), so it is the model’s tokenizer, not the tool. Writing the prompt in Korean, Japanese, Spanish or Ukrainian instead of English changed input tokens by only a few percent.

Measured 2026-10-18 to 2026-10-23 · 80 runs · Claude Code 2.1.295, Codex CLI 0.162, Antigravity CLI 1.4.5 · License CC BY 4.0

DOI 10.5281/zenodo.23585139 · Also on Hugging Face · Kaggle · GitHub

Count the tokens in your own text → Paste your prompt and see tokens, characters and API cost on GPT, Claude and Gemini. Free and private: it runs in your browser. Output tokens per 1,000 characters of generated game code by model, tool and prompt language

Key findings

Output tokens per 1,000 characters of code

Output tokens reported by each tool divided by the characters of the index.html it wrote. Average of 5 runs (Claude Code, Codex) or 3 runs (Antigravity) per language.

Tool + modelEnglishKoreanJapaneseSpanishUkrainian
Claude Code + Opus 5.5554624581614584
Antigravity + Opus 5.5574590606612597
Antigravity + Gemini 4 Argon367380370364378
Codex + gpt-6-luna367386385366376

Input tokens by prompt language

Claude Code: input + cache creation + cache read. Codex: input including cached. Antigravity: its reported input_tokens (cache reads are reported separately and are in the CSV). Claude Code’s English average includes two runs from 2026-10-18 that took an extra step.

Tool + modelEnglishKoreanJapaneseSpanishUkrainian
Claude Code + Opus 5.596,46278,63879,26679,03079,787
Antigravity + Opus 5.59,82211,3169,9839,94510,958
Antigravity + Gemini 4 Argon13,04113,28912,40812,62913,447
Codex + gpt-6-luna51,67448,53848,66048,20148,816

Method

Limitations

How to cite

Free to use, quote and republish with attribution under CC BY 4.0. Please link to this page.

TokenSave (2026). Same code, about 60% more output tokens: Claude vs GPT vs Gemini in four coding tools and five languages [Data set]. Zenodo. https://doi.org/10.5281/zenodo.23585139

Embed the chart

Related

Questions or corrections: contact@jonhisking.com