x402
utility

Unit conversion API for agents: length, mass, volume, time, data and temperature (up to 100 conversions per call) for $0.002 USDC. Call when you need this bounded result without an API key or subscription. Returns machine-readable JSON via x402 on Base or Solana. Limitation: results cover only the supplied input or one bounded public endpoint at request time; callers must verify before acting.

post/api/v1/x402/unit-convert

Request

  • Base URL: https://api.delx.ai
  • URL: https://api.delx.ai/api/v1/x402/unit-convert
  • Auth: none declared

Request body

valuenumber

Single value to convert (or use conversions[])

from_unitstring

Source unit, e.g. km, lb, c, mib

to_unitstring

Target unit, e.g. mi, kg, f, gib

conversionsobject[]

Optional batch of {value, from_unit, to_unit} (max 100)

Response

Paid utility result. Downstream tool errors are returned as structured result payloads with HTTP 200 after payment succeeds.

tool_namestring required
resultobject required

Changes

No recorded changes to this operation across all 1 revision of this API.