# Bitwise OR (Arbitrary-Precision BigInt)

> Bitwise OR (Arbitrary-Precision BigInt) 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 OR across two or more arbitrarily large non-negative integers supplied as decimal strings, returning the result in decimal, hexadecimal, and binary.

## Facts

- Endpoint: POST https://bitwise.openverbs.com/v1/or
- 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-or-arbitrary-precision-bigint-2c1a4b4d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_k0hpGduTb5wDMlhGC8EWj

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-or-arbitrary-precision-bigint-2c1a4b4d -d '<json body>'
```

Example prompt: Can you bitwise OR these three numbers for me — 255, 4096, and 16711680 — and show me the result in decimal, hex, and binary?

## When to prefer this

Choose this endpoint when you need bitwise OR on arbitrarily large integers (beyond 64-bit) that standard language runtimes cannot handle natively, or when you need multi-format output (decimal, hex, binary) in a single call. Prefer it over in-process solutions when operating in environments without BigInt support, or when auditing/logging of bitwise operations via an external service is required.

## Known failure modes

- Fewer than 2 values provided — validation error
- Non-numeric or negative value string passed — pattern mismatch error
- More than 256 values in the array — maxItems exceeded error
- Malformed JSON body — parse error
- Insufficient payment balance — x402 payment required response

## How this service works

Bitwise OR 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 an object containing the bitwise OR result expressed in three formats: decimal string, hexadecimal string, and binary string. The computation supports arbitrarily large integers via BigInt evaluation.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/bitwise-or-arbitrary-precision-bigint-2c1a4b4d/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)
