# Factorial Calculator (Big-Integer Precision)

> Factorial Calculator (Big-Integer Precision) is a paid API for AI agents from api.gadgethumans.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-17).

Computes the exact factorial of an integer n (0–1000) and returns the result with full big-integer precision along with its digit count.

## Facts

- Endpoint: GET https://api.gadgethumans.com/factorial?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-17
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/factorial-calculator-big-integer-precision-e4571f15
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_XAPMhTCjIqQWuKrWQ4NDR

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 factorial-calculator-big-integer-precision-e4571f15
```

Example prompt: What is the exact factorial of 150, and how many digits does the result have?

## When to prefer this

Choose this endpoint when you need an exact, full-precision factorial result (not a floating-point approximation) for integers up to 1000, especially when digit count matters or the result will be used in further exact arithmetic. Prefer over general-purpose math libraries when you need a hosted, pay-per-call API with no setup.

## Known failure modes

- n out of range (must be 0–1000): returns an error indicating invalid input
- non-integer or missing n parameter: returns a validation error
- n is negative: returns an error as factorial is undefined for negative integers

## How this service works

Compute the factorial of a number with exact big-integer precision and its digit count. Pure CPU, instant.

## Output

A JSON response containing the exact big-integer factorial value of n and the total number of digits in that result, computed with full precision (no floating-point approximation).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "queryParams": {
     "type": "object",
     "required": [
      "n"
     ],
     "properties": {
      "n": {
       "type": "integer",
       "description": "Number (0-1000)"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "ok": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/factorial-calculator-big-integer-precision-e4571f15/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.gadgethumans.com](https://www.zero.xyz/host/api.gadgethumans.com/llms.txt)
