{"name":"token-count","description":"Token count / tokenizer estimate / GPT-4 token count / Claude token count / Gemini token count / context-window pre-flight. Pure-local heuristic estimator targeting cl100k_base / o200k_base (GPT-4o) with calibrated multipliers for Claude and Gemini. Input model name is matched against an internal table of supported tokenizers. Accuracy ±5% versus tiktoken on typical English. No upstream call.","price":"$0.001","method":"POST","input_schema":{"properties":{"text":{"type":"string","description":"Text to count. Up to 1,000,000 chars."},"model":{"type":"string","description":"Target model. Examples: 'gpt-4o' (default), 'claude-sonnet-4-5', 'gemini-2-pro'. Free-form; matched against an internal multiplier table."}},"required":["text"]},"input_example":{"text":"Hello world, this is a test of the tokenizer.","model":"gpt-4o"},"output_example":{"text_chars":46,"model":"gpt-4o","matched_tokenizer":"gpt-4o","estimated_tokens":11,"accuracy_note":"Heuristic estimate, ±5% vs tiktoken cl100k_base on typical English text. Larger error on heavy punctuation, code, or non-Latin scripts. Pure-local — no upstream call.","source":"DIY heuristic (cl100k_base-shaped)"},"x402_payment_required":true,"x402_facilitator":"https://api.cdp.coinbase.com/platform/v2/x402"}