Completion_Usage

struct

Usage statistics for the completion request.

Property Type Description
completion_tokens Integer Number of tokens in the generated completion.
completion_tokens_details Completion_Usage_Completion_Details Breakdown of tokens used in the completion.
prompt_cache_hit_tokens Integer Number of tokens in the prompt that hit the context cache.
prompt_cache_miss_tokens Integer Number of tokens in the prompt that missed the context cache.
prompt_tokens Integer Number of tokens in the prompt.
prompt_tokens_details Completion_Usage_Prompt_Details Breakdown of tokens used in the prompt.
total_tokens Integer Total number of tokens used in the request (prompt + completion).
part of the Apioo-Project