Skip to main content

ModelProviderPricing

Type Alias ModelProviderPricing 

Source
pub type ModelProviderPricing = HashMap<String, HashMap<String, f64>>;
Expand description

Per-provider pricing snapshot consumed by the cost tracker.

Outer key: model provider alias (e.g. openrouter, anthropic, azure-openai). Inner key: user-defined model identifier, optionally suffixed with .input / .output to encode pricing dimension. Values are USD per 1M tokens.

Aliased Typeยง

pub struct ModelProviderPricing { /* private fields */ }