Skip to content

ccusage / pricing-fetcher

pricing-fetcher ​

Fileoverview ​

Model pricing data fetcher for cost calculations

This module provides a PricingFetcher class that retrieves and caches model pricing information from LiteLLM's pricing database for accurate cost calculations based on token usage.

Classes ​

ClassDescription
PricingFetcherFetches and caches model pricing information from LiteLLM Implements Disposable pattern for automatic resource cleanup

Released under the MIT License.