---
title: "Render KP Chart and Tables (v2)"
method: POST
path: "/api/v2/vedic/kp/render"
tags: ["Vedic v2"]
---

# Render KP Chart and Tables (v2)

`POST /api/v2/vedic/kp/render`

## Request

- Base URL: `https://api.freeastroapi.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.freeastroapi.com/api/v2/vedic/kp/render`
- Auth: none declared

Render the same complete KP calculation as an accessible SVG or PNG.

## Request body

- KPChartRenderRequest
  - `year` integer, required: Astronomical year of birth (0-2399; 0 = 1 BCE)
  - `month` integer, required: Month of birth (1-12)
  - `day` integer, required: Day of birth (1-31)
  - `hour` integer, required: Hour of birth (0-23)
  - `minute` integer, required: Minute of birth (0-59)
  - `second` integer: Second of birth (0-59)
  - `city` string: City name (optional)
  - `lat` number, nullable: Latitude
  - `lng` number, nullable: Longitude
  - `tz_str` string: Timezone: AUTO, LMT, or standard (e.g. Europe/Berlin)
  - `ayanamsha` 'kp': KP endpoint invariant. Uses Swiss Ephemeris Krishnamurti ayanamsha.
  - `house_system` 'placidus': KP endpoint invariant. Uses sidereal Placidus house cusps.
  - `node_type` string: Node type (mean/true)
  - `reference_date` string, date, nullable: Reference date for transit-sensitive chart context, including Sade Sati. Defaults to today in timezone_used.
  - `dasha_levels` integer: KP-compatible Vimshottari depth: 1=Maha, 2=+Antar, 3=+Pratyantar.
  - `ruling_datetime` string, date-time, nullable: Optional ISO 8601 moment for ruling planets. A timezone-aware value is converted to the resolved birth-place timezone; a naive value is interpreted there. Defaults to the current moment.
  - `format` 'svg' | 'png': Rendered output format.
  - `view` 'combined' | 'chart' | 'tables': Render the full report, only the 12-house chart, or only KP calculation tables.
  - `width` integer: SVG canvas width in pixels.
  - `theme` 'light' | 'dark': Built-in report color theme.
  - `png_quality_scale` number: CairoSVG raster scale used only when format is png.

## Response `200`

A rendered KP chart, calculation tables, or combined report.

## Other responses

- `400`: Invalid birth data, coordinates, timezone, or renderer option.
- `422`: Validation Error
- `501`: PNG conversion support is unavailable on the server.

---

[API](https://skmtc.dev/freeastroapi/apis/astroservice-api.md) · [All operations](https://skmtc.dev/freeastroapi/apis/astroservice-api/llms.txt) · [OpenAPI document](https://skmtc.dev/freeastroapi/apis/astroservice-api/revisions/0c9b4a759522?raw)
