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)
tokenx
GPT token estimation and context size utilities without a full tokenizer
chatgpt
Node.js client for the official ChatGPT API.
hercai
A powerful library for interacting with the Herc.ai API