Calculate the liters of fuel a trip needs and its total cost from distance, cons
Calculate the liters of fuel a trip needs and its total cost from distance, consumption (L/100 km) and price per liter — with optional cost splitting between passengers. Use this when an agent needs to trip fuel and cost, splitable between people.
Answeringour last check, 2026-10-02
1 of 1checks answered this week
241 msmedian answer time
$0.001listed price per call
$0.001price it asked us
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
GET https://agenttools-hub.vercel.app/api/v1/calculators/fuel-cost-calculator
| Category | Market data |
|---|---|
| Provider host | agenttools-hub.vercel.app |
| Networks | eip155:8453 |
| Payment schemes | exact |
| Self-reported calls, 30 days | 3 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
| Day | Result | HTTP | Asked | Time |
|---|---|---|---|---|
| 2026-10-02 | valid payment request | 402 | $0.001 | 241 ms |
Example input (from the provider)
{
"method": "GET",
"queryParams": {
"consumption": 6.5,
"distance": 450,
"people": 1,
"pricePerLiter": 1.75
},
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"properties": {
"consumption": {
"description": "Consumption (L/100km)",
"type": "number"
},
"distance": {
"description": "Distance (km)",
"type": "number"
},
"people": {
"description": "Split between",
"type": "number"
},
"pricePerLiter": {
"description": "Price per liter",
"type": "number"
}
},
"required": [
"distance",
"consumption",
"pricePerLiter"
],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}