# Human Byte Sizes

> Human Byte Sizes 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 size string like '1.5 KB' or '2.3 MB'

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/bytes-format
- 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/human-byte-sizes-71c50598
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_-1RQfWFr_YkT92fvcBX46

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 human-byte-sizes-71c50598 -d '<json body>'
```

Example prompt: Format 1572864 bytes as a human-readable file size string like '1.5 MB'.

## When to prefer this

Choose this endpoint when you need a deterministic, consistent byte formatting result without shipping your own formatting logic, managing library dependencies, or dealing with locale inconsistencies. Ideal for agents building UI labels, logs, or reports where byte counts must be presented cleanly to humans. Preferred over rolling your own when you want first-party JSON output at low cost with no API key or subscription overhead.

## Known failure modes

- Negative byte count returns a structured validation error (not billed)
- Non-integer or missing bytes field returns a validation error
- Extremely large integers beyond supported range may return an error

## How this service works

Human-readable byte sizes. Call when presenting file sizes, cache usage, or download progress to users. Returns a human string like 1.5 KB from a byte count. $0.001 USDC per successful call via x402 on Base—deterministic first-party JSON, no API key, no subscription, and nothing is billed on structured validation errors.

## Output

A JSON object containing a human-readable string representation of the byte count, such as '1.5 KB', '3.2 MB', or '1.0 GB', suitable for direct display to end users.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "bytes": {
   "type": "integer",
   "minimum": 0,
   "description": "Byte count to format for humans (e.g. 1536 → 1.5 KB)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "text": "1.5 KB",
  "bytes": 1536,
  "schema": "delx/bytes-format/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/human-byte-sizes-71c50598/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)
