tokencost
JSON →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.
Traffic · last 30 days ↑1900% vs prev 7d
total hits 23
actors 5 distinct systems
last hit 1d ago MJ12bot
top countries 🇸🇬 Singapore · 🇺🇸 United States · 🇫🇷 France · 🇩🇪 Germany · 🇨🇦 Canada
API endpoints
full doc /v1/registry/tokencost
install /v1/registry/tokencost/install
compatibility /v1/registry/tokencost/compatibility