openai-gpt-token-counter
Count the number of OpenAI tokens in a string. Supports all OpenAI Text models including GPT-5, GPT-4, GPT-3.5-turbo, and specialized models
@tokenlens/models
Tree-shakeable static models.dev catalog split by provider for TokenLens.
gpt-tokens
Calculate the token consumption and amount of openai gpt message