LLM Cost Calculator
Calculate and track LLM API costs. OpenAI, Anthropic pricing.
Quick Start
bash
npx ai-cost-calc calc gpt-4-turbo 1000 500
What It Does
- •Calculate per-request costs
- •Compare prices across models
- •Project monthly spending
- •Track usage with budgets
Usage
bash
# Calculate cost npx ai-cost-calc calc gpt-4 1000 500 # Compare models npx ai-cost-calc compare 1000 500 # Monthly projection npx ai-cost-calc project gpt-4-turbo 100 1000 500 # List models npx ai-cost-calc models
Part of the LXGIC Dev Toolkit
One of 110+ free developer tools from LXGIC Studios.
- •GitHub: https://github.com/lxgicstudios
- •Twitter: https://x.com/lxgicstudios
- •Website: https://lxgicstudios.com
License
MIT. Free forever.