Cost & FinOps

Tokencost

Lightweight open-source library maintaining an up-to-date price table for estimating prompt/completion costs across 400+ models.

Website ↗ GitHub ↗
CategoryCost & FinOps
Open sourceYes
Self-hostableYes
Pricing modelfree
Pricing notesMIT Python library; no commercial tier
Framework integrationsopenai-sdk, anthropic, litellm
Funding / ownershipMaintained by AgentOps

Pricing/feature source: https://github.com/AgentOps-AI/tokencost