# Delx Commerce — Parse Bytes

> Delx Commerce — Parse Bytes 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-01).

Computes the byte size of a given text string and returns a human-readable size representation

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/parse-bytes?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-parse-bytes-b6a5c834
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vZOjhMkANdNToY3utHj_i

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-parse-bytes-b6a5c834 -d '<json body>'
```

Example prompt: How many bytes is this text: 'The quick brown fox jumped over the lazy dog and kept running until it reached the edge of the forest'?

## When to prefer this

Choose this endpoint when you need a quick, deterministic byte-count measurement of a text string without standing up any infrastructure. Ideal for agents that need to verify payload sizes before transmitting data, enforce size limits, or log text footprint metrics. At $0.001 USDC per call with no signup and pay-per-result pricing via x402, it suits agentic workflows that process variable volumes of text on demand.

## Known failure modes

- Text input exceeds 100,000 character limit — returns validation error
- Empty or missing text field — may return zero bytes or a 400 error
- Non-UTF-8 encoded content may produce unexpected byte counts
- Payment not settled via x402 protocol — returns 402 Payment Required before processing

## 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 containing the raw byte count as an integer, a human-readable size string (e.g. '1.5KB'), and a schema identifier ('delx/parse-bytes/v1') confirming the response format.

## 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-commerce-parse-bytes-b6a5c834/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)
