A solo developer in Korea conducted an experiment to measure the token costs of prompts in 27 different languages using OpenAI's latest o200k_base tokenizer. The results revealed significant shifts from previous assumptions, with languages like Czech, Polish, and Ukrainian now being more token-intensive than expected, while Indic, Arabic, and Thai scripts have become considerably more efficient. Simplified Chinese, in particular, proved to be nearly as cost-effective as English, contrasting sharply with Traditional Chinese. AI
IMPACT Developers should re-evaluate prompt costs, especially for non-English languages, and consider using English for system prompts to optimize expenses.
RANK_REASON Analysis of tokenization costs for different languages using a specific model tokenizer. [lever_c_demoted from research: ic=1 ai=1.0]
- Arabic
- Bangla
- Czech
- English
- GPT-3.5
- GPT-4
- GPT-4o
- Hindi
- js-tiktoken
- Korean
- OpenAI
- Polish
- Russian
- Simplified Chinese
- Thai
- Traditional Chinese
- Ukrainian
AI-generated summary · Google Gemini · from 1 sources. How we write summaries →