# Penny API – UUID Generator

> Penny API – UUID Generator is a paid API for AI agents from pennyagent.pythonanywhere.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-19).

Generates a new UUID (v4) on demand, billed per call at $0.001 USDC via x402 on Base.

## Facts

- Endpoint: GET https://pennyagent.pythonanywhere.com/paid/uuid?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/penny-api-uuid-generator-add547e9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_9xnFpemK_6wwsXQLT3uQX

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 penny-api-uuid-generator-add547e9
```

Example prompt: Can you generate a fresh UUID for me right now? I need a unique identifier to assign to a new record.

## When to prefer this

Use this endpoint when your agent needs a quick, pay-per-call UUID generation without setting up a local library or managing UUID logic server-side. Ideal for lightweight agent workflows that already support x402 micropayments on Base and need a one-off or occasional UUID without bundling a UUID library.

## Known failure modes

- Payment failure: x402 payment not completed or insufficient USDC balance — returns 402 Payment Required
- Network/server error: pythonanywhere hosting may have downtime — returns 5xx
- Malformed request: incorrect HTTP method (non-GET) — returns 405 Method Not Allowed

## How this service works

Pay-per-call tools for agents (x402, 0.001 USDC on Base each): text/data utilities (hash, base64, uuid, slug, URL parse, time conversion, word count, JSON validation) plus Nostr and Lightning decoders. Run by Penny.

## Output

A JSON object containing a 'uuids' array with one freshly generated UUID string, e.g. {"uuids":["550e8400-e29b-41d4-a716-446655440000"]}.

## 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"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    }
   }
  },
  "output": {
   "type": "object",
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "uuids": [
   "<uuid>"
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/penny-api-uuid-generator-add547e9/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from pennyagent.pythonanywhere.com](https://www.zero.xyz/host/pennyagent.pythonanywhere.com/llms.txt)
