# Unit Converter

> Unit Converter is a paid API for AI agents from bess-x402.onrender.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-30).

Converts a numeric value from one unit to another across length, area, volume, mass, energy, power, pressure, temperature, speed, data size, time, and compound units.

## Facts

- Endpoint: GET https://bess-x402.onrender.com/v1/util/units?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/unit-converter-65860009
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mTeD6q5onJYItDNPTDlVR

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 unit-converter-65860009
```

Example prompt: Can you convert 250 kWh to gigajoules for me?

## When to prefer this

Use this endpoint when you need exact, deterministic unit conversions across a wide variety of physical and engineering domains including compound units like mpg or kg/m³. Prefer this over generic math tools or LLM-based conversion when precision matters and you need a reliable, no-lookup-table calculation.

## Known failure modes

- Unrecognized unit string returns an error (e.g. typo in from_unit or to_unit)
- Incompatible unit types (e.g. converting length to mass) returns a conversion error
- Missing required query parameters (value, from_unit, to_unit) returns a 400 bad request
- Extreme numeric values may produce overflow or underflow results

## How this service works

Convert a value between units of length, area, volume, mass, energy (kWh, MWh, BTU, GJ), power, pressure, temperature, speed, data size, time and compound units like kg/m^3 or mpg. Exact, no lookup tables to maintain.

## Output

Returns the converted numeric value in the target unit, computed exactly without lookup tables, supporting compound units like kg/m³ and mpg.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "value",
      "from_unit",
      "to_unit"
     ],
     "properties": {
      "value": {
       "type": "number",
       "description": "Number to convert"
      },
      "to_unit": {
       "type": "string",
       "description": "Target unit, e.g. GJ, degC, km, bar"
      },
      "from_unit": {
       "type": "string",
       "description": "Unit, e.g. MWh, degF, mile, psi"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

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