litellm/litellm/rust/crates/cost
kenneth-berri 41fa625322
feat(model-catalog): read output_cost_per_video in the rust registry check (#51433)
* feat(model-catalog): read output_cost_per_video in the rust registry check

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

* test(model-catalog): keep FLAT_KEY_PATTERN and the parser in agreement on output_cost_per_video

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>

---------

Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
2026-11-12 14:58:24 -08:00
..
src feat(model-catalog): read output_cost_per_video in the rust registry check (#51433) 2026-11-12 14:58:24 -08:00
AGENTS.md chore: move workspace packages under litellm (#51000) 2026-11-12 04:19:57 +00:00
Cargo.toml chore: move workspace packages under litellm (#51000) 2026-11-12 04:19:57 +00:00
README.md chore: move workspace packages under litellm (#51000) 2026-11-12 04:19:57 +00:00

litellm-cost

This crate holds the price data model that litellm-model-catalog lowers each catalog entry into, plus the usage, call context and priced outcome types that calculate will compute over. There is no calculate until the token pricing PR lands. UnitPrice is USD per unit and Usd is an amount, and only the operations that make sense between them exist, so a price is never added to an amount. Prices::band and Prices::rate resolve a token rate the way Python's _get_token_base_cost does