Expand description
Built-in model pricing lookup table.
Used by SessionCoordinator::cost_summary to convert accumulated token
usage into a USD cost breakdown. Prices are per-million-tokens (USD) and
reflect public list prices at time of writing. The lookup is best-effort:
unknown models return None, in which case the runtime simply shows
token totals without a cost figure.
The table is intentionally small — covering only the default models for each supported provider. Users wanting full coverage can supply their own pricing externally.
Functions§
- lookup_
pricing - Look up pricing for a model spec of the form
provider:model.