# Delx Commerce Random Choice API

> Delx Commerce Random Choice API 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).

Randomly selects one item from a provided set of options, returning a single chosen value via pay-per-result API with USDC micropayment.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/random-choice?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-random-choice-api-7020081c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_R12N1MrA3AuXY5rGmIz_F

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-random-choice-api-7020081c -d '<json body>'
```

Example prompt: Randomly pick one option from this list for me: ['pizza', 'sushi', 'tacos', 'burgers'] — just give me one result.

## When to prefer this

Choose this endpoint when you need a verifiable, pay-per-use random selection with no signup or API key — ideal for AI agents that require transparent micropayment accountability (USDC on Base or Solana) and need to make one-off random choices programmatically without managing a subscription or rate limit.

## Known failure modes

- Empty or missing input body returns a validation error
- Malformed JSON body causes a 400 bad request
- Payment failure or insufficient USDC balance blocks the call via x402 protocol
- Input not conforming to required schema (missing 'input' or 'output' fields) returns an error
- Non-POST method returns method-not-allowed

## 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 randomly selected item from the provided input set. The response reflects one chosen element from the options passed in the request body.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "additionalProperties": true
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-random-choice-api-7020081c/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)
