← Back to directory

Exact BPE token counts for OpenAI-family encodings (o200k_base for GPT-4o/4.1/5,...

https://workbot1.oddsys.org/tokens

Overview

Exact BPE token counts for OpenAI-family encodings (o200k_base for GPT-4o/4.1/5, cl100k_base for GPT-4/3.5/embeddings), single text or batches, with optional truncation to a token budget. Up to 512 KB per call.

Protocol x402 (POST)
Price $0.0010
Payment Asset USD Coin
Payment Network eip155:8453
Category uncategorized
Provider Busker Token Counter
Source self-registered
Indexed 2026-09-17 09:09:08

Health

Status healthy
Latency (p50) 519ms
Uptime (30d) 100.0%
Reliability Score 90/100
Last Checked 2026-10-31 07:01:59
Last Healthy 2026-10-31 07:01:59
Consecutive Failures 0

x402 Payment Validation

Payment Requirements Valid
Asset Verified Known USDC
Facilitator —

Input Schema

{ "body": { "encoding": "o200k_base", "text": "The quick brown fox jumps over the lazy dog." }, "bodyType": "json", "method": "POST", "type": "http" }

Output Schema

{ "body": { "chars": "number", "encoding": "string", "models": "string — which model families use it", "results": "array (batch mode) — { tokens, chars, truncated? }; totalTokens", "tokens": "number", "truncated": "string (only when truncate given and exceeded)" }, "bodyType": "json", "example": { "chars": 44, "encoding": "o200k_base", "models": "gpt-4o, gpt-4.1, gpt-5 family, o-series", "tokens": 10 } }