Token Counter & Context-Window Fit Calculator
token_counter_calculatorToken Counter & Context-Window Fit Calculator — Estimate the token count of any text with the chars/4 words/0.75 heuristic, check if it fits 8k, 128k, 200k, or 1M context windows, and gauge API cost.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chars | Yes | ||
| words | Yes | ||
| pricePerMillion | Yes |