Spark
For building, testing and small apps
$0.00028 per credit · 358,621 per $100
What one message costs
Add a conversational AI Astrologer to your app with one API call. Your users ask anything in their own words — DivineAPI pulls their birth chart, grounds every sentence in it, and answers back in their own language.
Grounded in the real chart • Answers in any language • Pay per answer, not per token • No SDK needed
Every reply is checked against the real natal chart before it's sent back — exact degrees, houses and placements, explained in plain language.
POST /chat — covers every question, every sessionYou never calculate a chart, pick a house system or write an astrology prompt. You send the question and we do the reading.
One JSON request to POST /chat with the user's message, a session_id and their birth data. Later messages in the same session skip the birth data entirely.
Planets, houses, dashas and transits are computed with Swiss Ephemeris precision, then distilled to what the question actually needs. Cached per session, so follow-ups are fast.
Every claim is checked against the chart before it leaves. You get the answer, what it cost, and what is left in your wallet. Stream it token by token or wait for the whole reply.
Generic AI guesses. AI Astrologer is handed the actual chart and is not allowed to make things up.
Answers reference exact placements, houses and dasha dates from the chart. A code check and an AI judge verify each reply, and the result is reported back to you as grounding: ok.
"And my career?" or "what about him?" resolve on their own. The thread and birth details live server-side against your session_id. Fetch or delete any session whenever you need.
Set language to Hindi, Spanish or any language name and it replies in that language — English by default if left out.
Plain JSON over HTTPS. Your API key goes in the body, no headers, no OAuth, no SDK to install. Same key as the rest of DivineAPI.
POST https://ask.divineapi.com/chat
{
"api_key": "your_api_key",
"user_id": "u_8812",
"session_id": "s_5f21",
"message": "When will I get married?",
"depth": "standard",
"language": "english",
"full_name": "Priya Sharma",
"day": "24",
"month": "05",
"year": "1996",
"hour": "14",
"min": "40",
"gender": "female",
"place": "New Delhi",
"lat": "28.7041",
"lon": "77.1025",
"tzone": "5.5"
}
{
"request_id": "7659de5e21cb4124",
"answer": "Your strongest marriage window appears to be from late 2026 through 2028, with especially meaningful developments between now and November 29, 2026, during your Venus-Mercury period...",
"band": "standard",
"credits_charged": 30,
"credits_remaining": 29370,
"grounding": "ok",
"chart_cache": {
"hits": 0,
"misses": 16
},
"usage": {
"input_tokens": 7048,
"output_tokens": 250
},
"latency_ms": {
"chart_fetch": 3137,
"time_to_first_token": 5242,
"total": 10273
}
}
Set "stream": true to receive the answer as it is written
• Charged only when an answer succeeds
• Guardrail replies come back with blocked: true and cost nothing
• No headers, no OAuth — the same api_key as the rest of DivineAPI
api_keyYour DivineAPI key — the same one used across the rest of the platformuser_idYour own identifier for this end user, for per-user usage reportingsession_idGroups a conversation. Send birth details once per session_id; later turns can skip themmessageThe user's question, in their own wordsdepthquick, standard or deep — how much of the chart is read, and what it costs: 20 / 30 / 50 creditslanguageOptional. Reply language, e.g. "hindi" — defaults to English if left outlength_capOptional. short, medium or full — how long the written answer isfull_nameUsed in the reading's phrasing — not required for the chart calculation itselfday, month, yearBirth datehour, minBirth time, 24-hour clockgenderUsed for phrasing pronouns in the replyplaceBirthplace, shown back for contextlat, lonBirth location coordinates — used to compute the actual charttzoneBirth timezone offset, e.g. 5.5 for ISTEvery plan has the same features. Only the credit pool and the price per credit change. Prices shown in USD based on your location.
For building, testing and small apps
$0.00028 per credit · 358,621 per $100
What one message costs
For apps with a few thousand active users
$0.00020 per credit · 498,305 per $100
What one message costs
For products where chat is the main feature
$0.00016 per credit · 643,478 per $100
What one message costs
For high-volume platforms and resellers
$0.00010 per credit · 1,026,201 per $100
What one message costs
All plans: 14-day free trial, billed monthly, unused credits do not roll over • Failed and guardrail replies are never charged • Billed separately from your REST API and MCP plans
GET /sessions, GET /session/{id} to restore a chat screen, DELETE /session/{id} when a user asks you to erase their data.
GET /balance for the wallet, GET /usage for a day-by-day breakdown you can reconcile against your own billing.
Each answer reports the credits charged and remaining, plus chart-cache hits and latency, so you can meter per user in real time.
Keep the API key server-side and pass your own user_id. Usage is recorded per user for reporting; billing is one account.
Stream deltas for a live typing feel, or wait for the full JSON. Same endpoint, one flag.
GET /health needs no key and is never charged. Point your uptime monitor at it.
Get an API key, send one request, and read the first grounded answer in under a minute. No SDK, no prompt engineering, no chart maths.