Estimate an AI session's footprint from token counts
estimate_session_footprintEstimate the water and energy of an AI session (e.g. an agent or coding-assistant run) from its token usage. Pass the SUM across all model calls: input_tokens (uncached prompt tokens), output_tokens (including any reasoning/thinking tokens) and cached_input_tokens (prompt-cache reads). model_class: 'small' (Haiku/mini/Flash-class), 'frontier' or 'reasoning'. Returns a central estimate and a 0.3x–3x range – this is an order-of-magnitude estimate calibrated to published per-prompt figures, not a measurement.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| boundary | No | comprehensive | |
| model_class | No | frontier | |
| input_tokens | Yes | ||
| output_tokens | Yes | ||
| cached_input_tokens | No |