# Gas Mileage Savings Calculator

> Gas Mileage Savings Calculator is a paid API for AI agents from x402.outpimp.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Compares annual fuel costs between two gas-powered vehicles and computes the break-even point for any price premium of the more efficient vehicle.

## Facts

- Endpoint: POST https://x402.outpimp.com/gasMileageSavingsCalculator
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/gas-mileage-savings-calculator-77ae4951
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OgoTjweSkKAVgG6unkliI

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 gas-mileage-savings-calculator-77ae4951 -d '<json body>'
```

Example prompt: I'm deciding between a Toyota Camry (32 MPG, $28,000) and a Honda Accord (38 MPG, $31,000) — I drive about 15,000 miles a year and gas is $3.50 a gallon. How much would I save annually and when would the Accord pay for itself?

## When to prefer this

Use this endpoint when you need a deterministic, on-demand computation comparing fuel economics between exactly two gasoline-powered vehicles, especially when the break-even analysis on a price premium is needed. Prefer this over manual calculation or LLM estimation when precise numerical outputs are required.

## Known failure modes

- Missing required fields (vehicleA.mpg, vehicleB.mpg, milesPerYear, gasPricePerGallon) returns an error
- MPG value of zero causes division-by-zero error
- Negative values for price or miles may return unexpected results
- Payment failure (insufficient USDC balance) returns 402 status

## How this service works

Gas mileage savings calculator. Compares annual fuel cost between two gas-powered vehicles based on miles driven, gas price, and each vehicle's MPG, and computes the break-even point for any price premium of the more efficient vehicle.

## Output

Returns the annual fuel cost for each vehicle, the annual dollar savings from the more efficient vehicle, and the break-even period (in years) needed to recoup any purchase price premium through fuel savings.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "vehicleA": {
   "type": "object",
   "properties": {
    "mpg": {
     "type": "number",
     "description": "Miles per gallon."
    },
    "purchasePrice": {
     "type": "number",
     "description": "Vehicle purchase price."
    }
   }
  },
  "vehicleB": {
   "type": "object",
   "properties": {
    "mpg": {
     "type": "number",
     "description": "Miles per gallon."
    },
    "purchasePrice": {
     "type": "number",
     "description": "Vehicle purchase price."
    }
   }
  },
  "milesPerYear": {
   "type": "number",
   "description": "Expected annual miles driven."
  },
  "gasPricePerGallon": {
   "type": "number",
   "description": "Local gas price per gallon."
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/gas-mileage-savings-calculator-77ae4951/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.outpimp.com](https://www.zero.xyz/host/x402.outpimp.com/llms.txt)
