# Delx Commerce NanoID Generator

> Delx Commerce NanoID Generator 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).

Generates a cryptographically random NanoID string of configurable length (4–64 characters), billed per-call at $0.001 USDC with no signup required.

## Facts

- Endpoint: POST https://commerce.delx.ai/api/v1/x402/nanoid?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-nanoid-generator-25e62fef
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_H36eId28JS8tcTMU3ZKyB

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-nanoid-generator-25e62fef -d '<json body>'
```

Example prompt: Generate me a NanoID that's 32 characters long — I need a compact, unique identifier for a new record.

## When to prefer this

Choose this endpoint when you need a pay-per-use, no-signup NanoID generator that is billed in USDC on Base or Solana via x402, with verifiable delivery and exact pricing. Prefer it over self-hosted NanoID libraries when you need an auditable, on-chain-billed ID generation step inside an agent workflow that requires provable execution and no infrastructure setup.

## Known failure modes

- size out of range (below 4 or above 64) — likely returns a 400 or validation error
- payment failure — insufficient USDC balance or x402 payment not accepted
- network timeout — endpoint unreachable, no ID returned
- malformed request body — non-integer size value causes rejection

## 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 containing the generated NanoID string (id), the actual length of the ID (size), and a schema version identifier (schema: 'delx/nanoid/v1'). Example: {"id":"V1StGXR8_Z5jdHi6B-myT","size":21,"schema":"delx/nanoid/v1"}.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "size": {
   "type": "integer",
   "maximum": 64,
   "minimum": 4,
   "description": "Optional NanoID length (4–64). Default 21 when omitted."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": "V1StGXR8_Z5jdHi6B-myT",
  "size": 21,
  "schema": "delx/nanoid/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-commerce-nanoid-generator-25e62fef/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)
