# I Ching Random Hexagram Generator

> I Ching Random Hexagram Generator is a paid API for AI agents from api.cn402.com, paid per call via x402, $0.08/call, status unknown (last checked 2026-09-14).

Generates a random I Ching hexagram (1 of 64) with its number, name, lines, judgment, and image text

## Facts

- Endpoint: GET https://api.cn402.com/iching/random
- Price: $0.08/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-cn402-com-b7dd3e10
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_jAOoKnVwFYVXqzYXzn0lg

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 api-cn402-com-b7dd3e10
```

Example prompt: Cast a random I Ching hexagram for me and show me the hexagram number, its Chinese and English name, the judgment, and the image text.

## When to prefer this

Use this endpoint when a user wants a quick, casual I Ching reading or divination cast without specifying a particular hexagram — ideal for daily oracle draws, fortune-telling features, or randomized spiritual guidance apps. Prefer this over the full analysis endpoint when only the basic hexagram data is needed and cost efficiency matters.

## Known failure modes

- API returns 402 Payment Required if payment header is missing or insufficient
- Malformed response if the POST body is incorrectly structured
- Occasional service unavailability returns 5xx errors
- Lines array may be empty or null in edge cases

## How this service works

I Ching random hexagram, Book of Changes random draw, random divination cast, 周易, 易经, 卦象随机, Yijing oracle, random 64 hexagrams, Chinese divination quick draw, casual Yi Jing reading. Generate a random I Ching hexagram (1 of 64) with its lines, judgment, image, and meaning. Accepts payment on Base or Solana — either network works.

## Output

Returns a JSON object with the hexagram number (1–64), Chinese name, English name, the six lines array, the judgment text, and the image text for the randomly drawn hexagram.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "format": {
   "type": "string",
   "description": "Optional response format hint"
  }
 }
}
```

## More

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