ttok 1.0

AI-generated summary of reporting by Simon Willison’s Weblog. Read the original for the full story.

Why it matters

Very little for most readers: a small token-counting CLI now defaults to the GPT-5-family tokenizer, and independent testing suggests GPT-6 shares it.

Read this as

Simon Willison released version 1.0 of ttok, a small command-line tool that counts how many 'tokens', the word fragments AI models actually read, are in a piece of text. The update changes the default counting method from GPT-4 to the GPT-5 family of models. Independent testing suggests GPT-6 uses the same counting method, so estimates stay accurate.

ttok 1.0 is a free, minor developer utility release: Simon Willison updated his token-counting CLI to default to the GPT-5 tokenizer instead of GPT-4's. No costs or competitive stakes; the practical significance is that token estimates for GPT-5 and GPT-6 stay accurate, since an experiment by William Liu found all seven GPT-5 and GPT-6 models produce identical token counts.

ttok 1.0 changes its default tokenizer from GPT-4's to the GPT-5 family's via tiktoken. OpenAI has not confirmed GPT-6 shares the tokenizer (an open tiktoken issue complains about this), but William Liu's commit shows all seven GPT-5/5.5/5.6 and GPT-6 variants, 5.5, 5.6 Sol/Terra/Luna, 6 Astra/Sol/Luna, match at 44,794 tokens across all 31 fixtures.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

ttok Simon Willison OpenAI tiktoken William Liu

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading