DeepSeek token counter

DeepSeek has released its tokenizers with its open model weights, so exact counting can run entirely in your browser. Nothing is uploaded and nothing is estimated.

Why count DeepSeek tokens at all

DeepSeek's prices are low enough that many teams stop thinking about token counts, which is exactly how caching discounts go unclaimed. On the current V4 Flash model, cache-hit input bills at a fiftieth of the standard input rate, so knowing how many of your tokens sit in a repeated prefix is worth real money at volume. DeepSeek's docs also state an overall price increase is coming, which makes the counting habit worth building now. The pricing table carries the current numbers, and the prompt caching guide explains how prefix caching works mechanically.

Counting notes

Other counters: Kimi · OpenAI · Claude