# UUID v4 Generator (x402 Machine-Payable)

> UUID v4 Generator (x402 Machine-Payable) is a paid API for AI agents from x402-gateway-production-1f21.up.railway.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-11).

Generates one or more random UUID v4 values via a micropayment-gated POST endpoint using the x402 protocol.

## Facts

- Endpoint: POST https://x402-gateway-production-1f21.up.railway.app/uuid/generate?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/uuid-v4-generator-x402-machine-payable-c6680f1b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zEhgoJUEs7HStcNNZEfai

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-v4-generator-x402-machine-payable-c6680f1b -d '<json body>'
```

Example prompt: Generate 5 random UUID v4 values for me — I need them to use as unique keys for new database records.

## When to prefer this

Choose this endpoint when an AI agent or automated pipeline needs to generate one or many UUID v4 values on demand without depending on a local library — especially in environments where calling an external micro-service is simpler than running code. The x402 micropayment model ($0.001 USDC) makes it practical for machine-to-machine workflows where billing per call is acceptable. Prefer it for batch UUID needs (up to 100 at once) in serverless or constrained runtimes.

## Known failure modes

- count out of range (must be 1–100) returns a validation error
- missing required body fields returns a 400-level error
- payment not provided or insufficient triggers an x402 payment-required response
- malformed JSON body results in a parse error
- server unavailability on Railway returns a 502/503

## How this service works

Machine-payable x402 utilities for hashing, Base64, UUID generation, unit and timezone conversion, realtime crypto market data, webpage/document extraction, URL-to-Markdown, metadata, RAG ingestion and deterministic website change detection.

## Output

Returns a JSON object with a status field and an array of one or more UUID v4 strings (e.g. '550e8400-e29b-41d4-a716-446655440000'). The number of UUIDs matches the requested count (default 1, max 100).

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "properties": {
      "count": {
       "type": "integer",
       "maximum": 100,
       "minimum": 1,
       "description": "Number of UUID v4 values to generate; default 1."
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "status": "ready"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/uuid-v4-generator-x402-machine-payable-c6680f1b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-gateway-production-1f21.up.railway.app](https://www.zero.xyz/host/x402-gateway-production-1f21.up.railway.app/llms.txt)
