{"slug":"x402-shizu-me-count-e6d21f","title":"Exact token count for text using OpenAI tokenizers","host":"x402.shizu.me","method":"POST","resource":"https://x402.shizu.me/count","category":"market","description":"Exact token count for text using OpenAI tokenizers. Body: {text, encoding?} where encoding is cl100k_base or o200k_base (default). Returns tokens and char_count. Use to budget prompts and context windows.","price_listed":0.002,"price_asked":0.002,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":949,"reported_calls_30d":2,"reported_payers_30d":2,"networks":["eip155:8453"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"body":{"encoding":"o200k_base","text":"hello world"},"bodyType":"json","method":"POST","type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"properties":{"body":{"properties":{"encoding":{},"text":{}},"required":["text","encoding"],"type":"object"},"method":{"const":"POST"}},"required":["method"],"type":"object"}}},"history":[{"day":"2026-10-10","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.002,"price_match":true,"latency_ms":949,"error":null}],"description_full":"Exact token count for text using OpenAI tokenizers. Body: {text, encoding?} where encoding is cl100k_base or o200k_base (default). Returns tokens and char_count. Use to budget prompts and context windows.","last_updated":"2026-10-09T02:35:10.063Z","schemes":["exact"]}