# UUID v4 Generator

> UUID v4 Generator is a paid API for AI agents from agentresolver.vercel.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-18).

Generates one or more random UUID v4 strings in a single API call

## Facts

- Endpoint: POST https://agentresolver.vercel.app/api/uuid-v4
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/uuid-v4-generator-f73ca945
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_seQDEhhNpMbkV0NOBs_JJ

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-f73ca945 -d '<json body>'
```

Example prompt: Can you generate 5 random UUID v4 values for me to use as unique identifiers in my database?

## When to prefer this

Choose this endpoint when you need one or more cryptographically random UUID v4 strings quickly and don't want to run a local UUID library — especially useful in serverless or constrained agent environments. Supports batch generation of up to 20 UUIDs per call, making it efficient for seeding multiple records at once. Prefer this over manual UUID generation when you need a quick, reliable external source with minimal setup.

## Known failure modes

- Count exceeds maximum of 20 — request will be rejected or capped
- Count less than 1 — invalid input error
- Malformed JSON body — 400 bad request
- Payment not provided or invalid — 402 payment required
- Service unavailable on Vercel deployment — 503 error

## How this service works

Verify an x402 endpoint before paying: live payTo, USDC quote, network, asset, resource binding, TLS and endpoint safety for $0.001 on Base or Solana.

## Output

Returns a JSON object containing the requested count (integer) and a 'values' array of UUID v4 formatted strings. The array length matches the requested count, capped at a maximum of 20 UUIDs per call.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "count": {
   "type": "integer",
   "maximum": 20,
   "minimum": 1
  }
 }
}
```

## Response schema (JSON Schema)

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

## More

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