tokencost

JSON →
library 0.1.26 ·python
verified May 22, 2026

tokencost is a Python library that provides client-side token counting and USD cost estimation for over 400 Large Language Models (LLMs) from providers like OpenAI, Anthropic, Google, and AWS Bedrock. It helps AI agents and LLM applications accurately track and manage API expenses by offering up-to-date pricing and model-specific tokenization, released frequently to reflect changing LLM provider costs.

total hits 23
actors 5 distinct systems
last hit 1d ago MJ12bot
ByteDance
9
GPTBot
6
Script
2

top countries 🇸🇬 Singapore · 🇺🇸 United States · 🇫🇷 France · 🇩🇪 Germany · 🇨🇦 Canada