Skip to main content

Crate skopos_pricing

Crate skopos_pricing 

Source
Expand description

Pricing catalog for the providers Skopos tracks.

A built-in Catalog::defaults ships with the per-million-token rates Anthropic, OpenAI and Google publish for the models that currently appear in skopos.db. The catalog can be overlaid at runtime from a TOML file (default path: ~/.config/skopos/pricing.toml) so the user can refresh prices without recompiling.

The expected TOML shape is one [[model]] table per entry:

[[model]]
provider = "anthropic"
model = "claude-opus-4-7"
input_per_million = 5.0
output_per_million = 25.0
cached_input_per_million = 0.50

Structs§

Catalog
ModelPrice

Functions§

default_overrides_path
Default location for the user-editable override file.