# Bitwise XOR (Arbitrary-Precision)

> Bitwise XOR (Arbitrary-Precision) is a paid API for AI agents from bitwise.openverbs.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Computes the bitwise XOR of two or more non-negative integers of arbitrary size, returning results in decimal, hexadecimal, and binary.

## Facts

- Endpoint: POST https://bitwise.openverbs.com/v1/xor
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/bitwise-xor-arbitrary-precision-af6e8c57
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zU51oqsFI8vIPK1xO0kmK

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 bitwise-xor-arbitrary-precision-af6e8c57 -d '<json body>'
```

Example prompt: XOR these three numbers together and give me the result in decimal, hex, and binary: 123456789012345678901234567890, 987654321098765432109876543210, and 111111111111111111111111111111.

## When to prefer this

Choose this endpoint when you need XOR across arbitrarily large integers that exceed 64-bit or 128-bit integer limits, or when you need the result in multiple formats (decimal, hex, binary) simultaneously. Prefer it over manual BigInt libraries when operating in an agentic workflow that already handles x402 micropayments, or when you need to XOR more than two values in a single call.

## Known failure modes

- Input contains fewer than 2 values — returns validation error
- Input contains more than 256 values — exceeds maxItems limit
- Input string contains non-digit characters or is negative — fails pattern validation
- Malformed JSON body — returns 400 bad request
- Payment not provided or insufficient — returns 402 Payment Required

## How this service works

Bitwise XOR across two or more non-negative integers (given as decimal strings, evaluated as arbitrary-precision BigInt). Returns the result in decimal, hex and binary.

## Output

Returns the XOR result of all input integers in three formats: decimal string, hexadecimal string, and binary string. The computation uses arbitrary-precision BigInt arithmetic, so there is no upper limit on integer size.

## Request schema (JSON Schema)

```json
{
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string",
     "enum": [
      "POST"
     ]
    },
    "bodyType": {
     "type": "string",
     "enum": [
      "json",
      "form-data",
      "text"
     ]
    },
    "body": {
     "type": "object",
     "properties": {
      "values": {
       "type": "array",
       "minItems": 2,
       "maxItems": 256,
       "items": {
        "type": "string",
        "pattern": "^\\d+$"
       },
       "description": "Two or more non-negative integers as decimal strings."
      }
     },
     "required": [
      "values"
     ],
     "additionalProperties": false
    }
   },
   "required": [
    "type",
    "method",
    "bodyType",
    "body"
   ],
   "additionalProperties": false
  }
 },
 "required": [
  "input"
 ]
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bitwise-xor-arbitrary-precision-af6e8c57/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bitwise.openverbs.com](https://www.zero.xyz/host/bitwise.openverbs.com/llms.txt)
