tokens
tokenizer
tiktoken
llm
gpt
context-window
LLM Token Counter ($0.002/call)
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.
Paid endpoint: $0.002 per call via the x402 protocol (USDC on Base). An unpaid request returns 402 with payment requirements in the PAYMENT-REQUIRED response header; attach payment and retry.
post/count
Request
- Base URL: https://x402.shizu.me
- URL: https://x402.shizu.me/count
- Auth: none declared
Response
Paid result (JSON)
Changes
No recorded changes to this operation across all 1 revision of this API.