{"slug":"saylorinnovations-com-api-text-token-estimate-01d027","title":"Estimate the LLM token count of text with a low to high range, a breakdown by wo","host":"saylorinnovations.com","method":"GET","resource":"https://saylorinnovations.com/api/text/token-estimate","category":"market","description":"Estimate the LLM token count of text with a low to high range, a breakdown by words, numbers, symbols and CJK, and whether it fits a given context window","price_listed":0.01,"price_asked":0.01,"state":"answering","state_label":"Answering","checks_7d":1,"answered_7d":1,"latency_ms_median":300,"reported_calls_30d":0,"reported_payers_30d":0,"networks":["eip155:137","eip155:42161","eip155:8453","solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp"],"badge":"unverified","paid_checks_7d":0,"paid_ok_7d":0,"example_input":{"method":"GET","queryParams":{"context_tokens":"8000","text":"The quick brown fox jumps over the lazy dog. Call fn(x) { return 42; }"},"type":"http"},"output_schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","properties":{"input":{"additionalProperties":false,"properties":{"method":{"enum":["GET"],"type":"string"},"queryParams":{"properties":{"context_tokens":{"description":"optional model context size to test the fit against","type":"string"},"text":{"description":"Text to estimate, up to 20000 characters","type":"string"}},"required":["text"],"type":"object"},"type":{"const":"http","type":"string"}},"required":["type","method"],"type":"object"},"output":{"properties":{"example":{"properties":{"breakdown":{"description":"Estimated tokens by source: words, numbers, symbols, plus CJK characters, emoji and newlines counted","properties":{"cjk_characters":{"description":"Cjk characters","type":["number","null"]},"emoji":{"description":"Emoji counted","type":["number","null"]},"newlines":{"description":"Newlines counted","type":["number","null"]},"number_tokens":{"description":"Number tokens","type":["number","null"]},"symbol_tokens":{"description":"Symbol tokens","type":["number","null"]},"word_tokens":{"description":"Word tokens","type":["number","null"]}},"type":"object"},"characters":{"description":"Characters in the text","type":"number"},"chars_per_token":{"description":"Chars per token","type":"number"},"estimated_tokens":{"description":"Estimated tokens","type":"number"},"fits_context":{"description":"Fits context","type":["object","null"]},"looks_like_code":{"description":"Looks like code","type":"boolean"},"note":{"description":"Caveat or context for reading the result","type":"string"},"range":{"description":"Range covered by the data","type":"object"},"source":{"description":"Data source the values come from","type":"string"},"words":{"description":"Words","type":"number"}},"required":["estimated_tokens","range"],"type":"object"},"type":{"const":"json","type":"string"}},"required":["type"],"type":"object"}},"required":["input"],"type":"object"},"history":[{"day":"2026-10-20","reachable":true,"status":402,"valid_402":true,"asked_usdc":0.01,"price_match":true,"latency_ms":300,"error":null}],"description_full":"Estimate the LLM token count of text with a low to high range, a breakdown by words, numbers, symbols and CJK, and whether it fits a given context window","last_updated":"2026-10-20T14:52:08.12Z","schemes":["exact"]}