# Delx Commerce Prime Factors API

> Delx Commerce Prime Factors API 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-02).

Computes the prime factorization of an integer, returning all prime factors as a list, paid per-result via USDC micropayment.

## Facts

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

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-prime-factors-api-601fc408 -d '<json body>'
```

Example prompt: What are the prime factors of 360? Use the Delx prime factors API to get the exact factorization.

## When to prefer this

Choose this endpoint when an AI agent needs on-demand, verifiable prime factorization without any signup or subscription — ideal for single ad-hoc computations billed at $0.001 USDC per call via the x402 micropayment protocol on Base or Solana. Prefer it over self-hosted math libraries when you need a pay-as-you-go model with verifiable delivery guarantees.

## Known failure modes

- Integer n is out of the allowed range — API returns an error with the permitted bounds
- Non-integer or missing n field — request rejected with a validation error
- Payment failure or insufficient USDC balance — x402 payment not processed, request not fulfilled
- Network timeout or service unavailability — no result returned

## 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 original integer n, a schema identifier ('delx/prime-factors/v1'), and an array 'factors' listing all prime factors (with repetition) in ascending order. For example, n=42 returns factors [2, 3, 7].

## 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": 42,
  "schema": "delx/prime-factors/v1",
  "factors": [
   2,
   3,
   7
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-prime-factors-api-601fc408/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)
