# Delx Commerce Safe Division API

> Delx Commerce Safe Division 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-01).

Performs safe integer division, returning a decimal result without throwing on divide-by-zero, paid per call via USDC on Base/Solana.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/safe-div?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-safe-division-api-4e136696
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZjTINsSQns4p5mdqaNNku

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-safe-division-api-4e136696 -d '<json body>'
```

Example prompt: Can you safely divide 10 by 4 and give me the result as a decimal?

## When to prefer this

Choose this endpoint when you need arithmetic division in an agent pipeline where divide-by-zero must be handled gracefully rather than raising an exception, and when you want a verifiable, pay-per-use computation with no signup overhead. It is not a general-purpose calculator — use it specifically for safe integer division.

## Known failure modes

- Missing required field 'a' or 'b' returns a validation error
- Non-integer inputs may be rejected per schema
- Payment failure via x402 results in 402 response and no computation
- Network timeout returns no result

## 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 with an 'ok' boolean indicating success, a 'value' field containing the floating-point quotient of a divided by b (or a safe fallback on divide-by-zero), and a 'schema' string identifying the response version (e.g. 'delx/util-safe-div/v1').

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "a": {
   "type": "integer",
   "description": "Input field: a."
  },
  "b": {
   "type": "integer",
   "description": "Input field: b."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "value": 2.5,
  "schema": "delx/util-safe-div/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-safe-division-api-4e136696/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)
