# UUID Generator (v4/v7) – api.x402node.dev

> UUID Generator (v4/v7) – api.x402node.dev is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.0022/call, status unknown (last checked 2026-09-14).

Generates one or a batch of up to 100 cryptographically random UUIDs in v4 or time-sortable v7 format

## Facts

- Endpoint: GET https://api.x402node.dev/dev/uuid
- Price: $0.0022/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-x402node-dev-174630e9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wa4xoP_qhQ8wWqByjInTG

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 api-x402node-dev-174630e9
```

Example prompt: Generate a batch of 10 UUID v7 time-sortable identifiers I can use as database primary keys.

## When to prefer this

Use this endpoint when you need cryptographically secure UUIDs (v4) or time-ordered UUIDs (v7) for distributed systems, database row IDs, session tokens, idempotency keys, or correlation IDs — especially when you need batch generation of up to 100 at once without running local code.

## Known failure modes

- Invalid version requested (not 4 or 7) — returns error response
- Batch count exceeds 100 — returns validation error
- Payment failure or insufficient USDC balance — returns 402 Payment Required
- Malformed request body — returns 400 Bad Request

## How this service works

UUID generator API, UUID generator, UUIDv4 generator, UUIDv7 generator, random UUID generator, unique ID generator, batch UUID generator, GUID generator, RFC 4122 UUID generator, online UUID generator, database UUID generator. Generate cryptographically random UUID v4 or time-sortable UUID v7, single or batch up to 100. For AI agents, distributed systems, database row IDs, request tracking, correlation IDs, idempotency keys. Accepts payment on Base or Solana — either network works.

## Output

Returns a JSON object containing a single UUID string (for single requests), an array of UUID strings (for batch requests), the UUID version integer used (4 or 7), and the count of UUIDs generated.

## Example request

```json
{
 "count": 1,
 "version": 4
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "count": {
       "type": "string",
       "description": "Count (optional)"
      },
      "version": {
       "type": "string",
       "description": "Version (optional)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-x402node-dev-174630e9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
