AgentOps-AI/tokencost

Easy token price estimates for 400+ LLMs. TokenOps.

66
/ 100
Established

Provides client-side token counting using OpenAI's Tiktoken tokenizer and Anthropic's beta token counting API, ensuring accurate counts across different model families. Integrates seamlessly with OpenAI and Anthropic SDKs, supporting both ChatML message formats and raw string prompts for flexible cost estimation. Maintains a curated pricing table tracking 400+ models with automatic USD cost calculations for prompts and completions.

1,952 stars and 811,233 monthly downloads. Used by 2 other packages. No commits in the last 6 months. Available on PyPI.

Stale 6m
Maintenance 2 / 25
Adoption 22 / 25
Maturity 25 / 25
Community 17 / 25

How are scores calculated?

Stars

1,952

Forks

103

Language

Python

License

MIT

Last pushed

Sep 05, 2025

Monthly downloads

811,233

Commits (30d)

0

Dependencies

3

Reverse dependents

2

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/llm-tools/AgentOps-AI/tokencost"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.