Skip to content
96Astro API

Vastu Defect Explanation (AI)

POSTAvailable

POSThttps://api.96astroapi.com/v1/ai/vastu-explain-defect

An 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
Headers
HeaderValue and description
AuthorizationRequiredBearer YOUR_API_KEY

Your sandbox (sk_test_...) or live (sk_live_...) key. X-API-Key: <key> is accepted instead.

Content-TypeRequiredapplication/json

The 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)

Body · application/json
FieldDescription
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: toilet_in_NE

defect.titlestringRequired

e.g. 'Toilet placed in NE'.

Limits: 1 to 300 characters

Example: Toilet placed in NE

defect.severitystringRequired

Allowed values: severepoormixed

Example: severe

defect.has_remedyboolean | nullOptional

As in vastu-analyse; not used.

Default: null

Example: true

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: null

remedies.defectstringRequired

Title of the defect these remedies are for.

Limits: 1 to 300 characters

Example: Toilet placed in NE

remedies.severitystringRequired

Allowed values: severepoormixed

Example: severe

remedies.priorityinteger | nullOptional

1 = most urgent.

Default: null

Limits: minimum 1, maximum 5

Example: 1

remedies.freearray of objectsOptional

Limits: at most 5 items

remedies.free[].actionstringRequired

Limits: 1 to 200 characters

Example: Keep toilet door closed at all times

remedies.free[].effortstringOptional

Default: low

Allowed values: lowmediumhighvery high

Example: low

remedies.free[].cost_inrintegerOptional

Default: 0

Limits: minimum 0, maximum 10000000

Example: 0

remedies.objectsarray of objectsOptional

Limits: at most 5 items

remedies.objects[].actionstringRequired

Limits: 1 to 200 characters

Example: Hang a 9-rod metal wind-chime outside toilet entrance

remedies.objects[].effortstringOptional

Default: low

Allowed values: lowmediumhighvery high

Example: low

remedies.objects[].cost_inrintegerOptional

Default: 0

Limits: minimum 0, maximum 10000000

Example: 400

remedies.structuralarray of objectsOptional

Limits: at most 5 items

remedies.structural[].actionstringRequired

Limits: 1 to 200 characters

Example: Relocate toilet to W or NW corner

remedies.structural[].effortstringOptional

Default: low

Allowed values: lowmediumhighvery high

Example: very high

remedies.structural[].cost_inrintegerOptional

Default: 0

Limits: minimum 0, maximum 10000000

Example: 80000

dashaobject | nullOptional

The running dasha, to relate the defect to the chart.

Default: null

dasha.mahadashastringRequired

Allowed values: SunMoonMercuryVenusMarsJupiterSaturnRahuKetu

Example: Jupiter

dasha.antardashastring | nullOptional

Default: null

Allowed values: SunMoonMercuryVenusMarsJupiterSaturnRahuKetu

Example: Saturn

dasha.mahadasha_endstring | nullOptional

Accepted; not used.

Default: null

Limits: format date

dasha.antardasha_endstring | nullOptional

Accepted; not used.

Default: null

Limits: format date

tierstringOptional

fast (Claude Haiku), balanced (Sonnet) or deep (Opus). Sets the price range.

Default: fast

Allowed values: fastbalanceddeep

Example: fast

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 · object
  • sections · array of object
  • text · string
  • tier · string
  • remedies_explained · integer
  • dasha_used · boolean

Try in Playground →Capability overview

Example request

Example response (illustrative)

200application/json
{
  "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.

Was this page helpful?

Send us feedback

What is it about?