# x402-zoo NPC Generator

> x402-zoo NPC Generator is a paid API for AI agents from x402-zoo.lolagent.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-14).

Generates a structured fictional non-player character (NPC) with identity, role, personality, motive, secret, and mannerism attributes.

## Facts

- Endpoint: GET https://x402-zoo.lolagent.workers.dev/api/npc
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-zoo-npc-generator-7a8324ff
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xaiPO8K521mrH6p6UzYh7

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-zoo-npc-generator-7a8324ff
```

Example prompt: Can you generate a fictional NPC for me — a human innkeeper with a mysterious tone? Use seed 42 so I can reproduce it later.

## When to prefer this

Choose this endpoint when you need a lightweight, affordable ($0.002 USDC), structured NPC profile on demand — especially useful for game masters, game developers, or fiction writers who need reproducible characters via seed values. Prefer this over a general LLM prompt when you want a reliably structured JSON output with specific NPC fields (identity, motive, secret, mannerism) without prompt engineering overhead.

## Known failure modes

- Invalid or unsupported query parameter values may result in default fallback generation or an error response
- Payment failure (402) if the x402 micropayment of $0.002 USDC is not supplied or is invalid
- Seed-based reproducibility may vary if the underlying model or logic changes between versions
- Network timeout on Cloudflare Workers edge if the generation takes too long

## How this service works

Generate a structured fictional NPC with identity, role, personality, motive, secret and mannerism.

## Output

A structured JSON object containing fictional NPC fields: identity (name, species), role, personality description, motive, a secret they are hiding, and a distinctive mannerism — all generated according to the optional role, species, tone, and seed parameters supplied.

## 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"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "role": {
       "type": "string"
      },
      "seed": {
       "type": "string"
      },
      "tone": {
       "type": "string"
      },
      "species": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-zoo-npc-generator-7a8324ff/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-zoo.lolagent.workers.dev](https://www.zero.xyz/host/x402-zoo.lolagent.workers.dev/llms.txt)
