# FastX402 Unit Converter

> FastX402 Unit Converter is a paid API for AI agents from fastx402.tools, paid per call via x402, $0.001/call, status unknown (last checked 2026-12-04).

Converts a numeric value from one unit of measurement to another (e.g. km to miles) via a simple GET request paid per-call in USDC.

## Facts

- Endpoint: GET https://fastx402.tools/unit-convert?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-04
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fastx402-unit-converter-5931d2b2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TGrwkWMEEDPO2jtEGq6Dp

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 fastx402-unit-converter-5931d2b2
```

Example prompt: Convert 100 km to miles for me.

## When to prefer this

Choose this endpoint when an AI agent needs a quick, accurate, no-account unit conversion at minimal cost ($0.001 USDC) without managing API keys. Ideal for agentic workflows that sporadically need unit conversions and prefer pay-per-call over subscription billing.

## Known failure modes

- Missing required query parameters (value, from, to) returns an error
- Unsupported or unrecognized unit strings return an error
- Non-numeric value parameter causes a bad request error
- Payment not completed results in 402 Payment Required response

## How this service works

200 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.

## Output

Returns a JSON object containing the original value, the source unit, the target unit, the converted numeric result, and the measurement category (e.g. 'length', 'mass', '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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "value",
      "from",
      "to"
     ],
     "properties": {
      "to": {
       "type": "string",
       "description": "Unit to convert to, e.g. mi"
      },
      "from": {
       "type": "string",
       "description": "Unit to convert from, e.g. km"
      },
      "value": {
       "type": "string",
       "description": "Number to convert, e.g. 100"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "to": {
       "type": "string"
      },
      "from": {
       "type": "string"
      },
      "value": {
       "type": "integer"
      },
      "result": {
       "type": "number"
      },
      "measure": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "to": "mi",
  "from": "km",
  "value": 100,
  "result": 62.1371212121,
  "measure": "length"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fastx402-unit-converter-5931d2b2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fastx402.tools](https://www.zero.xyz/host/fastx402.tools/llms.txt)
