# Delx Bytes To Human

> Delx Bytes To Human is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Converts a raw byte count integer into a human-readable binary unit string (e.g. 1024 → 1 KiB)

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/bytes-to-human
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-bytes-to-human-2f72d32c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_EruMLDcCyj2tKL1q1rpyq

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-bytes-to-human-2f72d32c -d '<json body>'
```

Example prompt: Convert 10485760 bytes into a human-readable binary size string for me.

## When to prefer this

Choose this endpoint when you need a deterministic, stateless, machine-readable JSON conversion of a raw byte count to human-readable binary units (KiB/MiB/GiB) without building local formatting logic. Ideal for agents that display storage metrics, file sizes, or bandwidth figures to end users and want a reliable micro-utility they can call inline without managing formatting libraries.

## Known failure modes

- Missing or non-integer 'bytes' field returns a validation error
- Negative byte values may be rejected or return unexpected output
- Very large integers beyond safe integer range may cause precision issues
- Network or payment (x402) failure returns HTTP 402 or 5xx with no conversion result

## How this service works

Format a byte count as human-readable binary units — first-party local utility for agent preflight and proven micro-utils expansion. Returns deterministic machine-readable JSON for $0.001 USDC via x402 on Base. Execution is first-party, local-only, stateless, and memory-only with no paid upstream, no input retention, no web search, no live RPC, and no mediagen. Results are advisory; the caller owns authorization, budgets, and production controls. Sibling of Delx routes that already converted ex…

## Output

Returns a JSON object containing the formatted human-readable size string expressed in binary units (e.g. KiB, MiB, GiB), derived deterministically from the input byte integer with no external calls or state.

## 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-bytes-to-human-2f72d32c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
