Skip to main content
Token usage statistics for an LLM call.

Properties

inputTokens?: number

Number of tokens in the prompt/input.

outputTokens?: number

Number of tokens in the completion/output.

totalTokens?: number

Total token count (computed from input + output if omitted).