Skip to main content

Module pricing

Module pricing 

Source
Expand description

Pricing cache and refresh helpers.

Structs§

Pricing
Per-model pricing in USD per million tokens.
PricingCache
Cached pricing payload persisted on disk.
PricingCatalog
Resolved pricing data for a run.
PricingLoadOptions
Pricing load options.

Enums§

CacheDecision
High-level cache action.

Functions§

decide_cache_action
Decide whether pricing should be refreshed.
default_cache_path
Resolve the on-disk cache path.
load_pricing_catalog
Load pricing with cache + refresh behavior.