The LLM tokens pricing landscape has become quite complex as model providers have introduced more e.g. different prices for tokens depending on prompt length, mcp context, caching, tool calls, etc. I understand there are tools to manage API spend by developers but there weren’t any lightweight options for analysing the revenue side.
Hence, I created LLMBillingKit, a Python package that calculates net margin per LLM API call through measuring what you charged your users versus what each LLM request cost. I built this hoping to give more visibility on the unit economics and revenue financials behind each token. Please let me know what you think!
davidphan11•1h ago
Hence, I created LLMBillingKit, a Python package that calculates net margin per LLM API call through measuring what you charged your users versus what each LLM request cost. I built this hoping to give more visibility on the unit economics and revenue financials behind each token. Please let me know what you think!
Install via `pip install llmbillingkit`
Repo link: github.com/dphan8/LLMBillingKit
PyPI: pypi.org/project/LLMBillingKit/