# Automotive Fuel Trip Cost Calculator

> Automotive Fuel Trip Cost 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).

Calculates fuel consumption, total cost, cost per person, tank range, refuel stops, and optionally compares a second vehicle across multi-leg road trips with different driving modes (city/highway).

## Facts

- Endpoint: GET https://automotive-calc.x402tookit.com/fuel-trip-cost?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/automotive-fuel-trip-cost-calculator-0c7ab587
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Es4ZN-teFRiUg1yxYP_Rv

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 automotive-fuel-trip-cost-calculator-0c7ab587
```

Example prompt: Can you calculate the fuel cost for my road trip from LA to Vegas? It's about 40 miles of city driving at 24 mpg and then 220 miles of highway at 33 mpg, gas is $4.25 a gallon, my tank holds 14 gallons, and there are 3 of us splitting the cost.

## When to prefer this

Choose this endpoint when you need a multi-leg fuel cost breakdown that accounts for different driving modes (city vs highway) on each segment, per-person cost splitting, tank range and refuel stop planning, or side-by-side comparison of two vehicles. It is more detailed than a simple distance-based fuel estimator and supports both US and metric units. Prefer it over generic mapping APIs when the user's primary question is about fuel economics rather than routing.

## Known failure modes

- Missing required 'legs' or 'pricePerUnit' parameters returns a validation error
- Malformed legs string (wrong delimiter or missing fields) causes parsing failure
- People count outside 1–20 range rejected
- Reserve percent outside 0–40 range rejected
- Inconsistent units (mixing mpg legs with metric flag) may produce incorrect results
- Tank size of zero or negative value causes range/refuel calculation to fail

## How this service works

Trip fuel and cost for legs with different mileage (city, highway), tank range, refuel stops, cost per person and a second car.

## Output

Returns a breakdown of fuel consumed and cost for each named leg, total trip fuel and cost, cost per person if shared, estimated tank range, number of refuel stops needed based on tank size and reserve, a second-vehicle comparison if requested, a human-readable summary and verdict, and any warnings or degraded-mode 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": [
      "legs",
      "pricePerUnit"
     ],
     "properties": {
      "legs": {
       "type": "string",
       "description": "Lines distance:economy or name:distance:economy separated by semicolons, for example 'city:40:24; highway:260:33' (miles and mpg, or km and L/100km)"
      },
      "units": {
       "type": "string",
       "description": "us (miles, mpg, gallons; default) or metric (km, L/100km, litres)"
      },
      "people": {
       "type": "number",
       "description": "People sharing the cost, 1 to 20 (default 1)"
      },
      "tankSize": {
       "type": "number",
       "description": "Tank size in gallons (us) or litres (metric), for range and refuel stops"
      },
      "roundTrip": {
       "type": "boolean",
       "description": "true to double the legs for the return (default false)"
      },
      "altEconomy": {
       "type": "number",
       "description": "A second vehicle's economy (mpg or L/100km) used for the whole trip, to compare"
      },
      "pricePerUnit": {
       "type": "number",
       "description": "Fuel price per US gallon (units us) or per litre (units metric)"
      },
      "reservePercent": {
       "type": "number",
       "description": "Tank share kept in reserve, 0 to 40 (default 10)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "asOf": {
       "type": [
        "null",
        "string"
       ]
      },
      "cost": {
       "type": [
        "null",
        "number"
       ]
      },
      "fuel": {
       "type": [
        "null",
        "number"
       ]
      },
      "legs": {
       "type": [
        "array",
        "null"
       ],
       "items": {
        "type": "object",
        "properties": {
         "leg": {
          "type": [
           "null",
           "string"
          ]
         },
         "cost": {
          "type": [
       
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/automotive-fuel-trip-cost-calculator-0c7ab587/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)
