Python/JS/Go library for pricing AI model usage from provider responses.
RunCost is a library and API for pricing AI model usage. It provides deterministic cost calculation from normalized usage or provider responses, supporting OpenAI, Anthropic, Gemini, AWS Bedrock, and many other providers. It includes a Python SDK (runcost-ai on PyPI) with sync/async clients, budget estimation, reconciliation, and framework integrations (LangChain, Vercel AI SDK, LlamaIndex, etc.).
Tracking AI API costs, building cost-aware AI applications, and auditing model usage.
Free Open-source library (PyPI package).
Developers building AI applications who need cost visibility.
runcost.com
Runcost — Visit website