llm-credit-sdk
SDK for estimating and reconciling LLM token costs using a credit system.
tokenx
Fast and lightweight token estimation for any LLM without requiring a full tokenizer
openai-gpt-token-counter
Count the number of OpenAI tokens in a string. Supports all OpenAI Text models (text-davinci-003, gpt-3.5-turbo, gpt-4)