# Fortune Cookie (x402 Pay-per-Call)

> Fortune Cookie (x402 Pay-per-Call) is a paid API for AI agents from v0-x402-payments-demo.vercel.app, paid per call via x402, $0.01/call, status down (last checked 2026-09-15).

Returns a fortune-cookie message signed with today's on-chain entropy, dispensed in exchange for a $0.01 USDC micropayment via the x402 protocol.

## Facts

- Endpoint: GET https://v0-x402-payments-demo.vercel.app/api/fortune
- Price: $0.01/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/v0-x402-payments-demo-vercel-app-c8389fcc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_3pvd-BX8l5kYqmZF2MOyh

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 v0-x402-payments-demo-vercel-app-c8389fcc
```

Example prompt: Crack open a fortune cookie for me — one of those blockchain-signed daily fortunes — and pay the cent it costs.

## When to prefer this

Use this endpoint when a user wants a playful, one-off fortune cookie experience with a blockchain-flavored twist, and you have x402 micropayment capability available. It is ideal for novelty, entertainment, or demonstrating pay-per-call AI agent workflows at minimal cost ($0.01).

## Known failure modes

- Payment not included or malformed x402 header — 402 Payment Required response
- Insufficient USDC balance — payment rejected before fortune is dispensed
- Network or Vercel serverless timeout — 500 or gateway error
- Rate limiting on the demo endpoint — 429 Too Many Requests

## How this service works

Fortune cookie — A fresh fortune signed with today's on-chain entropy. Cracks open on payment.

## Output

A fortune cookie message generated fresh for today, cryptographically tied to on-chain entropy from the Base blockchain, returned as a signed fortune string after the $0.01 USDC x402 micropayment is processed.

## More

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