{"ok":true,"result":{"slug":"ai-token-counter","name":"AI Token Counter","summary":"Count LLM tokens in text: exact counts for OpenAI's o200k_base and cl100k_base tokenizers, estimates for Claude, Gemini and Llama, and how much of common context windows it fills.","description":"Count tokens exactly for OpenAI o200k_base and cl100k_base, with labelled estimates for Claude, Gemini and Llama, and check which context windows your prompt fits.","method":"POST","endpoint":"/api/v1/tools/ai-token-counter","plan":"free","mcpName":"ai_token_counter","input":{"type":"object","additionalProperties":false,"properties":{"input":{"type":"string","description":"The text or prompt to count.","maxLength":200000}},"required":["input"]},"example":{"input":"PithLab counts tokens the way GPT-4o does."},"randomOutput":false,"network":false,"docs":"https://pithlab.com/developers/tools/ai-token-counter","page":"https://pithlab.com/tools/ai-token-counter"}}