Vastu
AvailableVastu Corrected Layout API
For the rooms that fail their placement rule (score under 50; optionally those that warn), a proposed zone and position snapped to the zones that room type allows, returned as data beside the original plan, with the rooms that cannot move and why (fixed, tied to the plot, no rule, or no free space). Optionally a DXF with PASS, WARN, FAIL and PROPOSED layers, drawn in your plan's units. A sketch to start a designer's conversation, labelled basis: convention.
- POST /v1/vastu/vastu-corrected-layout
- 3 credits
curl https://api.96astroapi.com/v1/vastu/vastu-corrected-layout \ -H "Authorization: Bearer $ASTRO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "units": "m", "north": { "degrees": 0, "reference": "true" }, "boundary": [ [ 0, 0 ], [ 12, 0 ], [ 12, 9 ], [ 0, 9 ] ], "rooms": [ { "name": "Kitchen", "type": "kitchen", "polygon": [ [ 9, 0.5 ], [ 11.5, 0.5 ], [ 11.5, 3 ], [ 9, 3 ] ] }, { "name": "Master bedroom", "type": "master_bedroom", "polygon": [ [ 0.5, 5.5 ], [ 4, 5.5 ], [ 4, 8.5 ], [ 0.5, 8.5 ] ] }, { "name": "Entrance", "type": "main_entrance", "polygon": [ [ 5, 0 ], [ 7, 0 ], [ 7, 1 ], [ 5, 1 ] ] } ], "include_dxf": false }'
Overview
For the rooms that fail their placement rule (score under 50; optionally those that warn), a proposed zone and position snapped to the zones that room type allows, returned as data beside the original plan, with the rooms that cannot move and why (fixed, tied to the plot, no rule, or no free space). Optionally a DXF with PASS, WARN, FAIL and PROPOSED layers, drawn in your plan's units. A sketch to start a designer's conversation, labelled basis: convention.
Call it with POST /v1/vastu/vastu-corrected-layout. Input: specific input. Output: JSON, as a direct response. Each successful call costs 3 credits.
- POST /v1/vastu/vastu-corrected-layout
- 3 credits
- Specific input
Try it
Response
Ready when you are
Press Run it to see the live response here.
Example response
Fields in dataInferred from the example response: a guide to the shape, not a contract.
basisstringstatusstringruleobjectcannot_movearraynotestringoriginalobjectproposalsarray of objectanalysis_summaryobject
200Example response
Captured from the live engine with a sandbox key (so credits_used is 0) and trimmed: long arrays keep their first items and image data is shortened.
Loading the example…
Request schema and every field: the Vastu reference.
Related endpoints
01What does the Vastu Corrected Layout API return?
For the rooms that fail their placement rule (score under 50; optionally those that warn), a proposed zone and position snapped to the zones that room type allows, returned as data beside the original plan, with the rooms that cannot move and why (fixed, tied to the plot, no rule, or no free space). Optionally a DXF with PASS, WARN, FAIL and PROPOSED layers, drawn in your plan's units. A sketch to start a designer's conversation, labelled basis: convention. The response's data object includes basis, status, rule, cannot_move, note, original, proposals and analysis_summary. See the reference for an example response.
02What input does Vastu Corrected Layout need?
Specific input.
03How much does a Vastu Corrected Layout call cost?
3 credits per successful call; a failed call is not charged. Plans and top-ups are on the pricing page.
04Can I try it before paying?
Yes. Every account gets sandbox keys and trial credits, so you can call it from your own code before choosing a plan.


