# Astrology API cost estimator

> Size an integration before you build it: users times calls per user, less what you cache, against each plan's monthly quota - and against the endpoints your feature needs, since some require a higher plan regardless of volume.

Source: https://astronode.dev/tools/api-cost-estimator · Updated: 2026-12-01

The interactive tool runs in the browser at https://astronode.dev/tools/api-cost-estimator; this file is its explanation.

## The plans the estimate uses

*Self-serve plans (lib/plans.ts, mirrored from billing)*

| Plan | Requests / month | Per minute | ₹ / month | $ / month |
| --- | --- | --- | --- | --- |
| Free | 1,000 | 60 | ₹0 | $0 |
| Hobby | 10,000 | 180 | ₹399 | $4.99 |
| Starter | 50,000 | 600 | ₹999 | $12 |
| Pro | 250,000 | 6,000 | ₹4,999 | $59 |

Above 250,000 requests a month there is a Custom plan with volume pricing; [contact us](https://astronode.dev/contact). Full plan features are on the [pricing page](https://astronode.dev/pricing).

## Three things decide the plan

- **Volume.** Requests are counted per account - summed across all your API keys - from 00:00 UTC on the 1st of each month.
- **Endpoint tier.** Some endpoints need a minimum plan (for example batch Kundli matching needs Starter). Below it the API answers `403 PLAN_REQUIRED` with `details.required_tier`, before any quota is checked. Tick the endpoints you will call and the estimate respects their tier.
- **Live keys.** The Free plan issues test keys only; issuing a live key needs a paid plan. Size production traffic from Hobby up.

## How the estimate is computed

`billable calls = users × calls per user × (1 - cache hit rate)`. The recommendation is the cheapest self-serve plan whose monthly quota covers that and whose tier unlocks every endpoint you ticked. "Per 1,000 at full use" is the plan price divided by its quota - the floor of what a call costs, reached only if you use the whole quota.

Responses are deterministic: the same input always returns the same `data` (only `meta.computed_at` changes). A birth chart for a stored birth never needs computing twice, so caching by a hash of the request body is the largest lever on the bill - which is why the estimate asks for a cache hit rate.

## Common mistakes

- **Sizing to exactly the quota.** There is no overage billing: once the month's quota is used, further requests get `429 QUOTA_EXCEEDED` until the next UTC month. Leave headroom - the tool warns above 80%.
- **Budgeting for errors that never bill.** Only successful calls (status below 400) count toward the quota; a `400`, `403`, `429` or `5xx` costs nothing. Size the plan on successful calls - but still validate inputs client-side, because a rejected request is a wasted round trip.
- **Counting screens, not calls.** A dashboard that shows a chart, a dasha table and today's panchang is three calls per view unless you cache.
- **Ignoring the per-minute limit.** A plan can cover a month's volume and still be too slow for a launch-day backfill; check the [rate-limit planner](https://astronode.dev/tools/rate-limit-planner).

## FAQ

**Do failed requests count against the quota?**

No. Only billable calls - responses with a status below 400 - count. Refused requests (`400`, `401`, `403`, `404`, `409`, `429`) and server errors (`5xx`) never consume quota, so the estimate counts successful calls only.

**When does the monthly quota reset?**

At 00:00 UTC on the first day of each calendar month.

**Can I upgrade mid-month?**

Yes - the quota check uses your active subscription's plan on every request, so an upgrade applies to the next call.

**Are prices the same as on the pricing page?**

Yes: this tool and the [pricing page](https://astronode.dev/pricing) read the same plan data.

## Related endpoints

- [`POST /v1/charts/birth`](https://astronode.dev/capabilities/vedic/charts-birth) - Birth Chart (Kundli) API
- [`POST /v1/compatibility/batch`](https://astronode.dev/capabilities/compatibility/compatibility-batch) - Bulk Kundli Matching API
