# UUID/ULID/NanoID Generator & Parser

> UUID/ULID/NanoID Generator & Parser is a paid API for AI agents from api.24klabs.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-16).

Generate UUID v4/v5/v7, ULID, or NanoID identifiers (single or batch), or parse/validate an existing ID and extract its embedded timestamp.

## Facts

- Endpoint: POST https://api.24klabs.ai/api/v1/uuid-ulid-gen?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/uuid-ulid-nanoid-generator-parser-5cdf9035
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_D6dQcyGaYC_h5AOu9KWs8

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 uuid-ulid-nanoid-generator-parser-5cdf9035 -d '<json body>'
```

Example prompt: Generate a batch of 20 UUID v7 identifiers for me — I need them for new database rows and want the embedded timestamps.

## When to prefer this

Choose this endpoint when you need programmatic generation of standards-compliant unique identifiers (UUID v4/v5/v7, ULID, NanoID) with support for batching, or when you need to parse/validate an existing ID string and extract its embedded timestamp — especially useful in agentic pipelines needing collision-resistant IDs for records, tasks, or events without a local UUID library.

## Known failure modes

- Invalid ID type specified — returns error listing valid types
- Batch count exceeds maximum allowed — returns limit exceeded error
- UUID v5 missing required namespace or name — returns validation error
- Malformed existing ID string when parsing — returns invalid format error
- Network timeout on large batch requests

## How this service works

Generate UUID v4/v5/v7, ULID, or NanoID (single or batch), or parse/validate an existing id and extract its embedded timestamp.

## Output

Returns one or more generated IDs (UUID v4/v5/v7, ULID, or NanoID) as strings, or for parse/validate mode returns the embedded timestamp, version, variant, and whether the input is a valid ID of the given type.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "kind": {
   "type": "string"
  },
  "name": {
   "type": "string"
  },
  "namespace": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ids": [
   "cfbff0d1-9375-5685-968c-48ce8b15ae17"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/uuid-ulid-nanoid-generator-parser-5cdf9035/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.24klabs.ai](https://www.zero.xyz/host/api.24klabs.ai/llms.txt)
