Skip to Content

LlmapiResponseUsage

LlmapiResponseUsage = object

Defined in: src/client/types.gen.ts:2078 

Usage contains token usage information

Properties

completion_tokens?

optional completion_tokens: number

Defined in: src/client/types.gen.ts:2082 

CompletionTokens is the number of tokens in the completion


cost_micro_usd?

optional cost_micro_usd: number

Defined in: src/client/types.gen.ts:2086 

CostMicroUSD is the cost of this response in micro-dollars (USD × 1,000,000)


credits_used?

optional credits_used: number

Defined in: src/client/types.gen.ts:2090 

CreditsUsed is the number of credits consumed by this response


init_completion_tokens?

optional init_completion_tokens: number

Defined in: src/client/types.gen.ts:2094 

InitCompletionTokens is the completion token count from the first LLM call before the MCP tool loop


init_prompt_tokens?

optional init_prompt_tokens: number

Defined in: src/client/types.gen.ts:2098 

InitPromptTokens is the prompt token count from the first LLM call before the MCP tool loop


prompt_tokens?

optional prompt_tokens: number

Defined in: src/client/types.gen.ts:2102 

PromptTokens is the number of tokens in the prompt


tool_cost_micro_usd?

optional tool_cost_micro_usd: number

Defined in: src/client/types.gen.ts:2106 

ToolCostMicroUSD is the cost of MCP tool calls in micro-dollars (subset of CostMicroUSD)


total_tokens?

optional total_tokens: number

Defined in: src/client/types.gen.ts:2110 

TotalTokens is the total number of tokens used

Last updated on