x402

Convert data, time or color units (JSON body)

One endpoint for all 1,700+ toolkit converters: data sizes (bits to quettabytes, binary and decimal prefixes), time units (picoseconds to millennia) and color formats (hex, hexa, rgb, rgba, hsv, hsl, hsla). Units: GET /api/toolkit. No account or API key. Without PAYMENT-SIGNATURE the response is HTTP 402 with an x402 v2 payment challenge; pay and resend the identical request. Input as query string (GET) or JSON body (POST), max 64 KB; the payment is bound to the exact input. Paid calls are counted as usage of the tool on yruz.one/toolkit. Price: 0.002 USDC per call.

post/api/toolkit/convert

Request

  • Base URL: https://yruz.one
  • URL: https://yruz.one/api/toolkit/convert
  • Auth: none required

Headers

PAYMENT-SIGNATUREstring

x402 v2 PaymentPayload (base64 JSON). Omit to receive the 402 payment challenge.

Request body

fromstring

source unit (required)

tostring

target unit (required)

valuestring

number or color (required)

precisionstring

decimals, default 8

Response

Tool result

toolstring
categorystring
resultobject
webstring

Changes

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