Generate BaZi Report (PDF or HTML)
astroway_reports_baziGenerates a BaZi report from a birth date and time as PDF, HTML or Markdown, covering the four pillars, day master, element counts, strength verdict, symbolic stars, branch interactions and ten-year luck pillars.
Instructions
The /bazi/chart reading as an A4 PDF (default), HTML or Markdown: the four pillars with stems, branches, animals, ten gods, hidden stems, na yin and the twelve stages; the day master with its classical image; the five elements counted three ways; the strength verdict with favourable elements and its stated thresholds; the symbolic stars; the branch interactions; and the ten-year luck pillars when gender is given. Takes the /bazi/chart birth input (date, time, timezoneOffset or timezone, longitude with trueSolarTime, dayBoundary), plus name and city for the cover. No AI.
[Group: Reports] [Endpoint: POST /v1/reports/bazi] [Required: date] [Cost: 5,000 credits (Tier 7)] ⚠️ Premium — ~50% of free monthly budget. Confirm with user before invoking.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | No | Printed on the cover; the chart is read from date, time, zone and longitude. | |
| date | Yes | ||
| name | No | Printed on the cover. | |
| time | No | ||
| format | No | `pdf` (default) stores a PDF and answers with its `url`. `html` returns one self-contained `text/html` document, `markdown` returns `text/markdown` with the same sections and tables; neither is stored. Same price in every format. | |
| gender | No | ||
| language | No | ||
| timezone | No | IANA zone name such as Europe/Kyiv, or auto to look the zone up from latitude and longitude. The server takes the offset that zone kept at this local date and time, summer time included, and uses it in place of timezoneOffset. A clock time that happened twice takes the first occurrence; one skipped when clocks went forward takes the offset from before the change. Abbreviations such as EST are refused. Before 1970 the tz database is not reliable for every place, so send timezoneOffset when the local clock is known. | |
| longitude | No | ||
| whitelabel | No | ||
| dayBoundary | No | ||
| stageSchool | No | ||
| trueSolarTime | No | ||
| timezoneOffset | No | Ignored when timezone is sent. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | ||
| expires_at | No | ||
| page_count | No | ||
| byte_length | No | ||
| duration_ms | No | ||
| storage_key | No |