gpt-tokens
Calculate the token consumption and amount of openai gpt message
tokenx
Fast and lightweight token estimation for any LLM without requiring a full tokenizer
openai-tokens
A service for calculating, managing, truncating openai prompt tokens
codemass
Weigh your code in tokens - calculate AI API costs for your codebase