Pricing - Go SDK

Pricing type definition

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

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 in USD per cached input token (write)
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