---
title: "5-Element Balance"
method: POST
path: "/bazi/element-balance"
tags: ["BaZi (Four Pillars)"]
---

# 5-Element Balance

`POST /bazi/element-balance`

Element counts across year + month (4 of 8 chars). Identifies dominant + missing elements.

## Request body

- BaziDateInput
  - `date` string, required
  - `time` string
  - `timezoneOffset` number

## Response `200`

Successful calculation

- object
  - `ok` boolean
  - `data` object
    - `elementCounts` object, nullable
      - `Wood` number, nullable
      - `Fire` number, nullable
    - `dominantElement` string, nullable
    - `missingElements` string[], nullable

## Other responses

- `400` — Validation error
- `401` — Missing or invalid API key

---

[API](https://skmtc.net/astroway/apis/astroway-calculation-api.md) · [All operations](https://skmtc.net/astroway/apis/astroway-calculation-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/astroway/astroway-calculation-api/revisions/6828e5609564/schema)
