Expand description
Per-model USD pricing for cost reporting.
Values in $ per 1M tokens. Returns None for unknown models so that the
caller can set total_cost_usd = None. Public DeepSeek list pricing as of
late 2025 — adjust as needed.
Structs§
Functions§
- map_
stop_ reason - Map OpenAI
finish_reasonto a Claude-stylestop_reason. - model_
pricing - turn_
cost_ usd - Convert a turn’s
UsageInfointo a USD cost given the model. ReturnsNoneif pricing is unknown.