# Delx Bits To Bytes

> Delx Bits To Bytes 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 bit count integer into its equivalent byte representation, returning bytes, bits, and whole_bytes values.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/bits-to-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-bits-to-bytes-3e070719
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ADurQ61NixwefP3UdhqBI

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-bits-to-bytes-3e070719 -d '<json body>'
```

Example prompt: How many bytes is 8192 bits? I need the result broken down into bytes, raw bits, and whole bytes.

## When to prefer this

Choose this endpoint when you need a quick, stateless, no-auth unit conversion from bits to bytes — especially in agentic pipelines computing byte budgets from link rates or protocol specs. Prefer it over manual arithmetic when you need both fractional and whole-byte outputs in a single call with a guaranteed local JSON response and no external dependencies.

## Known failure modes

- Missing or non-integer 'bits' field returns a validation error
- Negative bit values may return an error or zero result
- Non-numeric input types (e.g. strings) will likely cause a 400 bad request
- Network timeout if the API is temporarily unavailable
- Payment failure if USDC balance is insufficient for the $0.001 fee

## How this service works

Convert bit count to bytes. Call when you convert link rates into byte budgets. Returns bytes, bits, whole_bytes for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.

## Output

A JSON object containing three fields: 'bytes' (the exact fractional byte equivalent), 'bits' (the original input bit count echoed back), and 'whole_bytes' (the floor integer of full bytes), enabling callers to work with both exact and rounded byte budgets.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "bits": {
   "type": "integer",
   "description": "Input field: bits."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "bits": 16,
  "bytes": 2,
  "schema": "delx/util-bits-to-bytes/v1",
  "whole_bytes": 2
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-bits-to-bytes-3e070719/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)
