Kaalera

How to build an AI astrology app with the Kaalera API

A step-by-step guide to adding an AI astrologer to your app with the Kaalera API: keys, wallet, consultations and follow-ups, with real code.

· 2 min read · By Kaalera

{ }

Want an astrology chat inside your own app, without building an astrology engine or prompt pipeline? The Kaalera API gives you Kaal, an AI astrologer, over simple REST calls.

How it fits together

Your app → Kaalera API → Kaal → answer back to your app. You send birth details and a question; Kaalera computes the Kundli, Kaal writes the reading, and you poll for the answer.

1. Get an API key

Sign in at kaalera.com/developers and create a key. It starts with kal_live_ and is shown once — keep it on your server.

2. Recharge your wallet

The API is prepaid from a USD wallet, at Business & API prices 10% below the website: $10.35 to start a consultation and $7.25 per follow-up, taxes & fees included. Your first recharge must be at least $115 (incl. taxes & fees), which activates your keys. There are no free or test API calls.

3. Start a consultation

```bash
curl -X POST https://kaalera.com/v1/consultations \
-H "Authorization: Bearer $KAALERA_API_KEY" \
-H "Content-Type: application/json" \
-d '{"fullName":"Asha Verma","gender":"Female","dateOfBirth":"2 Sep 1990",
"timeOfBirth":"5:24 PM","placeOfBirth":"Jaipur, Rajasthan, India",
"timezone":"Asia/Kolkata","latitude":26.9124,"longitude":75.7873,
"question":"When is a good window for a career change?"}'
```
The response contains the consultation id.

4. Poll for the answer

```js
const res = await fetch(https://kaalera.com/v1/consultations/${id}, {
headers: { Authorization: Bearer ${process.env.KAALERA_API_KEY} },
});
const { consultation } = await res.json();
// consultation.messages holds the user and kaal messages (Markdown)
```
Polling is free. Show Kaal's Markdown in your chat UI.

5. Ask follow-ups

POST /v1/consultations/:id/questions with {"question": "..."}. Kaal remembers the Kundli and earlier answers.

Tips

  • Keep the key server-side; call the API from your backend.
  • Pass language (for example Hindi or Hinglish) to answer in your users' language.
  • Kaal's answers end with suggested next questions — show them as tappable chips to drive engagement.

Full reference: API docs · Quickstart.

Read next

For developers

Kaalera API: what you get and what it costs

Add Kaal's AI astrology to your app. What the API returns, Business & API pricing 10% below the website, and how the prepaid USD wallet works.

· 1 min read

Kundli

How Kaal reads your Kundli, step by step

From your birth details to dated predictions: the exact Kundli, the dasha periods, the transits ahead and the past events Kaal checks first.

· 1 min read