Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions aigateway/types/openai.go
Original file line number Diff line number Diff line change
Expand Up @@ -288,8 +288,9 @@ const (

// ModelTokenPrice is currency plus per-million-token rate (major units, from accounting cents + sku_unit).
type ModelTokenPrice struct {
Currency string `json:"currency"`
PricePerMillion float64 `json:"price_per_million"`
Currency string `json:"currency"`
PricePerMillion float64 `json:"price_per_million"`
CachedPricePerMillion *float64 `json:"cached_price_per_million,omitempty"`
}

// ModelModalPrice is a unit-based media generation price.
Expand Down
Loading