PublicPricing - Go SDK

PublicPricing type definition

The Go SDK and docs are currently in beta. Report issues on GitHub.

Pricing information for the model

Fields

FieldTypeRequiredDescription
Audio*stringPrice in USD per audio input token
AudioOutput*stringPrice in USD per audio output token
Completionstring✔️Price in USD per token for completion (output) generation
Discount*float64Fractional discount applied to this endpoint’s pricing; the price is multiplied by (1 - discount) (0 = no discount, 1 = free)
Image*stringPrice in USD per input image
ImageOutput*stringPrice in USD per output image
ImageToken*stringPrice in USD per image token
InputAudioCache*stringPrice in USD per cached audio input token
InputCacheRead*stringPrice in USD per cached input token (read)
InputCacheWrite*stringPrice per cache-write token, in USD per token. For providers with multiple cache TTLs (e.g. Anthropic), this is the default (5-minute) cache-write rate.
InputCacheWrite1h*stringPrice per 1-hour cache-write token, in USD per token. Only present for providers that price an extended (1-hour) cache TTL separately, such as Anthropic.
InternalReasoning*stringPrice in USD per internal reasoning token
Promptstring✔️Price in USD per token for prompt (input) processing
Request*stringPrice in USD per request
WebSearch*stringPrice in USD per web search