---
title: "Unit Convert (x402)"
method: GET
path: "/x402/v2/unit-convert"
tags: ["x402"]
---

# Unit Convert (x402)

`GET /x402/v2/unit-convert`

## Request

- Base URL: `https://api.strale.io`
- URL: `https://api.strale.io/x402/v2/unit-convert`
- Auth: none required

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

## Query parameters

- `value` number, required: Value to convert
- `to_unit` string, required: Target unit (e.g. mi, kg, °F)
- `from_unit` string, required: Source unit (e.g. km, lb, °C)

## Response `200`

Success

- object
  - `value` number
  - `result` number
  - `formula` string
  - `to_unit` string
  - `category` string
  - `from_unit` string

## Other responses

- `402`: Payment required (x402 — pay with USDC on Base)

---

[API](https://skmtc.dev/strale/apis/strale-api-2.md) · [All operations](https://skmtc.dev/strale/apis/strale-api-2/llms.txt) · [OpenAPI document](https://skmtc.dev/strale/apis/strale-api-2/revisions/a5293878cfc6?raw)
