# x402joke Pay-Per-Joke API

> x402joke Pay-Per-Joke API is a paid API for AI agents from x402joke.vercel.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Generates a fresh Claude-powered joke on demand, charging $0.01 USDC per request via x402 micropayment protocol, with an optional theme parameter.

## Facts

- Endpoint: POST https://x402joke.vercel.app/api/buy
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402joke-vercel-app-d8490670
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_C_virnZ-dexshx5XCzLV0

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 x402joke-vercel-app-d8490670 -d '<json body>'
```

Example prompt: Buy me a fresh joke about software engineers — pay the $0.01 USDC fee and get the punchline.

## When to prefer this

Choose this endpoint when you need a one-off AI-generated joke delivered instantly for a tiny $0.01 USDC micropayment via x402, especially when a themed joke is desired. Ideal for novelty bots, entertainment apps, or demos of x402 micropayment flows combined with generative AI content.

## Known failure modes

- Payment insufficient or missing — x402 payment not included or wrong amount, returns 402 Payment Required
- Invalid theme — unrecognized or too-long theme string may produce unexpected output
- Upstream Claude API failure — joke generation fails if Claude is unavailable, returns 5xx
- Rate limiting — too many requests from the same source may be throttled

## How this service works

Pay-per-joke vending machine: send USDC, get a fresh Claude-generated joke. Optional "theme" picks the topic.

## Output

A freshly Claude-generated joke, tailored to the requested theme if one was provided. The response contains the joke text ready to read or display.

## More

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