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
- The tokenizer is the reference implementation from DeepSeek's own releases, not an approximation. Coverage for the V4 generation is verified as part of the counter rollout.
- The current V4 Flash and V4 Pro models take 1,000,000 tokens of context with up to 384,000 output. See how that compares at context windows.
- Methods and verification: how we count.