get usage

This block is part of the anthropic group and was last modified in core v15.0.0.

get usage v15.0.0

Report total tokens and cost used on this connection (USD and the connection's currency), with a per-category breakdown.

In pins 1 + flow
  • flow
    flow
  • connection required
    anthropicconnection
Out pins 8 + flow
  • flow
    flow
  • success
    condition
  • connection
    anthropicconnection

    The same connection, passed through so it chains on to the next block.

  • total cost
    number

    Total cost in the connection's currency.

  • total cost (USD)
    number
  • currency
    value
  • tokens
    object

    input_tokens, output_tokens, cache_read_tokens, cache_creation_tokens.

  • by category
    array<object>

    Per-category token breakdown.

  • calls
    number

    Total number of calls.

usage
spending
claude usage
ai cost
token usage

A typical wiring for get usage: a function trigger starts the flow; the flow out pin feeds debug.

Studio canvas example for the get usage block: typical wiring for get usage.

Version history

Introduced in v15.0.0.


Back to anthropic Return to the main group to view all sub-groups Back to anthropic Return to the group to view all blocks within this group