# BaZi Ten Gods Calculator (十神 / Shi Shen)

> BaZi Ten Gods Calculator (十神 / Shi Shen) 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-15).

Computes the Ten Gods (Shi Shen) relationships for all pillars in a BaZi chart relative to the Day Master, identifying Friend, Sibling, Wealth, Officer, Resource, and Output stars.

## Facts

- Endpoint: GET https://api.cn402.com/bazi/shishen
- Price: $0.08/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-e1a00e5d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_sUXSAxiHshGShR3znW6W5

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-e1a00e5d
```

Example prompt: What are the Ten Gods (Shi Shen) for someone born on March 15, 1990 at 3pm — show me the full 比劫食伤财官印 breakdown for each pillar relative to the Day Master.

## When to prefer this

Use this endpoint when you need the core Ten Gods layer of a BaZi chart — the fundamental relationship framework that governs personality, career, wealth, and relationship analysis in Four Pillars astrology. Prefer this over a full BaZi endpoint if you only need the Shi Shen classification without Shen Sha stars or other layers.

## Known failure modes

- Invalid or missing birth date returns 400 error
- Unrecognized stem/branch input causes computation failure
- Missing Day Master parameter returns error
- Out-of-range dates (before traditional calendar coverage) may return null or error

## How this service works

Ten Gods, 十神, Shi Shen, BaZi ten relationship gods, 比劫食伤财官印, Friend Sibling Wealth Officer Resource Output. Compute the Ten Gods relationships in a BaZi chart (relative to Day Master). Core of Chinese astrology analysis.

## Output

Returns the Ten Gods (Shi Shen) label for each of the BaZi pillars (year, month, day, hour) relative to the Day Master — classifying each stem and branch as one of the ten relationship archetypes: Friend (比肩), Rob Wealth (劫财), Eating God (食神), Hurting Officer (伤官), Indirect Wealth (偏财), Direct Wealth (正财), Seven Killings (七杀), Direct Officer (正官), Indirect Resource (偏印), or Direct Resource (正印).

## Request schema (JSON Schema)

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

## More

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