# centralcity.ai Unit Converter

> centralcity.ai Unit Converter is a paid API for AI agents from centralcity.ai, paid per call via x402, $0.05/call, status unknown (last checked 2026-11-19).

Converts a numeric value between units of length, mass, volume, or temperature.

## Facts

- Endpoint: POST https://centralcity.ai/api/public/x402/off_4wpm5fcsftn3nffv?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/centralcity-ai-unit-converter-ce7c4d8e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9D90z8N3DoZ068A2JeoF9

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 centralcity-ai-unit-converter-ce7c4d8e -d '<json body>'
```

Example prompt: Convert 26.2 miles to kilometers for me.

## When to prefer this

Use this endpoint when you need a quick, reliable, single-value unit conversion across length, mass, volume, or temperature without building your own conversion logic. It is ideal for agents that encounter user-specified measurements in unfamiliar units and need an authoritative numeric result. Prefer it over general-purpose LLM estimation when precision matters or when the conversion involves non-trivial factors (e.g. temperature scales, imperial/metric mass).

## Known failure modes

- Mismatched unit kinds (e.g. converting meters to kilograms) — the API may return an error since 'from' and 'to' must be the same kind
- Value out of allowed range (beyond ±1,000,000,000,000,000) returns a validation error
- Invalid or unsupported unit enum values result in a schema validation error
- Network or payment failure (HTTP 402 if payment not properly provided) prevents the call from completing

## How this service works

Converts a value between two units of length, mass, volume or temperature.

## Output

Returns the numeric converted value in the target unit. The agent receives the computed result as a number corresponding to the input value expressed in the requested destination unit.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "enum": [
    "mm",
    "cm",
    "m",
    "km",
    "in",
    "ft",
    "yd",
    "mi",
    "mg",
    "g",
    "kg",
    "oz",
    "lb",
    "ml",
    "l",
    "floz",
    "gal",
    "c",
    "f",
    "k"
   ],
   "type": "string",
   "description": "The unit to convert to, of the same kind as from."
  },
  "from": {
   "enum": [
    "mm",
    "cm",
    "m",
    "km",
    "in",
    "ft",
    "yd",
    "mi",
    "mg",
    "g",
    "kg",
    "oz",
    "lb",
    "ml",
    "l",
    "floz",
    "gal",
    "c",
    "f",
    "k"
   ],
   "type": "string",
   "description": "The unit of value: mm, cm, m, km, in, ft, yd, mi, mg, g, kg, oz, lb, ml, l, floz, gal, c, f, k."
  },
  "value": {
   "type": "number",
   "maximum": 1000000000000000,
   "minimum": -1000000000000000,
   "description": "The value to convert."
  }
 }
}
```

## More

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