# Delx Commerce — Absolute Value (abs-n)

> Delx Commerce — Absolute Value (abs-n) 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 absolute value of a given number, returning a non-negative result, via a pay-per-result micro-API with USDC payment on Base/Solana.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/abs-n?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-absolute-value-abs-n-c83e97e8
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_gqFMvC6uSQtfPBFYPltUJ

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-absolute-value-abs-n-c83e97e8 -d '<json body>'
```

Example prompt: What's the absolute value of -5.5? Use the Delx abs-n utility and charge my USDC wallet $0.001 for the result.

## When to prefer this

Choose this endpoint when an AI agent pipeline needs a verifiable, pay-per-use absolute value computation with on-chain payment proof via x402, especially in automated workflows on Base or Solana where auditability of each computation matters. It is not suitable for bulk batch operations or when a local math library is available.

## Known failure modes

- Missing or non-numeric 'value' field in request body results in a validation error
- Payment failure (insufficient USDC balance or x402 handshake failure) results in a 402 Payment Required response
- Malformed JSON body returns a 400 Bad Request
- Network timeout or service unavailability returns a 5xx 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 absolute (non-negative) value of the input number, along with the schema identifier 'delx/util-abs-n/v1'. For example, input -5.5 returns {value: 5.5, schema: 'delx/util-abs-n/v1'}.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "value": {
   "type": "number",
   "description": "Input field: value."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "value": 5.5,
  "schema": "delx/util-abs-n/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-absolute-value-abs-n-c83e97e8/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)
