# Delx Commerce — Bytes to Bits Converter

> Delx Commerce — Bytes to Bits Converter 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-02).

Converts a byte count to its equivalent bit count, returning both values with a versioned schema label.

## Facts

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

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

Example prompt: How many bits are in 1024 bytes?

## When to prefer this

Choose this endpoint when you need a pay-per-call, no-signup, agent-native unit conversion with a verifiable response schema. Ideal for AI agents that need deterministic byte-to-bit arithmetic as a standalone microservice without embedding logic client-side, and when verifiable on-chain payment via x402/USDC is preferred over subscription billing.

## Known failure modes

- Missing or non-integer 'bytes' field returns a validation error
- Negative byte values may return an error or unexpected result
- Non-numeric input (e.g. string) will fail schema validation
- Service unavailability returns HTTP error codes

## 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 with three fields: 'bits' (the computed bit count), 'bytes' (the original byte input echoed back), and 'schema' (a versioned schema string 'delx/util-bytes-to-bits/v1') for verifiable, structured consumption.

## 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-commerce-bytes-to-bits-converter-a5e8d50f/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)
