EngineVersion 1claudeClasses

claude:Usage

Token usage information for a Claude API call.

Tracks input tokens, output tokens, and total tokens consumed.

Properties

claude:inputTokens (optional, max 1)

Number of tokens in the input.

Usage may specify input token count (non-negative).

Tokens consumed from the prompt and messages.

claude:outputTokens (optional, max 1)

Number of tokens in the output.

Usage may specify output token count (non-negative).

Tokens generated in the completion.

On this page