# RPG Quest Generator

> RPG Quest 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 RPG quest with objective, obstacle, twist, reward, and failure consequence from optional seed, genre, location, and difficulty parameters.

## Facts

- Endpoint: GET https://x402-zoo.lolagent.workers.dev/api/quest
- 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/rpg-quest-generator-d49aeae1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_L-FFVk1PXYG7SuALmbDT4

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 rpg-quest-generator-d49aeae1
```

Example prompt: Generate a hard-difficulty fantasy RPG quest set in an ancient dungeon — give me the objective, main obstacle, a surprise twist, the reward, and what happens if the party fails.

## When to prefer this

Choose this endpoint when you need a fully structured RPG quest with all five narrative components (objective, obstacle, twist, reward, failure) in a single call, especially when you want genre, location, and difficulty customization or repeatable seeded output. Prefer it over manual prompt engineering when integrating quest generation into automated tabletop, game, or storytelling pipelines.

## Known failure modes

- Invalid or unsupported genre/difficulty/location strings may return default or generic quest content
- Payment not included or incorrect amount results in HTTP 402 Payment Required
- Seed parameter may not guarantee identical output across service updates
- Service may return generic quest if optional parameters are omitted

## How this service works

Generate a structured fictional RPG quest with objective, obstacle, twist, reward and failure consequence.

## Output

A structured JSON object describing a fictional RPG quest, containing five fields: an objective (the main goal), an obstacle (the primary challenge), a twist (an unexpected plot development), a reward (what players gain on success), and a failure consequence (what happens if the quest fails).

## 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": {
      "seed": {
       "type": "string"
      },
      "genre": {
       "type": "string"
      },
      "location": {
       "type": "string"
      },
      "difficulty": {
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/rpg-quest-generator-d49aeae1/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)
