# Delx Commerce — Zip Keys and Values into Object

> Delx Commerce — Zip Keys and Values into Object 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).

Combines two parallel arrays (keys and values) into a single key-value object, returning the merged result.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/zip-keys-values?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-zip-keys-and-values-into-object-c61422b3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_U97_ew4jk3JzQABKQdI-L

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-zip-keys-and-values-into-object-c61422b3 -d '<json body>'
```

Example prompt: I have two arrays — keys: ["a", "b"] and values: [1, 2] — can you zip them together into a single key-value object?

## When to prefer this

Use this endpoint when you have two parallel arrays (one of keys, one of values) and need a quick, cheap, verifiable conversion to a key-value object without writing code or spinning up your own utility. Especially useful inside agent workflows where you need a pay-per-result micro-utility with no signup overhead and USDC-based micropayments on Base or Solana.

## Known failure modes

- Mismatched array lengths between keys and values may result in partial or error output
- Non-string keys may cause unexpected behavior or errors
- Empty arrays may return a count of 0 and an empty object
- Payment failure via x402 protocol will block the call from completing

## 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 three fields: 'count' (the number of key-value pairs), 'object' (the resulting merged key-value dictionary), and 'schema' (a schema identifier string 'delx/util-zip-keys-values/v1').

## Request schema (JSON Schema)

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 2,
  "object": {
   "a": 1,
   "b": 2
  },
  "schema": "delx/util-zip-keys-values/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-zip-keys-and-values-into-object-c61422b3/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)
