← All endpoints
x402.shizu.me count
https://x402.shizu.me/count
payable
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.
We sent a real
POST request to this endpoint and it
answered 402 with payment requirements we could parse.
- Price
- $0.002
- Network
- base
- Pay to
- 0x217e5Fe265EB78b29067bF8324ef03a7D8e167C4
- Spec dialect
- v2 (declares x402Version 2)
- Transport
- PAYMENT-REQUIRED header
- HTTP method
- POST
- Response latency
- 877 ms
- Payment options
- 1 usable of 1
- Last checked
- 2026-08-10T09:14:37.230Z (2d ago)
- Category
- finance-crypto
Re-check it yourself:
curl "https://api.the402.dev/validate?url=https%3A%2F%2Fx402.shizu.me%2Fcount"