TokenSave Data · Dataset
Does the prompt language change what AI coding costs? Claude Code and Codex in 5 languages
Asking Claude Code or Codex to build the same game in Korean, Japanese, Spanish or Ukrainian cost about the same as asking in English: over 5 runs per language, the median input tokens per task stayed within 1.2% of the English median in both tools. What changed was the game itself: its on-screen text, and Claude Code’s code comments, followed the language of the prompt.
Measured 2026-10-18 and 2026-10-19 · 5 languages · 2 tools · 5 runs each · License CC BY 4.0 · Related: Claude Code vs Codex: the same coding task
DOI 10.5281/zenodo.23454308 · 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.
Key findings
- The prompt language barely moves the bill for agentic coding. The median Claude Code task used 79,213 input tokens with the English prompt and 78,381 to 80,134 with the Korean, Japanese, Spanish and Ukrainian prompts. In Codex the medians were 48,600 and 48,163 to 48,950. The prompt itself is about a hundred tokens; the agent’s own instructions, tools and the code it writes make up the rest.
- Output did not grow either. Median output was 7,870 tokens in English and 7,116 to 8,841 in the other languages for Claude Code, and 3,476 against 3,038 to 3,739 for Codex, inside the run-to-run spread. At the API list prices Claude Code reports, a task cost $0.31 to $0.43 in any language.
- The run matters more than the language. The most expensive runs were English ones: 2 of 5 English Claude Code runs took an extra agent step and used 122,899 to 123,666 input tokens, and one English Codex run made an extra model call and used 64,581. None of the 20 non-English Claude Code runs took the extra step; with five runs per language this looks like chance rather than an effect of English.
- The game speaks your language. In all 40 non-English runs the game’s on-screen text (score, lives, level, messages) was written in the prompt’s language (40 of 40). Claude Code also wrote its code comments in that language in all 20 of its non-English runs, and in 3 of the 5 Spanish runs named its variables and functions in Spanish (
paleta,ladrillos,dibujarBola). Codex wrote 4 comments in its 20 non-English runs, all in English. - Almost every game worked. 49 of 50 games loaded and responded to keyboard and mouse in a headless browser without script errors. The exception was a Codex run with the Ukrainian prompt, which crashed on a canvas error (a particle effect drew a circle with a negative radius).
- The language tax is a chat problem. In plain chat, the same answer in Korean or Japanese needs far more tokens than in English (see token cost by language). In an agentic coding task that difference is lost in the agent’s fixed overhead and the English-like code it writes.
Tokens, time and cost by prompt language
5 runs per language and tool. Codex does not report cost. “Game text language” is the language of the on-screen text in the generated game. Every run is in the CSV.
| Prompt language | Tool | Input tokens (median) | Input tokens (range) | Output tokens (median) | Time (median) | API cost (range) | Game works | Game text language |
|---|---|---|---|---|---|---|---|---|
| English | Claude Code | 79,213 | 78,058 to 123,666 | 7,870 | 64 s | $0.35 to $0.42 | 5 / 5 | English |
| English | Codex | 48,600 | 47,954 to 64,581 | 3,476 | 39 s | – | 5 / 5 | English |
| Korean | Claude Code | 78,381 | 77,399 to 80,452 | 7,116 | 59 s | $0.34 to $0.42 | 5 / 5 | Korean |
| Korean | Codex | 48,793 | 47,677 to 48,868 | 3,632 | 37 s | – | 5 / 5 | Korean |
| Japanese | Claude Code | 79,053 | 78,263 to 80,471 | 7,583 | 70 s | $0.36 to $0.42 | 5 / 5 | Japanese |
| Japanese | Codex | 48,756 | 48,063 to 49,184 | 3,544 | 39 s | – | 5 / 5 | Japanese |
| Spanish | Claude Code | 80,134 | 76,570 to 80,764 | 8,841 | 82 s | $0.31 to $0.43 | 5 / 5 | Spanish |
| Spanish | Codex | 48,163 | 47,740 to 49,107 | 3,038 | 38 s | – | 5 / 5 | Spanish |
| Ukrainian | Claude Code | 79,926 | 78,718 to 80,777 | 8,628 | 71 s | $0.37 to $0.43 | 5 / 5 | Ukrainian |
| Ukrainian | Codex | 48,950 | 47,898 to 49,736 | 3,739 | 35 s | – | 4 / 5 | Ukrainian |
Prompts
- English: “Make a brick-breaker game that runs in the browser as a single file named index.html in the current folder. It needs 2 levels, a score display and 3 lives, and it must be playable with the keyboard and the mouse. Write the file and finish.”
- Korean: “브라우저에서 실행되는 벽돌깨기 게임을 현재 폴더에 index.html 파일 하나로 만들어 주세요. 레벨 2개, 점수 표시, 목숨 3개가 있어야 하고 키보드와 마우스로 플레이할 수 있어야 합니다. 파일을 작성하고 끝내 주세요.”
- Japanese: “ブラウザで動くブロック崩しゲームを、現在のフォルダに index.html という1つのファイルで作ってください。レベル2つ、スコア表示、ライフ3つが必要で、キーボードとマウスで遊べるようにしてください。ファイルを書いたら終了してください。”
- Spanish: “Crea un juego de romper ladrillos que funcione en el navegador como un único archivo llamado index.html en la carpeta actual. Necesita 2 niveles, un marcador de puntos y 3 vidas, y debe poder jugarse con el teclado y el ratón. Escribe el archivo y termina.”
- Ukrainian: “Створи гру «арканоїд» (розбивання цеглинок), що працює в браузері, як один файл index.html у поточній папці. Потрібні 2 рівні, відображення рахунку та 3 життя, і грати має бути можна клавіатурою та мишею. Запиши файл і заверши.”
Method
- Both tools on one Windows laptop, effort medium, each run in its own empty folder, prompt sent through standard input.
- Claude Code 2.1.295 (Opus 5.5):
claude -p --permission-mode acceptEdits --output-format json, no MCP servers. Input tokens are summed over every model in the run, including cache reads. - Codex CLI 0.162 (gpt-6-luna):
codex exec --json -s workspace-write; tokens from theturn.completedevents. - Runs 1 and 2 were measured on 2026-10-18 (the English ones are the same-task runs of the Claude Code vs Codex dataset); runs 3 to 5 for all five languages were added on 2026-10-19 with the same versions and settings, cycling through the five languages in turn.
- “Game works”: the file loaded in headless Chromium with a canvas, took mouse clicks and arrow keys for about two seconds and threw no script errors. The game text language was read from the generated HTML. The scripts that rebuild the table from the raw logs and run this check are in the GitHub mirror.
Limitations
- One small task and five runs per language and tool; bigger projects with more conversation may show a larger language effect.
- Only the first prompt was in another language; a long back-and-forth in Korean or Japanese would add more non-English text to the context.
- The cost figures are list-price estimates; subscription plans are not billed per token.
How to cite
Free to use, quote and republish with attribution under CC BY 4.0. Please link to this page.
TokenSave (2026). Coding in your own language: does the prompt language change what Claude Code and Codex cost? [Data set]. Zenodo. https://doi.org/10.5281/zenodo.23454308
BibTeX
@misc{tokensave_ai_coding_prompt_language_2026,
author = {{TokenSave}},
title = {Coding in your own language: does the prompt language change what Claude Code and Codex cost?},
year = {2026},
publisher = {Zenodo},
doi = {10.5281/zenodo.23454308},
url = {https://doi.org/10.5281/zenodo.23454308},
note = {Dataset, CC BY 4.0}
}
Embed the chart
Related
- Claude Code vs Codex: startup tokens and the same coding task
- Token cost by language
- Does AI search in your language?
Questions or corrections: contact@jonhisking.com