LlmapiChatCompletionUsage
LlmapiChatCompletionUsage =
object
Defined in: src/client/types.gen.ts:1478
Usage contains token usage information
Properties
completion_tokens?
optionalcompletion_tokens:number
Defined in: src/client/types.gen.ts:1482
CompletionTokens is the number of tokens in the completion
cost_micro_usd?
optionalcost_micro_usd:number
Defined in: src/client/types.gen.ts:1486
CostMicroUSD is the cost of this completion in micro-dollars (USD × 1,000,000)
credits_used?
optionalcredits_used:number
Defined in: src/client/types.gen.ts:1490
CreditsUsed is the number of credits consumed by this completion (ceiling of cost / MicroUSDPerCredit)
init_completion_tokens?
optionalinit_completion_tokens:number
Defined in: src/client/types.gen.ts:1494
InitCompletionTokens is the completion token count from the first LLM call before the MCP tool loop
init_prompt_tokens?
optionalinit_prompt_tokens:number
Defined in: src/client/types.gen.ts:1498
InitPromptTokens is the prompt token count from the first LLM call before the MCP tool loop
prompt_tokens?
optionalprompt_tokens:number
Defined in: src/client/types.gen.ts:1502
PromptTokens is the number of tokens in the prompt
tool_cost_micro_usd?
optionaltool_cost_micro_usd:number
Defined in: src/client/types.gen.ts:1506
ToolCostMicroUSD is the cost of MCP tool calls in micro-dollars (subset of CostMicroUSD)
total_tokens?
optionaltotal_tokens:number
Defined in: src/client/types.gen.ts:1510
TotalTokens is the total number of tokens used