Skip to content

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.

Usage

token_usage()

Value

A data frame

Examples

token_usage()
#>    provider           model input output price
#> 1    OpenAI         gpt-4.1  2301    892 $0.01
#> 2 Anthropic claude-sonnet-4    14    180 $0.00