Skip to content
Fourohtwo

Unit conversion API

x402.forgemesh.io/convert-units

Unit conversion API: convert between 100+ units across length, mass, volume, temperature, area, speed, pressure, energy, power, and digital storage. Exact factors, instant, local. Deterministic and auditable — cheaper than burning reasoning tokens, zero arithmetic-hallucination risk, and the result can be cited. Unknown units return a helpful 400 listing valid targets.

BaseAnswering
POSThttps://x402.forgemesh.io/convert-units

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://x402.forgemesh.io/convert-units", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"from":"mi","to":"km","value":"26.2"}),
});
console.log(await res.json());

Example input

{
  "from": "mi",
  "to": "km",
  "value": "26.2"
}