
Description
Calling several LLM providers with different, changing price rules makes per-call cost hard to track. genai-prices, maintained by the Pydantic team, is a library that calculates prices for LLM inference API calls.
It aggregates current provider prices and computes cost precisely from input and output tokens for monitoring.
Price data:Major providers.
Precise:Per token.
Updated:Follows changes.
Monitoring:Spend tracking.
It aggregates current provider prices and computes cost precisely from input and output tokens for monitoring.
Features
Price data:Major providers.
Precise:Per token.
Updated:Follows changes.
Monitoring:Spend tracking.
