AI Chat, Western
POSTAvailable
https://api.96astroapi.com/v1/ai/ai-western-chatAn AI answer about a birth chart in the tropical tradition, with earlier turns as history; grounded in the computed Western report.
- Credits
- Metered, from 15 credits
- Input
- Birth details
- Output
- JSON
- Delivery
- Direct response
- Languages
- 26 languages; 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 |
|---|---|
datetimestringRequired | Local date and time, ISO 8601 without offset, e.g. 1990-10-18T14:30:00 Limits: format local-date-time, pattern ^\d{4}-\d{2}-\d{2}[T ]\d{2}:\d{2}(:\d{2}(\.\d{1,6})?)?$ Example: |
timezonestring | nullOptional | IANA time zone, e.g. Asia/Kolkata Default: Example: |
utc_offsetstring | nullOptional | Fixed offset such as +05:30, if no IANA zone is known Default: Limits: pattern ^[+-]?\d{1,2}(:[0-5]\d)?$ Example: |
latitudenumber | nullOptional | Latitude in decimal degrees, north positive, e.g. 28.6139. Required unless `place` is given. Default: Limits: minimum -90, maximum 90 Example: |
longitudenumber | nullOptional | Longitude in decimal degrees, east positive, e.g. 77.209. Required unless `place` is given. Default: Limits: minimum -180, maximum 180 Example: |
placeobject | nullOptional | Where the person is now, for festival, vrat, moonrise, panchang, muhurta and wedding-plan questions. The birth place is used when omitted. Default: |
place.latitudenumberRequired | Limits: minimum -90, maximum 90 |
place.longitudenumberRequired | Limits: minimum -180, maximum 180 |
place.timezonestring | nullOptional | IANA time zone, e.g. Asia/Kolkata Default: |
place.utc_offsetstring | nullOptional | Fixed offset such as +05:30, if no IANA zone is known Default: |
ayanamshastringOptional | Sidereal system for Vedic positions. Default lahiri. `ayanamsha-list` lists all 51 with their values. Default: Allowed values: 51 valuessayanakrishnamurti_newlahirilahiri_1940lahiri_vp285lahiri_icrclahiri_rashtriyaramankrishnamurtikrishnamurti_vp291yukteshwarbhasinfagantrue_chitratrue_pushyatrue_mulatrue_revatitrue_sheoranss_citrass_revatiushashashinadisurya_siddhantasurya_siddhanta_msunaryabhataaryabhata_msunaryabhata_522babyl_brittonbabyl_etpscbabyl_huberbabyl_kugler1babyl_kugler2babyl_kugler3delucedjwhal_khulhipparchossassanianvalens_moonaldebaran_15taugalcent_0saggalcent_rgilbrandgalcent_cochranegalcent_mula_wilhelmgalequ_iau1958galequ_truegalequ_mulagalequ_fiorenzagalalign_mardyksj1900j2000b1950 |
languagestringOptional | Output language (ISO 639-1). The values listed are the ones this capability supports; any other is refused with 422 unsupported_language. Identifiers, enum values and numbers never change with language. Default: Allowed values: enasbndeesfrguhiitjaknkomlmrnenlorpaplptrusitatetrur |
nodestringOptional | Lunar node: true (osculating) or mean. Default: Allowed values: truemean |
tierstringOptional | fast (Claude Haiku), balanced (Sonnet) or deep (Opus). Sets the price range. Default: Allowed values: fastbalanceddeep Example: |
personastringOptional | Voice of the reading: coach (plain), pandit (traditional) or analyst. Default: Allowed values: coachpanditanalyst |
contextstring | nullOptional | Ground the reading in this report's data instead of the natal chart. Only the AI reading is charged, never less than the report itself. Default: Allowed values: report-careerreport-childrenreport-educationreport-foreign-travelreport-healthreport-marriagereport-politicsreport-propertyreport-relocationreport-romancereport-spiritualreport-wealthdetailed-life |
partnerobject | nullOptional | The partner's birth. With it, compatibility and marriage questions are computed from both charts (matching, Manglik match, how the marriage holds up) instead of asking for it. Default: |
partner.datetimestringRequired | Local birth date and time, ISO 8601 without an offset, e.g. 1992-03-02T05:47:00 |
partner.latitudenumberRequired | Limits: minimum -90, maximum 90 |
partner.longitudenumberRequired | Limits: minimum -180, maximum 180 |
partner.timezonestring | nullOptional | IANA time zone of the birth place, e.g. Asia/Kolkata Default: |
partner.utc_offsetstring | nullOptional | Fixed offset such as +05:30, if no IANA zone is known Default: |
partner_rolestringOptional | The partner's side in Vedic matching; the person asking takes the other side. Default: Allowed values: bridegroom |
questionstringRequired | Limits: 1 to 1000 characters Example: |
historyarray of objectsOptional | Earlier turns, oldest first. Limits: at most 6 items |
history[].rolestringRequired | Allowed values: userassistant |
history[].contentstringRequired | Limits: 1 to 4000 characters |
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.
mode· stringquestion· stringtext· stringtier· stringpersona· stringas_of· stringgrounding· objectcitations· array of object
Example request
curl -X POST https://api.96astroapi.com/v1/ai/ai-western-chat \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"datetime": "1990-10-18T14:30:00",
"timezone": "Asia/Kolkata",
"latitude": 28.6139,
"longitude": 77.209,
"tier": "fast",
"question": "What does my chart say about my work?"
}'Example response (illustrative)
{
"data": {
"mode": "chat",
"question": "When is a good time to change jobs?",
"text": "The strongest window for a job change is from January 2027, when the Mars sub-period ends and Rahu's begins within your Jupiter Mahadasha. Rahu sub-periods favour unconventional moves and new environments, which supports a change of employer. Until then, prepare: update your skills and network rather than resign.",
"tier": "fast",
"persona": "coach",
"as_of": "2026-10-14",
"grounding": {
"source": "western-detailed-report",
"characters": 9412,
"truncated": false
},
"citations": []
},
"meta": {
"request_id": "req_00000000000000000000",
"api_version": "v1",
"credits_used": 0,
"warnings": [],
…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.

