PromptTokensDetails - Go SDK

PromptTokensDetails type definition

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

Detailed prompt token usage

Fields

FieldTypeRequiredDescription
AudioTokens*int64Audio input tokens
CacheWriteTokens*int64Tokens written to cache. Only returned for models with explicit caching and cache write pricing.
CachedTokens*int64Cached prompt tokens
VideoTokens*int64Video input tokens