Skip to main content

estimate_cost

Function estimate_cost 

Source
pub fn estimate_cost(model: &str, metering: &Metering) -> Option<CostEstimate>
Expand description

Estimates one normalized call using Kennedy’s compiled standard-tier price catalog.

Thinking tokens are billed at the model’s output rate. Unknown models and unavailable provider metering intentionally return None.