{"uid":"cap_sIPQeqZmsJTApQ4Hw-ShN","slug":"saylor-innovations-vehicle-trip-fuel-cost-calculator-ad972a9e","name":"Saylor Innovations Vehicle Trip Fuel Cost Calculator","description":"Vehicle trip fuel use and cost from distance, efficiency and fuel price","url":"https://saylorinnovations.com/api/transport/trip-cost?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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":["distance_km","efficiency_km_l","fuel_price"],"properties":{"fuel_price":{"type":"string","description":"required positive fuel price per liter (query)"},"distance_km":{"type":"string","description":"required positive trip distance (query)"},"efficiency_km_l":{"type":"string","description":"required positive vehicle efficiency in km per liter (query)"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["distance_km","efficiency_km_per_liter","fuel_price_per_liter","fuel_cost","scope_note"],"properties":{"formula":{"type":"string","description":"Formula used for the calculation"},"fuel_cost":{"type":"number","description":"Fuel cost"},"scope_note":{"type":"string","description":"What this data covers and what it leaves out"},"distance_km":{"type":"number","description":"Distance in kilometres"},"liters_used":{"type":"number","description":"Liters used"},"fuel_price_per_liter":{"type":"number","description":"Fuel price per liter"},"efficiency_km_per_liter":{"type":"number","description":"Efficiency km per liter"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_e5nVgPqbvdlK4YcowHOX_","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Calculates fuel consumption (liters used) and total fuel cost for a vehicle trip given distance, fuel efficiency, and fuel price per liter","exampleAgentPrompt":"How much fuel will I use and what will it cost to drive 350 km in a car that does 12 km per liter, with fuel at $1.85 per liter?","exampleUseCases":[{"title":"Road trip budget planning","prompt":"I'm driving 620 km this weekend in a car that gets 11.5 km per liter and fuel is currently $1.92 per liter — how much will the fuel cost me?"},{"title":"Daily commute fuel expense","prompt":"My daily commute is 45 km each way, my car does 14 km per liter, and petrol costs $1.75 per liter. What am I spending on fuel per day round trip?"},{"title":"Comparing vehicles fuel efficiency costs","prompt":"If I drive 500 km in a car with 8 km/l efficiency versus one with 15 km/l, and fuel costs $1.80 per liter, how do the fuel costs compare?"}],"resultDescription":"Returns a JSON object containing the input distance in km, efficiency in km/liter, fuel price per liter, total liters used for the trip, total fuel cost, the formula used for the calculation, and a scope note explaining what the result covers and excludes (e.g. tolls, oil, depreciation are not included).","failureModes":["Missing required parameters (distance_km, efficiency_km_l, or fuel_price) returns an error","Non-positive values (zero or negative distance, efficiency, or price) are rejected","Non-numeric string values for parameters cause validation errors","Extremely large or small values may produce unexpected results"],"whenToPreferThis":"Use this endpoint when you need a quick, deterministic fuel cost and consumption calculation for a single vehicle trip given known distance, efficiency, and fuel price. It is ideal for travel budgeting, fleet cost estimation, or comparison scenarios where the math needs to be reliable and auditable. Prefer it over general-purpose LLM arithmetic for reproducibility and the structured JSON output with formula transparency.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-30T19:08:48.744Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-vehicle-trip-fuel-cost-calculator-ad972a9e"}