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
anthropicconnectionThe same connection, passed through so it chains on to the next block.
- total cost
numberTotal cost in the connection's currency.
- total cost (USD)
number - currency
value - tokens
objectinput_tokens, output_tokens, cache_read_tokens, cache_creation_tokens.
- by category
array<object>Per-category token breakdown.
- calls
numberTotal 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.

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
