# 24KLabs Unit Converter

> 24KLabs Unit Converter is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Converts values between units of length, mass, volume, data size, time, speed, or temperature

## Facts

- Endpoint: POST https://api.24klabs.ai/api/v1/unit-convert
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/24klabs-unit-converter-bf265eff
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_oFMrhUTF7ZdNm1NuEPqU9

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 24klabs-unit-converter-bf265eff -d '<json body>'
```

Example prompt: Convert 250 pounds to kilograms for me.

## When to prefer this

Choose this endpoint when an agent needs a fast, reliable, programmatic unit conversion without relying on LLM arithmetic. Ideal for pipelines that process user-supplied measurements in mixed unit systems, e.g. international e-commerce, scientific data normalization, recipe apps, or IoT sensor data harmonization. Covers a broad range of everyday categories (length, mass, volume, data size, time, speed, temperature) in a single endpoint.

## Known failure modes

- Unsupported unit type or unit name returns a 400 error with details about valid units
- Incompatible unit categories (e.g. converting length to mass) return an error indicating mismatched types
- Non-numeric or missing input value returns a validation error
- Extremely large or small values may cause precision issues in floating-point output

## How this service works

Convert length, mass, volume, data-size, time, speed, or temperature between units.

## Output

Returns the converted numeric value in the requested target unit, along with the source and target unit labels and optionally the conversion factor used.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "to": {
   "type": "string"
  },
  "from": {
   "type": "string"
  },
  "value": {
   "type": "number"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": 6.2137
 }
}
```

## More

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