# Delx Flatten1

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

Flattens one level of nesting from a JSON array of nested lists, returning the flattened items and a count.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/flatten1?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-21
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-flatten1-9ec2faf5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mqUKoLJBRYvKqb85zNki1

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-flatten1-9ec2faf5 -d '<json body>'
```

Example prompt: I have this nested array [[1,2],[3,4],[5]] — can you flatten it by one level so it becomes a single flat list?

## When to prefer this

Use this endpoint when you need a quick, stateless, single-level array flatten without writing custom logic — especially in agent pipelines where you want a reliable micro-utility for normalizing nested JSON arrays before downstream mapping, deduplication, or iteration. Not suited for deep/recursive flattening.

## Known failure modes

- Input 'items' field is missing or not an array — likely 400 error
- Items contains non-array elements at the top level — behavior may skip or error on non-list entries
- Payment not provided or invalid — 402 Payment Required response
- Deeply nested arrays are only partially flattened (only one level removed by design)

## How this service works

Flatten one level of nested lists. Call when you normalize agent-held nested arrays before mapping. Returns flattened 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 flattened array (one nesting level removed) and an integer count of the resulting items. No data is retained server-side.

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-flatten1-9ec2faf5/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)
