# Delx Time-Sortable ID Generator (KSUID-style)

> Delx Time-Sortable ID Generator (KSUID-style) is a paid API for AI agents from api.delx.ai, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Generates a compact, time-sortable unique ID (KSUID-inspired) suitable for log entries, event streams, and ordered records without requiring a database sequence.

## Facts

- Endpoint: POST https://api.delx.ai/api/v1/x402/ksuid
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/delx-time-sortable-id-generator-ksuid-style-fe5543c2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yY6UJ4oCrOksx0QDNO8p9

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 delx-time-sortable-id-generator-ksuid-style-fe5543c2 -d '<json body>'
```

Example prompt: Generate a time-sortable unique ID for a new log entry in my event stream — I need something KSUID-inspired that sorts chronologically without a database sequence.

## When to prefer this

Use this endpoint when you need lightweight, time-ordered unique IDs in a distributed or serverless context where you have no access to a database sequence or auto-increment, and you want IDs that sort chronologically without coordinating state across services. Prefer it over UUIDs (v4) when chronological sortability matters, and over full KSUID libraries when you don't want to ship a dependency. It costs only $0.001 USDC per call with no API key or subscription required.

## Known failure modes

- Malformed request body returns a structured JSON error object (not billed)
- Network or upstream service unavailability returns an HTTP error
- Insufficient USDC balance or x402 payment failure prevents the call from completing
- Rate limiting or quota exhaustion may return a 429 or payment-related error

## How this service works

Time-sortable IDs. Use when you want roughly time-ordered IDs for logs or event streams without a DB sequence. Returns a compact time-sortable id (KSUID-inspired, not a full KSUID library claim). $0.001 USDC per successful call via x402 on Base—first-party JSON from Delx (fresh each call; not a deterministic transform), no API key, no subscription, and nothing is billed on structured validation errors.

## Output

Returns a JSON object containing: `id` (the compact time-sortable string identifier), `unix` (the integer Unix timestamp embedded in the ID), and `schema` (a string identifying the ID format/version). Structured validation errors are returned as a JSON error object and are not billed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [],
     "properties": {},
     "additionalProperties": true
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "type": "string",
     "const": "json"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "properties": {
      "id": {
       "type": "string"
      },
      "unix": {
       "type": "integer"
      },
      "schema": {
       "type": "string"
      }
     },
     "description": "Deterministic structured JSON result from first-party execution. Invalid inputs return a structured error object and are not billed.",
     "additionalProperties": true
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "id": "687a3f807d4f3c2b1a09e8d7",
  "unix": 1752501120,
  "schema": "delx/ksuid-ish/v1"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/delx-time-sortable-id-generator-ksuid-style-fe5543c2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.delx.ai](https://www.zero.xyz/host/api.delx.ai/llms.txt)
