# Electrical Calculators – Energy Cost Calculator

> Electrical Calculators – Energy Cost Calculator is a paid API for AI agents from electrical-calc.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-11-02).

Calculates energy consumption in kWh and its monetary cost from flat-rate or tiered block pricing, with optional demand charge and fixed fee.

## Facts

- Endpoint: GET https://electrical-calc.x402tookit.com/energy-cost?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/electrical-calculators-energy-cost-calculator-efd91a1a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_va26a8cM3NhgdAbNPyW-2

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability electrical-calculators-energy-cost-calculator-efd91a1a
```

Example prompt: What will my electricity cost for a 3.5 kW load running 10 hours a day for 30 days, with tiered rates of 100 kWh at $0.10, 200 kWh at $0.15, and anything above at $0.20, plus a $12 fixed charge?

## When to prefer this

Use this endpoint when you need to compute electricity cost for a load over a period — especially when dealing with tiered/block tariffs or demand charges. Prefer it over manual calculation or generic formula tools when you need a structured breakdown by tier block, automatic kWh computation from load parameters, and a human-readable cost summary in one call.

## Known failure modes

- Missing required powerKw parameter returns a validation error
- Malformed tiers string format causes a parsing error
- Providing both kwh and powerKw may cause ambiguity — kwh takes precedence
- Non-numeric values for numeric fields return an error
- Negative values for power or rate may produce nonsensical results

## How this service works

Energy use in kWh and its cost from a flat rate or tiered blocks, plus an optional demand charge and fixed fee.

## Output

Returns total kWh consumed, itemized cost broken down by tier blocks (each with kWh, rate, and cost), demand charge, fixed charge, total cost, average kW, a human-readable summary, verdict, and any warnings or degraded-data flags.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "powerKw"
     ],
     "properties": {
      "kwh": {
       "type": "number",
       "description": "Energy in kWh for the period; overrides powerKw x hours x days"
      },
      "days": {
       "type": "number",
       "description": "Number of days in the period (default 30)"
      },
      "tiers": {
       "type": "string",
       "description": "Blocks as size:rate pairs separated by semicolons, e.g. 100:0.10;200:0.15;inf:0.20 (kWh per block : price per kWh)"
      },
      "peakKw": {
       "type": "number",
       "description": "Peak demand in kW for the demand charge (default powerKw)"
      },
      "powerKw": {
       "type": "number",
       "description": "Average running load in kilowatts (or send kwh to override)"
      },
      "fixedCharge": {
       "type": "number",
       "description": "Fixed charge for the period in your currency (default 0)"
      },
      "hoursPerDay": {
       "type": "number",
       "description": "Hours of use per day, 0 to 24 (default 24)"
      },
      "flatRatePerKwh": {
       "type": "number",
       "description": "Price per kWh in your currency (use this or tiers)"
      },
      "demandRatePerKw": {
       "type": "number",
       "description": "Demand charge per kW of peak per period (default 0)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "kwh": {
       "type": [
        "null",
        "number"
       ]
      },
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "days": {
       "type": [
        "null",
        "number"
       ]
      },
      "blocks": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "object",
        "properties": {
         "kwh": {
          "type": [
           "null",
           "number"
          ]
         },
         "cost": {
        
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/electrical-calculators-energy-cost-calculator-efd91a1a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from electrical-calc.x402tookit.com](https://www.zero.xyz/host/electrical-calc.x402tookit.com/llms.txt)
