# agent402.tools US Gallons to Cups Converter

> agent402.tools US Gallons to Cups Converter is a paid API for AI agents from agent402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Converts a numeric volume value from US gallons to cups via a simple GET request with a query parameter.

## Facts

- Endpoint: GET https://agent402.tools/api/convert/us-gallons-to-cups
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent402-tools-us-gallons-to-cups-converter-04d5cdac
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CsQViixa6kaGc8P-p8IMZ

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 agent402-tools-us-gallons-to-cups-converter-04d5cdac
```

Example prompt: How many cups is 3.5 US gallons? Can you convert that for me?

## When to prefer this

Use this endpoint when you need a quick, programmatic conversion from US gallons to cups without doing the math inline, especially in agent workflows that process recipe scaling, cooking, or volume measurement tasks.

## Known failure modes

- Missing or non-numeric value parameter returns an error
- Payment not provided or insufficient USDC balance causes 402 response
- Negative or zero values may return an error or unexpected result
- Malformed query string results in a 400 bad request

## How this service works

Convert us gallons to cups (volume). Pass ?value=N.

## Output

Returns the converted volume value expressed in cups corresponding to the input number of US gallons.

## 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": [
      "value"
     ],
     "properties": {
      "value": {
       "type": "string",
       "description": "Numeric value to convert"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent402-tools-us-gallons-to-cups-converter-04d5cdac/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent402.tools](https://www.zero.xyz/host/agent402.tools/llms.txt)
