# 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 domains.

## Facts

- Endpoint: POST https://centralcity.ai/api/public/x402/off_rtu7yptpionf5y2k?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-621f5b03
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QqpIhym3bVnhm-iAiQU7L

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-621f5b03 -d '<json body>'
```

Example prompt: Can you convert 212 Fahrenheit to Celsius for me?

## When to prefer this

Use this endpoint when an agent needs a quick, reliable unit conversion for a single value across common measurement systems (length, mass, volume, temperature). It is ideal for inline computations during recipe scaling, travel planning, scientific calculations, or shipping/customs workflows. Prefer this over manual formula application when accuracy and speed matter and the units involved are within the supported enum set.

## Known failure modes

- Mismatched unit kinds (e.g. converting meters to kilograms) — API likely returns an error since units must be of the same measurement type
- Value out of supported range (beyond ±1,000,000,000,000,000) returns a validation error
- Invalid or unrecognized unit codes outside the supported enum return an error
- Missing required fields (value, from, or to) result in a bad request error

## How this service works

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

## Output

A converted numeric value expressed in the target unit, computed from the input value and the specified source and destination units across length (mm, cm, m, km, in, ft, yd, mi), mass (mg, g, kg, oz, lb), volume (ml, l, floz, gal), or temperature (c, f, k) domains.

## 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-621f5b03/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)
