[KongchangAI]
Conceptusage 字段 / usage 对象

usage

A statistics object returned in the API responses of mainstream large language models, containing information such as input and output token counts and cache read/write token counts, used for cost accounting and determining cache hits.

Timeline (last 90 days)

Oct 15

The usage field in the Messages API has always been used to return the token statistics of the current call (such as input_tokens, output_tokens).

Unverified50%
Oct 15

Whether caching is working can be determined by checking the usage block in each response (such as the ratio of cache_read_input_tokens to input_tokens) rather than by feeling.

Unverified50%
Oct 15

The usage object in mainstream API responses typically includes fields such as input_tokens, output_tokens, cache_creation_input_tokens, and cache_read_input_tokens; naming differs slightly across providers but the semantics are similar.

Unverified50%

All Facts (3)

Source Articles