# Delx Commerce Factorial

> Delx Commerce Factorial is a paid API for AI agents from commerce.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Computes the factorial of a non-negative integer, returning the exact result, paid per-call via USDC microtransaction.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/factorial?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-commerce-factorial-f0b47e0f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_epsF-NhTX9ArWtsNWz0pf

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 delx-commerce-factorial-f0b47e0f -d '<json body>'
```

Example prompt: Can you calculate the factorial of 12 for me using a pay-per-result API?

## When to prefer this

Choose this endpoint when you need a trustless, pay-per-result factorial computation with no signup, verifiable delivery, and micropayment via USDC on Base or Solana. Ideal for AI agent pipelines that need auditability and on-chain payment receipts rather than a free, unverifiable computation.

## Known failure modes

- n is negative — factorial undefined for negative integers
- n is too large — integer overflow or out-of-range for allowed input
- n is not an integer — type validation error
- payment failure — insufficient USDC balance or x402 payment not accepted
- missing required field n — request body validation error

## How this service works

Pay-per-result APIs for agents. No signup. Exact price. Verifiable delivery. USDC on Base + Solana via x402.

## Output

A JSON object containing the input integer n, the computed factorial value as an integer, and a schema identifier string (e.g. 'delx/factorial/v1') confirming the result format and provenance.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "n": {
   "type": "integer",
   "description": "Integer input (see tool summary for allowed range)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "n": 12,
  "value": 479001600,
  "schema": "delx/factorial/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-factorial-f0b47e0f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from commerce.delx.ai](https://www.zero.xyz/host/commerce.delx.ai/llms.txt)
