# Delx Commerce — Set Union

> Delx Commerce — Set Union 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 mathematical union of two arrays, returning a deduplicated set of all unique elements from both inputs.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/set-union?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-set-union-ebfa73c6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_pdmfHLmfgx13L1Flm5PEY

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-set-union-ebfa73c6 -d '<json body>'
```

Example prompt: Can you compute the union of these two lists for me — [1, 2, 3, 4] and [3, 4, 5, 6] — and give me back all the unique elements?

## When to prefer this

Choose this endpoint when you need a lightweight, pay-per-call set union operation with no setup, no API key, and verifiable USDC-based payment via x402. Ideal for agents that occasionally need set operations without spinning up data-processing infrastructure.

## Known failure modes

- Malformed input (non-array values for a or b) may result in a 400 error
- Payment failure via x402 protocol will block execution
- Empty arrays return an empty union with count 0
- Non-homogeneous array types may produce unexpected deduplication behavior

## How this service works

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

## Output

Returns a JSON object with a count of unique items, an array of those unique items representing the mathematical union of inputs A and B, and a schema identifier string ('delx/util-set-union/v1').

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 3,
  "items": [
   1,
   2,
   3
  ],
  "schema": "delx/util-set-union/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-set-union-ebfa73c6/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)
