Estimate DeepSeek token count
deepseek_count_tokensEstimate token counts from text with DeepSeek's published English and CJK character ratios for prompt budgeting; this is an approximation, not an exact tokenizer.
Instructions
Estimate the token count of some text using DeepSeek's published ratios (about 0.3 tokens per English character, 0.6 per CJK character). An estimate for budgeting, not an exact tokenizer.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"text": "<text>"
},
"name": "deepseek_count_tokens"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| text | Yes | Text to measure. |