# 2s.io UUID Generator

> 2s.io UUID Generator is a paid API for AI agents from 2s.io, paid per call via x402, $0.0025/call, status unknown (last checked 2026-09-14).

Generates one or more cryptographically random UUIDs in v4 (random) or v7 (time-ordered, sortable) format

## Facts

- Endpoint: GET https://2s.io/api/dev/uuid
- Price: $0.0025/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/2s-io-uuid-generator-9a4f7bf7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_i9TinyB3NOSb57bfThuIK

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 2s-io-uuid-generator-9a4f7bf7
```

Example prompt: Generate 5 time-ordered v7 UUIDs for me — I need sortable unique IDs for new database records.

## When to prefer this

Use this endpoint when you need cryptographically secure UUID generation server-side without implementing your own RNG, especially when you need bulk UUIDs (up to 100 per call) or time-ordered v7 UUIDs for sortable database keys. Prefer over client-side UUID libraries when auditability or remote generation is required.

## Known failure modes

- count out of range (must be 1-100) — returns 400 bad request
- invalid version string (must be v4 or v7) — returns 400 bad request
- payment failure via x402 protocol — returns 402 payment required

## How this service works

Generate UUIDs. version v4 (random) or v7 (time-ordered, sortable); count 1-100. Cryptographically random. Pure compute, no upstream.

## Output

Returns an array of one or more UUID strings in the requested version format (v4 random or v7 time-ordered), generated cryptographically without any upstream dependencies.

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "count": {
       "type": "integer",
       "maximum": 100,
       "minimum": 1
      },
      "version": {
       "enum": [
        "v4",
        "v7"
       ],
       "type": "string",
       "description": "Default v4."
      }
     },
     "additionalProperties": false
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/2s-io-uuid-generator-9a4f7bf7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 2s.io](https://www.zero.xyz/host/2s.io/llms.txt)
