REST API v2

AI Impact Calculator API

Calculate the carbon, energy, and region-aware water footprint of any AI model call. The only API with water stress scoring per data center region.

v2 adds 14 data center regions with WUE data, 13 AI models, input/output token split, and water stress classification from WRI Aqueduct.

Get API Key on RapidAPI

What's New in v2

💧

Region-Aware Water Impact

14 data center regions with specific WUE and water stress classification from WRI Aqueduct.

🤖

13 AI Models

GPT-4o, Claude 3.5 Sonnet, Gemini 1.5, Mistral, Llama 3, and more.

âš¡

Input/Output Token Split

Output tokens use ~3x more energy. Pass them separately for accurate estimates.

🔄

Backwards Compatible

Old v1 grid keys still work. v1 endpoint remains unchanged.

Base URL

POST https://aiimpactcalculator.com/api/v2/calculate
GET  https://aiimpactcalculator.com/api/v2/calculate  (list models & regions)

Authentication

Pass your API key as a Bearer token in the Authorization header.

Authorization: Bearer YOUR_API_KEY
🔑

Get your API key for free

Subscribe on RapidAPI - free plan includes 100 requests/month, no credit card required. Subscribe now →

Endpoint

POST/api/v2/calculate

Request Body

FieldTypeRequiredDescription
modelstringYesAI model key (see table below)
tokensnumberYes*Total tokens. *Or provide input_tokens + output_tokens instead.
input_tokensnumberNoInput/prompt tokens (for more accurate estimates)
output_tokensnumberNoOutput/completion tokens (uses ~3x more energy)
regionstringNoData center region key (default: global-avg)
custom_wh_per_1knumberConditionalRequired when model is custom

Models

modelProviderDescriptionEnergy rate
gpt-4oOpenAIGPT-4o3.5 Wh / 1k tokens
gpt-4OpenAIGPT-4 / GPT-4 Turbo4.5 Wh / 1k tokens
gpt-3.5OpenAIGPT-3.5 Turbo0.5 Wh / 1k tokens
claude-3.5-sonnetAnthropicClaude 3.5 Sonnet2.0 Wh / 1k tokens
claude-3-opusAnthropicClaude 3 Opus4.5 Wh / 1k tokens
claude-3-haikuAnthropicClaude 3 Haiku0.3 Wh / 1k tokens
gemini-1.5-proGoogleGemini 1.5 Pro3.0 Wh / 1k tokens
gemini-1.5-flashGoogleGemini 1.5 Flash0.4 Wh / 1k tokens
llama-70bMetaLlama 3 70B0.5 Wh / 1k tokens
llama-7bMetaSmall Models (7B)0.1 Wh / 1k tokens
mistral-largeMistral AIMistral Large2.5 Wh / 1k tokens
image-genVariousImage Generation2.9 Wh / image
custom-CustomProvide custom_wh_per_1k

RegionsNEW in v2

Each region has its own carbon intensity, Water Usage Effectiveness (WUE), and water stress level from the WRI Aqueduct Water Risk Atlas.

regionLocationCarbon (gCO2/kWh)WUE (L/kWh)Water Stress
us-east-virginiaUS East (Virginia)3101.8high
us-west-oregonUS West (Oregon)800.8moderate
us-west-californiaUS West (California)2101.2critical
us-central-iowaUS Central (Iowa)4201.5moderate
us-central-texasUS Central (Texas)3502.0high
eu-irelandEU (Ireland)3000.9low
eu-netherlandsEU (Netherlands)3301.1moderate
eu-germanyEU (Germany)3501.4moderate
eu-swedenEU (Sweden)200.3low
eu-franceEU (France)550.6low
asia-singaporeAsia (Singapore)4102.2high
asia-japan-tokyoAsia (Tokyo)4501.6moderate
me-uaeMiddle East (UAE)5003.0critical
global-avgGlobal Average4751.8moderate

Example Response

{
  "model": "gpt-4o",
  "input_tokens": 30000,
  "output_tokens": 20000,
  "tokens": 50000,
  "region": "us-east-virginia",
  "region_label": "US East (Virginia)",
  "energy_kwh": 0.2825,
  "carbon_gco2e": 87.575,
  "water": {
    "liters": 0.5085,
    "stress_level": "high",
    "wue_liters_per_kwh": 1.8,
    "note": "US East (Virginia) is classified as high water stress by WRI Aqueduct. Evaporative cooling places significant pressure on local water resources."
  },
  "equivalents": {
    "smartphones_charged": 23.54,
    "km_driven": 0.515,
    "led_hours": 31.39,
    "netflix_hours_sd": 3.67,
    "google_searches": 942,
    "water_bottles_500ml": 1.02,
    "emails_equivalent": 22
  },
  "data_sources": [
    "EIA State Electricity Profiles (2025)",
    "WRI Aqueduct Water Risk Atlas"
  ],
  "plan": "free",
  "methodology_url": "https://aiimpactcalculator.com/methodology"
}

💧 Understanding Water Stress

Water Usage Effectiveness (WUE) measures how many liters of water a data center consumes per kWh of IT energy. Higher WUE means more water consumption. The water stress level adds geographic context from the WRI Aqueduct Water Risk Atlas.

low Low Stress

Abundant water supply. Cool climate reduces cooling needs. Example: Sweden, France.

moderate Moderate Stress

Water consumption is notable but manageable relative to supply. Example: Oregon, Netherlands.

high High Stress

Evaporative cooling places significant pressure on local water. Example: Virginia, Texas.

critical Critical Stress

Data centers compete directly with agriculture and municipal needs. Example: California, UAE.

Code Snippets

curl -X POST 'https://aiimpactcalculator.com/api/v2/calculate' \
  -H 'Content-Type: application/json' \
  -H 'Authorization: Bearer YOUR_API_KEY' \
  -d '{
    "model": "gpt-4o",
    "tokens": 50000,
    "region": "us-east-virginia"
  }'

Error Codes

HTTP StatuscodeMeaning
401UNAUTHORIZEDMissing or invalid API key
400INVALID_MODELUnknown model value
400INVALID_TOKENStokens must be positive; or provide input_tokens + output_tokens
400MISSING_CUSTOM_RATEcustom_wh_per_1k required for custom model
400BAD_REQUESTMalformed JSON body
429RATE_LIMIT_EXCEEDEDMonthly request limit reached

Pricing

PlanPriceRequests/moBest for
Basic$0 / mo100Evaluation, personal projects
Pro$9 / mo5,000Solo devs, small apps
Ultra$29 / mo50,000SaaS products, agencies
Mega$99 / mo500,000Enterprise, ESG reporting
View plans and subscribe on RapidAPI →

Ready to integrate?

The only AI emissions API with region-aware water stress scoring. Free plan available.