AI Footprint

v1.1.0
io.github.nickjlamb/ai-footprint Checked 3 days ago Published 26 days ago

Water and energy footprint of AI use: chat prompts, agent sessions, methodology and sources.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

estimate_ai_footprint Estimate AI water & energy footprint

Estimate the water (mL) and energy (Wh) used by chat-style AI prompts (ChatGPT, Claude, Gemini etc.). queries_per_day: prompts per day. usage: 'simple' (text chat, ~0.34 Wh/prompt), 'mixed' (~1 Wh), 'intensive' (image generation / deep reasoning, ~3 Wh). boundary: 'onsite' (data-centre cooling only, as vendors report) or 'comprehensive' (adds water used to generate the electricity – the wider boundary most researchers use). days: number of days to total over (e.g. 250 workdays, 365). Returns per-prompt, per-day and total figures with everyday equivalents, assumptions and a source link. For…

ParameterTypeDescription
queries_per_day *numberNumber of AI prompts (chat messages sent) per day, e.g. 20.
boundarystringAccounting boundary: 'onsite' = data-centre cooling water only (as vendors report); 'comprehensive' = also counts water used to generate the electricity (the wider boundary most researchers use).
daysintegerNumber of days to total over, e.g. 1, 250 (working year) or 365.
usagestringType of use: 'simple' = text chat (~0.34 Wh/prompt), 'mixed' = some heavier prompts (~1 Wh), 'intensive' = image generation or deep reasoning (~3 Wh).

get_methodology AI water footprint methodology and sources

Return the per-prompt energy and water figures, accounting boundaries, sources, limitations, a citation line, and the reasons published AI water estimates differ by ~100x (0.3 mL to 50 mL per prompt). Use it to explain or check a published AI water or energy figure.

compare_water_use Put an amount of water in everyday context

Convert a volume of water (mL) into everyday comparisons: teaspoons, 500 mL bottles, shower time, and lifecycle items (A4 sheet, almond, cup of tea, beef burger), plus the number of typical AI text prompts it equals. Includes the boundary caveat that lifecycle footprints are not like-for-like.

ParameterTypeDescription
water_ml *numberVolume of water in millilitres (mL) to put in context.

estimate_session_footprint Estimate an AI session's footprint from token counts

Estimate 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.

ParameterTypeDescription
input_tokens *integerUncached input (prompt) tokens, summed across every model call in the session.
output_tokens *integerOutput tokens, including any reasoning/thinking tokens, summed across every model call.
boundarystringAccounting boundary: 'onsite' = data-centre cooling water only (as vendors report); 'comprehensive' = also counts water used to generate the electricity (the wider boundary most researchers use).
cached_input_tokensintegerPrompt-cache read tokens, summed across every model call. 0 if unknown.
model_classstringModel size: 'small' = Haiku/mini/Flash-class, 'frontier' = flagship models, 'reasoning' = extended-thinking models.