# Delx Commerce — Bytes to Human-Readable Size

> Delx Commerce — Bytes to Human-Readable Size is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-02).

Converts a raw byte count integer into a human-readable file size string (e.g. '1.46 MiB') with unit, scaled value, and exact bytes.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/bytes-to-human?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-bytes-to-human-readable-size-785475c9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3yOnEdO771l4OevFgKJiZ

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 delx-commerce-bytes-to-human-readable-size-785475c9 -d '<json body>'
```

Example prompt: Convert 1536000 bytes into a human-readable file size for me — like '1.46 MiB' — so I can display it nicely in the UI.

## When to prefer this

Choose this endpoint when an AI agent needs a quick, pay-per-call, no-signup conversion of a raw byte integer to a human-readable size string with a structured JSON response including the unit, scaled value, and schema identifier. Ideal for agents that already operate in USDC micropayment environments (x402 on Base or Solana) and need a reliable formatting utility without maintaining their own logic.

## Known failure modes

- Missing or non-integer 'bytes' field returns an error response
- Negative byte values may produce unexpected results
- Network or payment failure via x402 protocol prevents response
- Extremely large integers beyond supported range may not format correctly

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

Returns a JSON object with: 'ok' (boolean success flag), 'bytes' (original integer input), 'human' (formatted string like '1.46 MiB'), 'unit' (the chosen unit e.g. 'MiB'), 'scaled' (float representation in that unit), and 'schema' identifier 'delx/util-bytes-to-human/v1'.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "bytes": {
   "type": "integer",
   "description": "Input field: bytes."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "unit": "MiB",
  "bytes": 1536000,
  "human": "1.46 MiB",
  "scaled": 1.4648,
  "schema": "delx/util-bytes-to-human/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-bytes-to-human-readable-size-785475c9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
