{"category":"text","endpoint":"https://setget.net/v1/tools/token-estimate","examples":[{"input":{"text":"The quick brown fox jumps over the lazy dog."},"output":{"characters":44,"note":"Approximation: about 4 characters or 0.75 words per token. \"tokens\" is the mean of the two estimates.","tokens":12,"tokens_by_characters":11,"tokens_by_words":12,"words":9}}],"input_schema":{"additionalProperties":false,"properties":{"text":{"description":"The text to estimate.","examples":["The quick brown fox jumps over the lazy dog."],"type":"string"}},"required":["text"],"type":"object"},"keywords":["token count","tokens","llm","gpt","claude","context window","prompt length","tokenizer","estimate tokens"],"related":["text-count","text-chunk","truncate-middle"],"slug":"token-estimate","summary":"Estimate how many LLM tokens a text uses, from its characters and words. An approximation, not an exact count.","tier":"inline","title":"Token estimator","url":"https://setget.net/tools/token-estimate"}
