Generate BaZi Report (PDF or HTML)
astroway_reports_baziThe /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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"date": "<date>"
},
"name": "astroway_reports_bazi"
}
}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 | ||
| fields | No | Compact mode: comma-separated dotted paths to keep, relative to `data`, e.g. "planets.name,planets.longitude,houses.cusp". Omit for the whole response. | |
| 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 | ||
| precision | No | Compact mode: round fractional numbers to this many decimals. Longitudes carry 14 by default; 2 is finer than any chart is drawn. | |
| 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 |