# Delx Set Intersect

> Delx Set Intersect is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Computes the intersection of two arrays, returning only the elements present in both lists along with the count.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/set-intersect
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-set-intersect-2bb50b8e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_fU3fKRWKcm8uyn74Y4DfB

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-set-intersect-2bb50b8e -d '<json body>'
```

Example prompt: Find me the common elements between these two lists: ["agent-1", "agent-2", "agent-5"] and ["agent-2", "agent-3", "agent-5"] — tell me what's in both and how many there are.

## When to prefer this

Choose this endpoint when you need a fast, stateless, paid-per-call set intersection without building custom logic — especially useful in agent pipelines that need to find shared tags, IDs, or labels across two collections. Prefer it over manual filtering when you want a reliable, auditable micro-utility with no server-side data retention and a predictable $0.001 USDC cost per call.

## Known failure modes

- Missing or non-array input for field 'a' or 'b' returns a validation error
- Empty arrays on either side return an empty intersection with count 0
- Payment failure via x402 (insufficient USDC balance or network issue) results in a 402 response before computation
- Duplicate handling within a single array may affect intersection count depending on implementation

## How this service works

Set intersection of two lists. Call when you find shared agent tags/IDs. Returns intersection items and count for $0.001 USDC via x402 on Base. No network, no keys, no retention; first-party local JSON only. Results are advisory; the caller owns budgets, auth, and production controls.

## Output

Returns the list of elements that appear in both input arrays (the intersection) and an integer count of how many shared elements were found. No data is retained server-side; computation is local and first-party.

## 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": 1,
  "items": [
   2
  ],
  "schema": "delx/util-set-intersect/v1"
 }
}
```

## More

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