# Delx Bytes To Bits

> Delx Bytes To Bits 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 an integer byte count to its equivalent bit count, returning both bits and bytes as local JSON.

## Facts

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

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

Example prompt: How many bits are in 512 bytes? I need the exact bit count for a bandwidth budget calculation.

## When to prefer this

Use this endpoint when your agent pipeline needs a reliable, stateless bytes-to-bits conversion without implementing the arithmetic inline — especially useful in bandwidth budgeting, payload validation, or data unit normalization steps where a clean JSON result with both units is needed.

## Known failure modes

- Missing or non-integer 'bytes' field returns a validation error
- Negative byte values may produce unexpected results or an error
- Payment failure via x402 blocks the request entirely
- Very large integer values may exceed safe integer bounds

## How this service works

Convert byte count to bits. Call when you compare bandwidth or payload budgets in bits. Returns bits and 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

Returns a JSON object containing the input byte count and its equivalent in bits (bytes × 8), with no external network calls or data retention.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

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

## More

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