EmbeddingsUsageOutput interface

Measurement of the amount of tokens used in this request and response.

Properties

prompt_tokens

Number of tokens in the request.

total_tokens

Total number of tokens transacted in this request/response. Should equal the number of tokens in the request.

Property Details

prompt_tokens

Number of tokens in the request.

prompt_tokens: number

Property Value

number

total_tokens

Total number of tokens transacted in this request/response. Should equal the number of tokens in the request.

total_tokens: number

Property Value

number