Token Counter
Count tokens across all major LLM providers with a single API call. - OpenAI (GPT-4o, GPT-4, GPT-3.5) → exact count via tiktoken - Mistral (mistral-large, mistral-small) → exact count via tiktoken - Anthropic (Claude 3.5, Claude 3) → fast estimation - Google (Gemini 1.5 Pro, Flash) → fast estimation - Cohere (Command R+) → fast estimation Supports plain text and OpenAI-style messages arrays. No…
Token Counter endpoints
| Method | Endpoint | Description |
|---|---|---|
| system | ||
| GET |
health_health_get /health |
|
| meta | ||
| GET |
list_models_models_get /models |
Return all supported models grouped by provider. |
| count | ||
| POST |
count_text_count_post /count |
Count tokens in plain text for the given model. |
| POST |
count_messages_count_messages_post /count-messages |
Count tokens in an OpenAI-style messages array for the given model. |
Token Counter pricing
| Plan | Price | Rate limit | Quotas |
|---|---|---|---|
| BASIC | Free | — |
|
| PRO Recommended | $9 / month | — |
|
| ULTRA | $29 / month | — |
|