# ONE Engine Modulo Calculator

> ONE Engine Modulo Calculator is a paid API for AI agents from one-search.one-engine.workers.dev, paid per call via x402, $0.0009/call, status unknown (last checked 2026-10-02).

Computes the modulo (remainder) of a value divided by a divisor via a pay-per-call API on Base using x402.

## Facts

- Endpoint: POST https://one-search.one-engine.workers.dev/v1/number/modulo?utm_source=zero.xyz
- Price: $0.0009/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/one-engine-modulo-calculator-35f0f736
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_7ALsyF4JVqntE6d3BayXr

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 one-engine-modulo-calculator-35f0f736 -d '<json body>'
```

Example prompt: What is 157 mod 13? Use a pay-per-call modulo API to get the remainder.

## When to prefer this

Choose this endpoint when an AI agent needs a lightweight, pay-per-call arithmetic modulo operation without setting up any local compute environment, particularly in autonomous workflows running on Base with x402 micropayments. Ideal for agents that need occasional modulo calculations in dynamic pipelines without bundling math libraries.

## Known failure modes

- Missing 'value' or 'divisor' fields returns a validation error
- Division by zero (divisor = 0) likely returns an error or undefined result
- Non-numeric inputs may be rejected with a 400-level error
- Payment failure via x402 on Base results in a 402 response blocking the computation
- Network timeout on the Cloudflare Worker edge

## How this service works

Low-cost pay-per-call utility APIs for autonomous agents using x402 on Base.

## Output

Returns a JSON object with a single field 'value' containing the integer remainder of the input value divided by the divisor (e.g. {"value": 2}).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "value": {
   "type": "number"
  },
  "divisor": {
   "type": "number"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "value": 2
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/one-engine-modulo-calculator-35f0f736/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from one-search.one-engine.workers.dev](https://www.zero.xyz/host/one-search.one-engine.workers.dev/llms.txt)
