# x402 Utils – Random ID Generator

> x402 Utils – Random ID Generator is a paid API for AI agents from utils.kagurazaka.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-30).

Generates cryptographically random IDs in UUID v4, UUID v7 (time-ordered), ULID, or nanoid format, returning up to 100 at a time.

## Facts

- Endpoint: GET https://utils.kagurazaka.dev/v1/id?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-utils-random-id-generator-238f4e53
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0hzZ3m1cjI3ZPH2b4ETfk

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 x402-utils-random-id-generator-238f4e53
```

Example prompt: Generate 10 time-ordered UUID v7s so I can use them as database primary keys for new records I'm about to insert.

## When to prefer this

Use this endpoint when you need cryptographically secure random IDs in a standard format (UUID4, UUID7, ULID, or nanoid) and want to generate up to 100 at a time in a single call without running local code. Prefer UUID v7 or ULID when time-ordering matters for database indexing; prefer nanoid for short, URL-safe identifiers.

## Known failure modes

- Invalid 'type' value (not one of uuid4, uuid7, ulid, nanoid) returns an error
- count outside 1–100 range returns a validation error
- Missing required parameters may return a 400-level error
- Payment failure (x402 protocol) blocks the request

## How this service works

Generate random IDs from a cryptographic source: UUID v4, UUID v7 (time ordered), ULID or nanoid, up to 100 at a time.

## Output

A JSON object containing a 'type' field (the ID format used) and an 'ids' array with 1–100 randomly generated identifiers of the requested format.

## 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": {
      "type": {
       "enum": [
        "uuid4",
        "uuid7",
        "ulid",
        "nanoid"
       ],
       "type": "string",
       "description": "kind of ID (default uuid4)"
      },
      "count": {
       "type": "integer",
       "description": "how many (1-100, default 1)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "ids": {},
      "type": {}
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ids": [
   "019a1b2c-3d4e-7f00-8a1b-2c3d4e5f6a7b"
  ],
  "type": "uuid7"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-utils-random-id-generator-238f4e53/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from utils.kagurazaka.dev](https://www.zero.xyz/host/utils.kagurazaka.dev/llms.txt)
