# US Gallon to Cubic Inch Volume Converter

> US Gallon to Cubic Inch Volume Converter is a paid API for AI agents from x402-agent.kariguetoazul.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-12).

Converts a volume value from US liquid gallons to cubic inches using IEEE-754 double precision arithmetic.

## Facts

- Endpoint: GET https://x402-agent.kariguetoazul.workers.dev/api/units/volume/us-gallon-to-cubic-inch?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/us-gallon-to-cubic-inch-volume-converter-4c5fa056
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sLDLbrHI30KOasHZWsp8q

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 us-gallon-to-cubic-inch-volume-converter-4c5fa056
```

Example prompt: Convert 10.5 US liquid gallons to cubic inches for me.

## When to prefer this

Use this endpoint when you need a simple, precise, single-value conversion from US liquid gallons to cubic inches via a paid micro-API. Prefer it when your agent workflow requires a deterministic, IEEE-754 accurate result without maintaining local conversion logic. It is not suitable for bulk conversions or other volume unit pairs.

## Known failure modes

- Missing required 'value' query parameter returns an error
- Value below 0 or above 1e+100 fails schema validation
- Non-numeric value for 'value' parameter causes a 422/400 error
- Payment not included or insufficient USDC results in 402 Payment Required
- Network or worker timeout returns 5xx

## How this service works

Evidence-backed autonomous AI jobs and paid data tools. Queue/D1/cron run outside the chat; free quotas and bounded execution apply.

## Output

A JSON object containing the original value and unit (us-gallon), the converted value in cubic inches (computed using IEEE-754 double precision), the target unit (cubic-inch), and a dimension label (volume).

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "value"
     ],
     "properties": {
      "value": {
       "type": "number",
       "maximum": 1e+100,
       "minimum": 0,
       "description": "Amount in US liquid gallons."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "cubic-inch",
  "from": "us-gallon",
  "value": 123.45,
  "converted": 28516.95,
  "dimension": "volume",
  "precision": "IEEE-754 double"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/us-gallon-to-cubic-inch-volume-converter-4c5fa056/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent.kariguetoazul.workers.dev](https://www.zero.xyz/host/x402-agent.kariguetoazul.workers.dev/llms.txt)
