Documentation
¶
Overview ¶
Package cost estimates per-model pricing for prompt tokens.
Prices are per 1M input tokens, in USD, approximate list prices as of this project's v1. The map is used for README-style "cost impact per 100k runs" projections; it is not a substitute for live billing data.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EstimateBulk ¶
EstimateBulk computes the cost to run each model's tokens n times.
func Lookup ¶
Lookup returns the USD per-1M-token price for a model. Unlisted models fall back to a neutral default so projections never crash.
func SetOverride ¶ added in v1.3.0
SetOverride pins model's price, overriding the built-in list.
Types ¶
Click to show internal directories.
Click to hide internal directories.