# BaZi Na Yin Calculator

> BaZi Na Yin Calculator is a paid API for AI agents from api.cn402.com, paid per call via x402, $0.016/call, status unknown (last checked 2026-09-15).

Computes the Na Yin (纳音) five-element musical name for each of the four pillars in a BaZi (八字) chart based on the Chinese sexagenary cycle

## Facts

- Endpoint: GET https://api.cn402.com/bazi/nayin
- Price: $0.016/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-cn402-com-41876f74
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QHDjByjrf5a9Rilg6RIRV

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-41876f74
```

Example prompt: What are the Na Yin names for each of my four BaZi pillars? My year pillar is 甲子, month pillar is 丙寅, day pillar is 庚午, and hour pillar is 壬申.

## When to prefer this

Use this endpoint when you need to compute Na Yin labels for a BaZi chart as part of Chinese astrology or four-pillars analysis. It is the authoritative lookup for the 60 Jiazi Na Yin system and is best suited for applications building BaZi reading tools, Chinese metaphysics platforms, or cultural astrology features that require all four-pillar Na Yin names in one call.

## Known failure modes

- Invalid or unrecognized stem-branch pair returns an error or null Na Yin name
- Malformed pillar input (wrong romanization or missing branch) causes a 400 bad request
- Unsupported pillar count or missing required fields returns a validation error
- Payment failure (x402) results in 402 response before computation occurs

## How this service works

Na Yin, 纳音, Sound of stems and branches, 60 jia-zi musical names, Chinese sexagenary cycle nayin, 海中金 沙中土, metal in sea sand earth etc. Compute the Na Yin name for each of the four pillars in a BaZi chart.

## Output

Returns the Na Yin (纳音) five-element musical label for each of the four BaZi pillars — for example 海中金 (Metal in the Sea), 炉中火 (Fire in the Furnace), 路旁土 (Earth by the Roadside), etc. — one descriptive Chinese classical name per pillar derived from the 60 Jiazi cycle.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "birth": {
   "type": "string",
   "description": "Birth (required)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-cn402-com-41876f74/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)
