llm-pricing is a package for calculating the complex and intricate usage fees of LLMs (Large Language Models).
Please do not use this for critical purposes as errors and incorrect pricing for models may occur. This is intended only as an estimate for fee calculations.
npm i llm-pricing
- Track historical data to accurately calculate past prices
- Support pricing for both Vertex AI and AI Studio in Google Gemini
- Implement support for Google Gemini Context Caching
- Add embedding support
- Implement multimodal support
- Add unit testing