Interface: CerebrasUsage
@providerprotocol/ai / cerebras / CerebrasUsage
Interface: CerebrasUsage
Section titled “Interface: CerebrasUsage”Defined in: src/providers/cerebras/types.ts:265
Token usage statistics from the API response
Properties
Section titled “Properties”completion_tokens
Section titled “completion_tokens”completion_tokens:
number
Defined in: src/providers/cerebras/types.ts:267
completion_tokens_details?
Section titled “completion_tokens_details?”
optionalcompletion_tokens_details:object
Defined in: src/providers/cerebras/types.ts:272
accepted_prediction_tokens?
Section titled “accepted_prediction_tokens?”
optionalaccepted_prediction_tokens:number
rejected_prediction_tokens?
Section titled “rejected_prediction_tokens?”
optionalrejected_prediction_tokens:number
prompt_tokens
Section titled “prompt_tokens”prompt_tokens:
number
Defined in: src/providers/cerebras/types.ts:266
prompt_tokens_details?
Section titled “prompt_tokens_details?”
optionalprompt_tokens_details:object
Defined in: src/providers/cerebras/types.ts:269
cached_tokens?
Section titled “cached_tokens?”
optionalcached_tokens:number
total_tokens
Section titled “total_tokens”total_tokens:
number
Defined in: src/providers/cerebras/types.ts:268