# Usage

The usage module provides precise cost calculation using integer microcents to avoid floating-point precision errors in billing systems.

## CostCalculator

::: fastroai.usage.CostCalculator
    options:
      show_root_heading: true
      show_source: false
      members:
        - __init__
        - calculate_cost
        - microcents_to_dollars
        - dollars_to_microcents
        - format_cost
        - add_pricing_override

---

[← Tools](tools.md){ .md-button } [Tracing →](tracing.md){ .md-button .md-button--primary }
