← Back to directory

Token counter, count LLM tokens (GPT, OpenAI tokenizer), context window check. C...

https://lookupkit.dev/api/token_count

Overview

Token counter, count LLM tokens (GPT, OpenAI tokenizer), context window check. Count tokens in a text with an offline tokenizer: OpenAI's o200k_base (the encoding of GPT-4o, GPT-4.1 and o-series models). Counts for other model families (Claude, Gemini, Llama) are estimates. Optionally checks whether it fits a limit. The text is not stored or logged.

Protocol x402
Price $0.0010
Payment Asset USD Coin
Payment Network eip155:8453
Category uncategorized
Provider Lookup Kit
Source bazaar
Indexed 2026-11-23 09:13:41

Health

Status unknown
Latency (p50) —
Uptime (30d) —
Reliability Score —
Last Checked Never
Last Healthy Never
Consecutive Failures 0

x402 Payment Validation

Payment Requirements —
Asset Verified —
Facilitator —

Input Schema

{ "method": "GET", "queryParams": { "text": "Hello, world! How many tokens is this sentence?" }, "type": "http" }

Output Schema

{ "example": { "characters": 47, "other_models_rough_range": { "high": 14, "low": 10, "note": "Rough estimate only: Claude, Gemini, Llama and other tokenizers count differently." }, "tokenizer": "o200k_base (OpenAI GPT-4o / GPT-4.1 / o-series)", "tokens": 11, "tool": "token_count", "version": "1.1.0" }, "type": "json" }