CompletionsUsage interface

Representation of the token counts processed for a completions request. Counts consider all tokens across prompts, choices, choice alternates, best_of generations, and other consumers.

Properties

completionTokens

The number of tokens generated across all completions emissions.

promptTokens

The number of tokens in the provided prompts for the completions request.

totalTokens

The total number of tokens processed for the completions request and response.

Property Details

completionTokens

The number of tokens generated across all completions emissions.

completionTokens: number

Property Value

number

promptTokens

The number of tokens in the provided prompts for the completions request.

promptTokens: number

Property Value

number

totalTokens

The total number of tokens processed for the completions request and response.

totalTokens: number

Property Value

number