# Generate ULID

> Generate ULID is a paid API for AI agents from api.gadgethumans.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-19).

Generates one or more ULIDs — 26-character, lexicographically sortable, timestamp-prefixed unique identifiers — instantly via pure CPU computation.

## Facts

- Endpoint: GET https://api.gadgethumans.com/ulid?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/generate-ulid-509f91db
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zqCgONbRAufZG1XDZqeAE

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 generate-ulid-509f91db
```

Example prompt: Generate 10 ULIDs for me — I need lexicographically sortable unique identifiers for some new database records.

## When to prefer this

Choose this endpoint when you need ULID-format identifiers specifically — especially when lexicographic sortability and embedded timestamp ordering matter (e.g. event logs, distributed systems, append-heavy databases). Prefer over UUID generators when sort order by creation time is important. Prefer over NanoID when you need the timestamp-encoded sortability that ULIDs provide.

## Known failure modes

- Missing required 'count' parameter returns an error
- count value of 0 or negative integer may return an error or empty list
- Extremely large count values may be rejected or time out
- Invalid non-integer count type returns a validation error

## How this service works

Generate ULIDs: 26-character, lexicographically sortable, timestamp-prefixed identifiers. Pure CPU, instant.

## Output

A JSON response containing one or more ULID strings — each 26 characters long, lexicographically sortable, and prefixed with a millisecond-precision timestamp component followed by random bits for uniqueness.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "input": {
   "type": "object",
   "properties": {
    "queryParams": {
     "type": "object",
     "required": [
      "count"
     ],
     "properties": {
      "count": {
       "type": "integer",
       "description": "How many ULIDs"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "example": {
     "ok": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/generate-ulid-509f91db/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.gadgethumans.com](https://www.zero.xyz/host/api.gadgethumans.com/llms.txt)
