# minia2a x402-format-bytes

> minia2a x402-format-bytes is a paid API for AI agents from minia2a.uk, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-30).

Converts a raw byte count into a human-readable file size string (e.g. 1024 → '1 KB')

## Facts

- Endpoint: GET https://minia2a.uk/x402/formatBytes?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/minia2a-x402-format-bytes-fc731e1a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uX9uh8BVXlv4DSu2yImM4

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 minia2a-x402-format-bytes-fc731e1a
```

Example prompt: Format 1073741824 bytes into a human-readable file size string for me.

## When to prefer this

Choose this endpoint when you need a quick, stateless utility to convert raw byte counts to human-readable size strings without setting up local formatting logic. Useful in agent pipelines that surface storage metrics, file sizes, or bandwidth usage to end users.

## Known failure modes

- Missing or invalid 'input' parameter returns an error
- Non-numeric byte value causes a parsing or validation error
- Negative byte values may not be handled gracefully
- Network timeout on the x402 micropayment flow

## How this service works

minia2a service: x402-format-bytes

## Output

A human-readable string representing the byte value converted to the most appropriate unit (e.g. KB, MB, GB, TB), making raw byte counts easy to read and display.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "method": {
     "type": "string"
    },
    "bodyType": {
     "type": "string"
    },
    "queryParams": {
     "type": "object"
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/minia2a-x402-format-bytes-fc731e1a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from minia2a.uk](https://www.zero.xyz/host/minia2a.uk/llms.txt)
