# 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 from one unit to another across length, mass, volume, or temperature unit systems.

## Facts

- Endpoint: POST https://centralcity.ai/api/public/x402/off_zkcuqkktadrbvwup?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-2fc9e607
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_AD9AYPJEGQydr7BblQU6f

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-2fc9e607 -d '<json body>'
```

Example prompt: Convert 72 degrees Fahrenheit to Celsius for me.

## When to prefer this

Use this endpoint when you need a fast, reliable, single-unit-pair conversion across length, mass, volume, or temperature. It supports a wide range of common units (metric and imperial) and is ideal for precise programmatic conversion in workflows. Prefer this over manual calculation or general-purpose LLM math when accuracy matters.

## Known failure modes

- Mismatched unit types (e.g. converting meters to kilograms) — units must be of the same kind (length, mass, volume, or temperature)
- Value out of allowed range (must be between -1,000,000,000,000,000 and 1,000,000,000,000,000)
- Invalid or unsupported unit enum values submitted in 'from' or 'to' fields
- Missing required fields (value, from, or to)

## How this service works

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

## Output

Returns the converted numeric value in the target unit. The agent receives the result of the mathematical conversion, expressed as a number in the requested 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-2fc9e607/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)
