# Numora Modular Exponentiation API

> Numora Modular Exponentiation API is a paid API for AI agents from numormor.netlify.app, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-14).

Computes modular exponentiation (base^exp mod m) for integers via a pure math computation endpoint

## Facts

- Endpoint: POST https://numormor.netlify.app/api/number/modular-exp
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/numora-modular-exponentiation-api-b5532f5d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sWUwfgmOiHb94_4D6qmJq

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 numora-modular-exponentiation-api-b5532f5d -d '<json body>'
```

Example prompt: What is 7 to the power of 256, modulo 101? I need the modular exponentiation result.

## When to prefer this

Use this endpoint when you need to compute modular exponentiation (base^exp mod m) for integers — especially for number theory tasks, cryptographic key computations, primality testing steps, or any scenario requiring fast modular arithmetic without external library dependencies. Prefer this over general-purpose code execution when you need a reliable, stateless, pure math result via micropayment API.

## Known failure modes

- Missing required fields (base, exp, or mod) returns a 400 error
- Modulus of zero causes a division by zero error
- Payment not provided or insufficient causes a 402 Payment Required response
- Non-integer inputs for base, exp, or mod cause schema validation errors
- Very large integers may cause timeout or overflow errors

## How this service works

100 pure math computation endpoints for AI agents. Statistics, financial math, linear algebra, equation solving, calculus, number theory, sequence generation, and unit conversions. Zero external dependencies. x402 micropayments on Base.

## Output

Returns a JSON object with a boolean success flag, a result object containing the computed value of base^exp mod modulus, and a human-readable computation description string explaining what was calculated.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "exp",
  "mod",
  "base"
 ],
 "properties": {
  "exp": {
   "type": "integer"
  },
  "mod": {
   "type": "integer"
  },
  "base": {
   "type": "integer"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "success",
  "result",
  "computation"
 ],
 "properties": {
  "result": {
   "type": "object",
   "description": "Computation result varies by endpoint"
  },
  "success": {
   "type": "boolean",
   "description": "Always true on success"
  },
  "computation": {
   "type": "string",
   "description": "Human-readable description of what was computed"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/numora-modular-exponentiation-api-b5532f5d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from numormor.netlify.app](https://www.zero.xyz/host/numormor.netlify.app/llms.txt)
