Call this function to find out the cumulative number of tokens that you have sent and recieved in the current session. The price will be shown if known.

token_usage()

Value

A data frame

Examples

token_usage()
#>    provider                    model input output cached_input price
#> 1    OpenAI                  gpt-4.1  1371    694            0 $0.01
#> 2 Anthropic claude-sonnet-4-20250514    14    179            0 $0.00