# x402 Hash API – UUID Generator

> x402 Hash API – UUID Generator is a paid API for AI agents from x402-hash-api.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-01).

Generates one or more random UUID v4 strings on a pay-per-call basis using USDC on Base via the x402 payment protocol

## Facts

- Endpoint: POST https://x402-hash-api.vercel.app/api/v1/uuid?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-hash-api-uuid-generator-157f0d2e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Pe_YVNK4FhJbkK3L4tgwG

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 x402-hash-api-uuid-generator-157f0d2e -d '<json body>'
```

Example prompt: Generate 5 random UUID v4s for me — I need them to assign as unique IDs to new records in my database.

## When to prefer this

Use this endpoint when an AI agent needs to generate UUID v4 identifiers programmatically, especially in a pay-per-call agentic context using the x402 protocol with USDC on Base. Prefer it over local UUID libraries when the agent environment lacks a native UUID generation capability, or when auditability of paid API calls is important. Supports batch generation of up to 20 UUIDs per call.

## Known failure modes

- Count out of range (must be 1–20): likely returns a 400 or validation error
- Unsupported UUID version (only v4 is supported): likely returns a 400 error
- Payment failure or insufficient USDC balance via x402: returns HTTP 402 Payment Required
- Service unavailable on Vercel infrastructure: returns 500 or timeout

## How this service works

Pay-per-call hashing and encoding for AI agents (USDC on Base)

## Output

A JSON object containing an array of one or more UUID v4 strings (e.g. {"uuids": ["550e8400-e29b-41d4-a716-446655440000", ...]}), with the count matching the requested number.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "count": {
   "type": "number",
   "description": "how many UUIDs (1..20)"
  },
  "version": {
   "type": "number",
   "description": "UUID version (only 4)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "uuids": [
   "550e8400-e29b-41d4-a716-446655440000"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-hash-api-uuid-generator-157f0d2e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-hash-api.vercel.app](https://www.zero.xyz/host/x402-hash-api.vercel.app/llms.txt)
