Catalog/eng-energy-cost

Calculators

Energy cost calculator API

Compute electricity cost from power draw, runtime, and tariff (cost = (W/1000)·hours·$/kWh) with daily, monthly, and annual projections. Answers 'cost to run a 100W device 5h/day at $0.15/kWh','annual electricity bill for this load','kWh per month'.

Price$0.01per request
MethodPOST
Route/v1/calc/eng-energy-cost
StatusLive
MIME typeapplication/json
Rate limit120/minute
CacheNo cache
calcengineeringenergyelectricitycostkwhtariffconsumption
API URLhttps://x402.hexl.dev/v1/calc/eng-energy-cost
Integration docs
Example request
{
  "powerW": 100,
  "hoursPerDay": 5,
  "tariffPerKwh": 0.15
}
Example response
{
  "powerW": 100,
  "hoursPerDay": 5,
  "tariffPerKwh": 0.15,
  "kwhPerDay": 0.5,
  "kwhPerMonth": 15,
  "kwhPerYear": 182.5,
  "costPerDay": 0.075,
  "costPerMonth": 2.25,
  "costPerYear": 27.38,
  "formula": "cost = (W/1000) * hours * tariff"
}
Input schema
{
  "type": "object",
  "required": [
    "powerW",
    "hoursPerDay",
    "tariffPerKwh"
  ],
  "properties": {
    "powerW": {
      "type": "number",
      "description": "device power (W)",
      "examples": [
        100
      ]
    },
    "hoursPerDay": {
      "type": "number",
      "description": "hours of use per day",
      "examples": [
        5
      ]
    },
    "tariffPerKwh": {
      "type": "number",
      "description": "$ per kWh",
      "examples": [
        0.15
      ]
    }
  }
}
Output schema
{
  "type": "object",
  "additionalProperties": true
}