Skip to content
96Astro API

AI Reading: Custom lens

POSTAvailable

POSThttps://api.96astroapi.com/v1/ai/ai-lens

An AI-written reading of a birth chart through one lens (career, marriage, wealth, health, spiritual or year ahead), grounded in chart data the service computes from the birth.

Credits
Metered, from 15 credits
Input
Specific input
Output
JSON
Delivery
Direct response
Languages
26 languages; 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
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: 1990-10-18T14:30:00

timezonestring | nullOptional

IANA time zone, e.g. Asia/Kolkata

Default: null

Example: Asia/Kolkata

utc_offsetstring | nullOptional

Fixed offset such as +05:30, if no IANA zone is known

Default: null

Limits: pattern ^[+-]?\d{1,2}(:[0-5]\d)?$

Example: +05:30

latitudenumber | nullOptional

Latitude in decimal degrees, north positive, e.g. 28.6139. Required unless `place` is given.

Default: null

Limits: minimum -90, maximum 90

Example: 28.6139

longitudenumber | nullOptional

Longitude in decimal degrees, east positive, e.g. 77.209. Required unless `place` is given.

Default: null

Limits: minimum -180, maximum 180

Example: 77.209

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

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

place.utc_offsetstring | nullOptional

Fixed offset such as +05:30, if no IANA zone is known

Default: null

ayanamshastringOptional

Sidereal system for Vedic positions. Default lahiri. `ayanamsha-list` lists all 51 with their values.

Default: lahiri

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

Allowed values: enasbndeesfrguhiitjaknkomlmrnenlorpaplptrusitatetrur

nodestringOptional

Lunar node: true (osculating) or mean.

Default: true

Allowed values: truemean

tierstringOptional

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

Default: balanced

Allowed values: fastbalanceddeep

Example: fast

personastringOptional

Voice of the reading: coach (plain), pandit (traditional) or analyst.

Default: coach

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

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

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

partner.utc_offsetstring | nullOptional

Fixed offset such as +05:30, if no IANA zone is known

Default: null

partner_rolestringOptional

The partner's side in Vedic matching; the person asking takes the other side.

Default: bride

Allowed values: bridegroom

lensstringRequired

The focus of the reading.

Allowed values: careermarriagewealthhealthspiritualyear_ahead

Example: career

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

Options (3)
ValueMeaning
coachPersona: coach
panditPersona: pandit
analystPersona: analyst

Response · fields in data

The response contract: required fields are always present.

  • mode · string
  • lens · string
  • text · string
  • tier · string
  • persona · string
  • as_of · string
  • grounding · object
  • citations · array of object

Try in Playground →Capability overview

Example request

Example response (illustrative)

200application/json
{
  "data": {
    "mode": "lens",
    "lens": "career",
    "text": "Career: your 10th house is ruled by Venus, which favours work involving design, finance or people. Saturn, your Ascendant lord, gives persistence and rewards long-term roles. In the D10 the 10th lord is well placed. The best timing windows in the current dasha sequence are mid-2027 to 2029.",
    "tier": "fast",
    "persona": "coach",
    "as_of": "2026-10-14",
    "grounding": {
      "source": "birth-chart",
      "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.

Was this page helpful?

Send us feedback

What is it about?