# Delx Parse Size Strings

> Delx Parse Size Strings 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).

Parses human-readable size strings (e.g. '1.5MB', '512KB') into integer byte counts

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/parse-bytes
- 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-parse-size-strings-e2880c31
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Gzlqc9XY55qOrGpxnRxB1

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-parse-size-strings-e2880c31 -d '<json body>'
```

Example prompt: Convert '1.5MB' to its integer byte value for me — I need the exact number of bytes to pass into my pipeline's memory budget.

## When to prefer this

Use this endpoint when your agent or pipeline receives human-entered or config-file size strings (like '1.5MB', '512 KiB', '2GB') and needs a deterministic integer byte count without writing or maintaining a parsing library. Prefer it over regex hacks or custom parsers when correctness and consistency across size unit variants (KB, KiB, MB, MiB, etc.) matters. It requires no API key or subscription — only a tiny per-call micropayment via x402 on Base.

## Known failure modes

- Unparseable input string returns a structured validation error (not billed)
- Input exceeds 100,000 character limit returns an error
- Ambiguous units (e.g. 'MB' vs 'MiB') may be interpreted according to a fixed convention — callers should verify which standard is used
- Payment failure (402) if x402 funds are insufficient

## How this service works

Parse size strings to bytes. Use when users type 1.5MB and your pipeline needs an integer byte budget. Returns integer bytes parsed from human size text. $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

Returns a JSON object containing the integer byte count parsed from the input size string (e.g. '1.5MB' → 1572864). Returns a structured validation error (not billed) if the input cannot be parsed as a valid size string.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "text": {
   "type": "string",
   "maxLength": 100000,
   "description": "Primary text input (max 100k chars). Processed first-party; not retained as a dataset."
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-parse-size-strings-e2880c31/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)
