# api.strale.io Unit Converter

> api.strale.io Unit Converter is a paid API for AI agents from api.strale.io, paid per call via x402, $0.0216/call, status unknown (last checked 2026-10-10).

Converts a numeric value from one unit to another across categories including length, weight, volume, temperature, area, speed, and data storage.

## Facts

- Endpoint: GET https://api.strale.io/x402/unit-convert?utm_source=zero.xyz
- Price: $0.0216/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-strale-io-4fb4fc66
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WM3nLTREXExOblvl6U_pE

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 api-strale-io-4fb4fc66
```

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

## When to prefer this

Use this endpoint when you need a reliable, instant unit conversion across common measurement categories (length, weight, volume, temperature, area, speed, data storage) without needing a general-purpose calculator or external lookup. Ideal for agents that need deterministic, algorithmic results rather than LLM-estimated conversions.

## Known failure modes

- Unsupported or misspelled unit codes return an error (e.g. unknown from_unit or to_unit)
- Incompatible unit categories (e.g. converting km to kg) return a type mismatch error
- Missing required query parameters (value, from_unit, to_unit) return a 400 bad request
- Non-numeric value input returns a validation error

## How this service works

Convert between units: length, weight, volume, temperature, area, speed, data storage. Algorithmic — instant.

## Output

Returns the converted numeric value in the requested target unit, computed algorithmically and returned instantly.

## Example request

```json
{
 "value": 72,
 "to_unit": "°C",
 "from_unit": "°F"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "from_unit",
  "to_unit",
  "value"
 ],
 "properties": {
  "value": {
   "type": "number",
   "description": "Value to convert"
  },
  "to_unit": {
   "type": "string",
   "description": "Target unit (e.g. mi, kg, °F)"
  },
  "from_unit": {
   "type": "string",
   "description": "Source unit (e.g. km, lb, °C)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "value": {
  "type": "number"
 },
 "result": {
  "type": "number"
 },
 "formula": {
  "type": "string"
 },
 "to_unit": {
  "type": "string"
 },
 "category": {
  "type": "string"
 },
 "from_unit": {
  "type": "string"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-strale-io-4fb4fc66/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.strale.io](https://www.zero.xyz/host/api.strale.io/llms.txt)
