# Token estimator

Estimate how many LLM tokens a text uses, from its characters and words. An approximation, not an exact count.

- Endpoint: `POST https://setget.net/v1/tools/token-estimate` with JSON `{"input": {...}}`
- MCP: `run_tool` with `slug` = `token-estimate`
- Page: https://setget.net/tools/token-estimate

## Inputs

- `text` (required, string): The text to estimate.

## Example

```json
{"input":{"text":"The quick brown fox jumps over the lazy dog."}}
```

Result:

```json
{"tokens":12,"tokens_by_characters":11,"tokens_by_words":12,"characters":44,"words":9,"note":"Approximation: about 4 characters or 0.75 words per token. \"tokens\" is the mean of the two estimates."}
```

**How accurate is this?** It is a rule of thumb: about 4 characters or 0.75 words per token for English prose. Real counts depend on the model and are often 10 to 30 per cent different.

**When is the estimate furthest off?** For code, numbers, emoji and languages other than English, which usually need more tokens than this suggests. Use the model's own tokenizer when the exact number matters.
