# EV Efficiency Calculator

> EV Efficiency Calculator is a paid API for AI agents from automotive-calc.x402tookit.com, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-29).

Converts an EV efficiency figure between units and computes range, annual energy cost, and savings versus a gas car.

## Facts

- Endpoint: GET https://automotive-calc.x402tookit.com/ev-efficiency?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ev-efficiency-calculator-c6da2c8a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pyrch2A_aZ10sSNH3TuH7

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 ev-efficiency-calculator-c6da2c8a
```

Example prompt: My Tesla Model 3 does 4.1 miles per kWh and has a 75 kWh usable battery — can you convert that to MPGe and kWh per 100 miles, estimate the range, and show me the annual cost at $0.13 per kWh versus a gas car getting 32 MPG at $3.50 a gallon, driving 12,000 miles a year?

## When to prefer this

Use this endpoint when you need to convert an EV efficiency figure between any combination of kWh/100mi, mi/kWh, Wh/km, kWh/100km, and MPGe, or when you want to compute range from battery capacity, or when you need a cost-vs-gas comparison — all in a single call. Prefer it over manual calculation whenever multiple output units or cost comparisons are needed simultaneously.

## Known failure modes

- Missing required 'efficiency' or 'unit' query parameters returns an error
- Invalid unit string (not one of the five accepted enum values) causes a validation error
- Nonsensical efficiency values (e.g. zero or negative) may return null or degenerate outputs
- If batteryKwh is omitted, range fields will be null
- If gasMpg is omitted, gas-comparison fields will be null
- Payment not provided or insufficient USDC causes a 402 Payment Required response

## How this service works

EV efficiency in kWh per 100 miles, miles per kWh, Wh per km and MPGe, range from battery size, and cost versus a gas car.

## Output

Returns the input efficiency expressed in all five unit formats (kWh/100mi, mi/kWh, Wh/km, kWh/100km, MPGe), estimated range in miles and km if battery size is provided, annual kWh consumed, annual electricity cost, cost per mile, and — if gas car details are supplied — the gas car's annual cost, gas cost per mile, and annual savings versus gas. Also includes a human-readable summary and disclaimer.

## 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": [
      "efficiency",
      "unit"
     ],
     "properties": {
      "unit": {
       "type": "string",
       "description": "kwh_per_100mi, mi_per_kwh, wh_per_km, kwh_per_100km or mpge"
      },
      "gasMpg": {
       "type": "number",
       "description": "A gas car's mpg, to compare running cost"
      },
      "batteryKwh": {
       "type": "number",
       "description": "Usable battery in kWh, for range"
      },
      "efficiency": {
       "type": "number",
       "description": "The efficiency figure"
      },
      "annualMiles": {
       "type": "number",
       "description": "Miles a year, 100 to 200000 (default 12000)"
      },
      "pricePerKwh": {
       "type": "number",
       "description": "Electricity price per kWh"
      },
      "gasPricePerGallon": {
       "type": "number",
       "description": "Gasoline price per gallon (with gasMpg)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "mpge": {
       "type": [
        "null",
        "number"
       ]
      },
      "source": {
       "type": [
        "null",
        "string"
       ]
      },
      "rangeKm": {
       "type": [
        "null",
        "number"
       ]
      },
      "reasons": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "string"
       }
      },
      "summary": {
       "type": [
        "null",
        "string"
       ]
      },
      "verdict": {
       "type": [
        "null",
        "string"
       ]
      },
      "whPerKm": {
       "type": [
        "null",
        "number"
       ]
      },
      "degraded": {
       "type": [
        "boolean",
        "null"
       ]
      },
      "kmPerKwh": {
       "type": [
        "null",
        "number"
       ]
      },
      "annu
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ev-efficiency-calculator-c6da2c8a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from automotive-calc.x402tookit.com](https://www.zero.xyz/host/automotive-calc.x402tookit.com/llms.txt)
