tokenx
Fast and lightweight token estimation for any LLM without requiring a full tokenizer
gpt-tokens
Calculate the token consumption and amount of openai gpt message
openai-tokens
A service for calculating, managing, truncating openai prompt tokens
ai-meter
A javascript library designed to estimate AI models tokens and its API costs.