Documentation
¶
Overview ¶
Package pricing converts normalized token counts into a per-model USD cost. It is the SOLE constructor of a derived agent cost: Total is always Input+Output.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Breakdown ¶
type Breakdown struct{ Input, Output, CacheRead, CacheWrite int }
Breakdown is NORMALIZED token counts: Input EXCLUDES cached.
type Rates ¶
type Rates struct {
Currency string `json:"currency"`
InputPerM float64 `json:"input_per_m"`
OutputPerM float64 `json:"output_per_m"`
CacheReadPerM float64 `json:"cache_read_per_m"`
CacheWritePerM float64 `json:"cache_write_per_m"`
UpdatedOn string `json:"updated_on,omitempty"`
Source string `json:"source,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.