OpenAI::TranscriptTextUsageTokens
Inherits JSON::Serializable < Reference < Object
Usage statistics for models billed by token usage.
Constructors
new(pull : JSON::PullParser)
Sourcenew(type_value : TranscriptTextUsageTokensType = TranscriptTextUsageTokensType::Tokens, input_tokens : Int64 = 0, input_token_details : TranscriptTextUsageTokensInputTokenDetails | Nil = nil, output_tokens : Int64 = 0, total_tokens : Int64 = 0)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
input_token_details=(input_token_details : TranscriptTextUsageTokensInputTokenDetails | Nil)
Details about the input tokens billed for this request.
type_value=(type_value : TranscriptTextUsageTokensType)
The type of the usage object. Always tokens for this variant.