Skip to main content

pricing_for_entry

Function pricing_for_entry 

Source
pub fn pricing_for_entry(entry: &UsageEntry) -> ModelPricing
Expand description

Per-turn rates: pricing_for_model, except Haiku 5.5+ turns whose prompt (input + cache reads + cache writes) exceeds 100k tokens, which bill the long-prompt tier.