Vastu Defect Explanation (AI)
POSTAvailable
https://api.96astroapi.com/v1/ai/vastu-explain-defectAn AI-written explanation of one Vastu defect in sections, with its remedies explained.
- Credits
- Metered, from 15 credits
- Input
- Specific input
- Output
- JSON
- Delivery
- Direct response
- Languages
- English; translated term names with
labels
| Header | Value and description |
|---|---|
AuthorizationRequired | Bearer YOUR_API_KEYYour sandbox (sk_test_...) or live (sk_live_...) key. X-API-Key: <key> is accepted instead. |
Content-TypeRequired | application/jsonThe body is JSON. |
Idempotency-KeyOptional | <unique string>Makes retries safe: a repeated key with the same body replays the stored response and is never charged twice. (1 to 200 characters) |
| Field | Description |
|---|---|
defectobjectRequired | One entry of vastu-analyse data.defects, as it came. |
defect.keystringOptional | The defect's key (empty when no remedy is written for it). Default: Limits: at most 80 characters Example: |
defect.titlestringRequired | e.g. 'Toilet placed in NE'. Limits: 1 to 300 characters Example: |
defect.severitystringRequired | Allowed values: severepoormixed Example: |
defect.has_remedyboolean | nullOptional | As in vastu-analyse; not used. Default: Example: |
remediesobject | nullOptional | The data.remedies entry for this defect (its 'defect' equals the defect's title), as it came. With it, the explanation says why each remedy works. Default: |
remedies.defectstringRequired | Title of the defect these remedies are for. Limits: 1 to 300 characters Example: |
remedies.severitystringRequired | Allowed values: severepoormixed Example: |
remedies.priorityinteger | nullOptional | 1 = most urgent. Default: Limits: minimum 1, maximum 5 Example: |
remedies.freearray of objectsOptional | Limits: at most 5 items |
remedies.free[].actionstringRequired | Limits: 1 to 200 characters Example: |
remedies.free[].effortstringOptional | Default: Allowed values: lowmediumhighvery high Example: |
remedies.free[].cost_inrintegerOptional | Default: Limits: minimum 0, maximum 10000000 Example: |
remedies.objectsarray of objectsOptional | Limits: at most 5 items |
remedies.objects[].actionstringRequired | Limits: 1 to 200 characters Example: |
remedies.objects[].effortstringOptional | Default: Allowed values: lowmediumhighvery high Example: |
remedies.objects[].cost_inrintegerOptional | Default: Limits: minimum 0, maximum 10000000 Example: |
remedies.structuralarray of objectsOptional | Limits: at most 5 items |
remedies.structural[].actionstringRequired | Limits: 1 to 200 characters Example: |
remedies.structural[].effortstringOptional | Default: Allowed values: lowmediumhighvery high Example: |
remedies.structural[].cost_inrintegerOptional | Default: Limits: minimum 0, maximum 10000000 Example: |
dashaobject | nullOptional | The running dasha, to relate the defect to the chart. Default: |
dasha.mahadashastringRequired | Allowed values: SunMoonMercuryVenusMarsJupiterSaturnRahuKetu Example: |
dasha.antardashastring | nullOptional | Default: Allowed values: SunMoonMercuryVenusMarsJupiterSaturnRahuKetu Example: |
dasha.mahadasha_endstring | nullOptional | Accepted; not used. Default: Limits: format date |
dasha.antardasha_endstring | nullOptional | Accepted; not used. Default: Limits: format date |
tierstringOptional | fast (Claude Haiku), balanced (Sonnet) or deep (Opus). Sets the price range. Default: Allowed values: fastbalanceddeep Example: |
labelsstringOptional | Optional. Adds `meta.labels`: translated display names for the identifiers in the answer. `data` is unchanged. Free. Any other code is refused with 422 unsupported_language. Allowed values: asbndeesfrguhiitjaknkomlmrnenlorpaplptrusitatetrur |
Response · fields in data
The response contract: required fields are always present.
defect· objectsections· array of objecttext· stringtier· stringremedies_explained· integerdasha_used· boolean
Example request
curl -X POST https://api.96astroapi.com/v1/ai/vastu-explain-defect \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"defect": {
"key": "toilet_in_NE",
"title": "Toilet placed in NE",
"severity": "severe",
"has_remedy": true
},
"remedies": {
"defect": "Toilet placed in NE",
"severity": "severe",
"priority": 1,
"free": [
{
"action": "Keep toilet door closed at all times",
"effort": "low",
"cost_inr": 0
}
],
"objects": [
{
"action": "Hang a 9-rod metal wind-chime outside toilet entrance",
"effort": "low",
"cost_inr": 400
}
],
"structural": [
{
"action": "Relocate toilet to W or NW corner",
"effort": "very high",
"cost_inr": 80000
}
]
},
"dasha": {
"mahadasha": "Jupiter",
"antardasha": "Saturn"
},
"tier": "fast"
}'Example response (illustrative)
{
"data": {
"defect": {
"key": "toilet_in_NE",
"title": "Toilet placed in NE",
"severity": "severe"
},
"sections": [
{
"heading": "Why it matters",
"text": "The north-east (Ishanya) is the zone of water and clarity. A toilet here is treated in Vastu as the most serious placement defect."
},
{
"heading": "What you can do",
"text": "Keep the toilet door closed at all times. A 9-rod metal wind-chime outside the entrance is the usual object remedy. The structural fix is to relocate the toilet to the west or north-west."
},
{
"heading": "With your running dasha",
"text": "Jupiter, your Mahadasha lord, rules the north-east, so this zone deserves attention during the Jupiter-Saturn period."
}
…Written by hand from the documented shape: AI readings are not captured automatically. Real text, token counts and credits differ.
Error responses
- 400invalid_request
- 401invalid_key, expired_key
- 402payment_required
- 403account_suspended, plan_upgrade_required, plan_family_not_included, key_scope_denied, ip_not_allowed, origin_not_allowed, publishable_key_not_allowed
- 404not_found
- 409idempotency_conflict
- 413payload_too_large
- 422invalid_request, unsupported_language
- 429rate_limited, quota_exhausted, spend_cap_reached, project_budget_exceeded
- 500computation_failed
- 502unavailable
- 503unavailable, maintenance, temporarily_unavailable
- 504deadline_exceeded
Errors are never charged. What each status means and what to do: errors.

