Vedic Visual Chart
Vedic Visual Chart
/api/v2/vedic/visual/chartRender calibrated V2 Vedic divisional charts as raw SVG or PNG images. A single request can draw D1, D9, or any supported division set into one image canvas using North Indian, South Indian, or East Indian Kundli layouts.
Full URL
https://api.freeastroapi.com/api/v2/vedic/visual/chartSafe retries with Idempotency-Key
Authenticated, billable astrology POST requests accept the optional header Idempotency-Key: <client-generated unique operation key>. Reuse the same key only when retrying the exact same method, path, query string, and JSON body after a timeout or network failure.
A completed replay returns the first response with Idempotency-Replayed: true, does not rerun the calculation, and does not consume extra quota. Keys are retained for about 24 hours.
Reusing a key with a changed request returns 409 idempotency_key_reused. A duplicate while the first request is still running returns 409 request_in_progress with Retry-After.
What It Returns
The response body is image data, not JSON. Use format: "svg" for editable SVG with stable element IDs, or format: "png" for raster output generated through CairoSVG.
Real Visual Examples
These are generated SVG outputs from the endpoint using the same renderer, label placement, body stacking, and theme controls available through the API.
north_indianFixed-house diamond layout with all body groups enabled.
south_indianFixed-sign perimeter layout tuned for crowded houses.
east_indianFixed-sign square layout using the mono theme.
Example Request
curl -X POST "https://api.freeastroapi.com/api/v2/vedic/visual/chart" \
-H "Content-Type: application/json" \
-H "x-api-key: YOUR_API_KEY" \
-d '{
"year": 1985,
"month": 8,
"day": 22,
"hour": 6,
"minute": 45,
"city": "Mumbai",
"lat": 19.076,
"lng": 72.8777,
"tz_str": "Asia/Kolkata",
"ayanamsha": "lahiri",
"house_system": "whole_sign",
"node_type": "mean",
"divisions": [
1,
9
],
"chart_style": "north_indian",
"format": "svg",
"size": 700,
"theme_type": "light",
"body_types": [
"ascendant",
"classical_grahas",
"nodes",
"outer_planets"
],
"ascendant_text_color": "#0B7285",
"display_settings": {
"ascendant": true,
"rahu": true,
"ketu": true,
"uranus": true,
"neptune": true,
"pluto": true,
"sign_labels": true
}
}' \
--output vedic-d1-d9.svgRequest Body
Response
PNG Request Variant
{
"year": 1985,
"month": 8,
"day": 22,
"hour": 6,
"minute": 45,
"city": "Mumbai",
"lat": 19.076,
"lng": 72.8777,
"tz_str": "Asia/Kolkata",
"ayanamsha": "lahiri",
"house_system": "whole_sign",
"node_type": "mean",
"divisions": [
1,
9
],
"chart_style": "north_indian",
"format": "png",
"size": 700,
"theme_type": "light",
"body_types": [
"ascendant",
"classical_grahas",
"nodes",
"outer_planets"
],
"ascendant_text_color": "#0B7285",
"display_settings": {
"ascendant": true,
"rahu": true,
"ketu": true,
"uranus": true,
"neptune": true,
"pluto": true,
"sign_labels": true
},
"png_quality_scale": 2
}Customization Example
Use display_settings.chart_only to remove titles/subtitles, custom_theme for line and label colors, and chart_config for label size and line weight.
{
"year": 1985,
"month": 8,
"day": 22,
"hour": 6,
"minute": 45,
"city": "Mumbai",
"lat": 19.076,
"lng": 72.8777,
"tz_str": "Asia/Kolkata",
"ayanamsha": "lahiri",
"house_system": "whole_sign",
"node_type": "mean",
"divisions": [
1
],
"chart_style": "north_indian",
"format": "svg",
"size": 700,
"theme_type": "light",
"body_types": [
"ascendant",
"classical_grahas",
"nodes",
"outer_planets"
],
"ascendant_text_color": "#0B7285",
"display_settings": {
"chart_only": true,
"sign_labels": true,
"house_labels": false,
"division_badge": false
},
"custom_theme": {
"background": "#FFFFFF",
"panel_background": "#FFF9F0",
"grid": "#B8791D",
"outer_line": "#7A1717",
"sign_text": "#7A1717",
"body_text": "#111111",
"ascendant_text": "#0B7285"
},
"chart_config": {
"sign_font_size": 26,
"body_font_size": 19,
"body_font_weight": "500",
"grid_line_width": 3,
"outer_line_width": 4,
"panel_padding": 18
}
}Body Groups
ascendantAsc label and ascendant placement.
classical_grahasSun through Saturn.
nodesRahu and Ketu.
outer_planetsUranus, Neptune, and Pluto.
Supported Layouts
north_indianFixed-house diamond layout with signs rotating from the lagna.
south_indianFixed-sign 4x4 perimeter layout with houses rotating from the lagna.
east_indianFixed-sign square/diagonal layout with houses rotating from the lagna.