LlmapiResponseUsage
LlmapiResponseUsage =
object
Defined in: src/client/types.gen.ts:1076
Usage contains token usage information
Properties
completion_tokens?
optionalcompletion_tokens:number
Defined in: src/client/types.gen.ts:1080
CompletionTokens is the number of tokens in the completion
cost_micro_usd?
optionalcost_micro_usd:number
Defined in: src/client/types.gen.ts:1084
CostMicroUSD is the cost of this response in micro-dollars (USD × 1,000,000)
credits_used?
optionalcredits_used:number
Defined in: src/client/types.gen.ts:1088
CreditsUsed is the number of credits consumed by this response
prompt_tokens?
optionalprompt_tokens:number
Defined in: src/client/types.gen.ts:1092
PromptTokens is the number of tokens in the prompt
total_tokens?
optionaltotal_tokens:number
Defined in: src/client/types.gen.ts:1096
TotalTokens is the total number of tokens used