The response
A Free account after 1,000 successful calls this month:
{
"request_id": "req_01M8RK47NA7FJWBGEP2PB88BPQ",
"error": {
"code": "QUOTA_EXCEEDED",
"message": "Monthly quota of 1000 exhausted (1000/1000)",
"details": {
"used": 1000,
"limit": 1000,
"upgrade_url": "/dashboard/billing/plans"
}
}
}details.used and details.limit are numbers you can show directly. details.upgrade_url is a path in the AstroNode dashboard (the same one PLAN_REQUIRED returns) - prefix the dashboard origin before showing it to a developer, and keep it away from your own end users. The headers say when the limit ends:
HTTP/1.1 429 Too Many Requests x-request-id: req_01M8RK47NA7FJWBGEP2PB88BPQ x-ratelimit-limit: 60 x-ratelimit-remaining: 59 x-ratelimit-reset: 1796121757 retry-after: 2639903
retry-after is the number of seconds until the quota resets at the start of next month (here about 30.6 days). Use it to show the user a date rather than to schedule a retry. The x-ratelimit-* headers describe the separate per-minute window - this key still had 59 of its 60 slots, because the quota, not the rate limit, refused the call.
| Plan | Requests per month (per account) |
|---|---|
| Free | 1,000 |
| Hobby | 10,000 |
| Starter | 50,000 |
| Pro | 250,000 |
Three things that surprise people
A new key does not reset it. The count is per account. We created a second key on the same Free account and called once more:
{
"request_id": "req_01M8RK47QBG6FAVPVDQ9RAR9H4",
"error": {
"code": "QUOTA_EXCEEDED",
"message": "Monthly quota of 1000 exhausted (1000/1000)",
"details": {
"used": 1000,
"limit": 1000,
"upgrade_url": "/dashboard/billing/plans"
}
}
}Refusals are free. Note used: 1000, not 1001: the first refused call was logged in the account's usage history but not billed. Only calls that return 2xx consume quota; 400s, 401s, 403 PLAN_REQUIRED, 404s, 409s, 429s and 5xx failures are all logged and none of them is billed. In our test a Free key fired 62 requests in one second: 60 succeeded, 2 were rate-limited, and the month's billable count went up by 60. The dashboard's quota bar uses the same billable count.
The month is UTC. It starts at 00:00 UTC on the 1st, which is 05:30 IST - an Indian business still has five and a half hours of the old month left when the quota resets.
What to do
- Stop calling: every further request is refused until the reset, and your users are better served by a cached answer or a clear message.
- Cache by request body. Calculations are deterministic (see determinism), so a chart computed once never needs computing again for the same input.
- Watch usage before it runs out: the dashboard shows the same billable per-account count the API enforces.
- Upgrade if the volume is real - the new plan applies on the next request. Use pricing to size it.
The chat API's daily and hourly caps
POST /v1/chat/respond shares the monthly quota (it is one budget across both APIs) and adds message caps that reuse the same code. Tell them apart with details.kind:
A Free API key, sixth chat message of the UTC day:
{
"success": false,
"request_id": "req_01M8RK37DDQ6M7C3YGFAV8CAHK",
"error": {
"code": "QUOTA_EXCEEDED",
"message": "Daily chat limit of 5 messages on the Free plan reached; it resets at 00:00 UTC. Upgrade your AstroNode plan to remove it.",
"details": {
"kind": "daily_chat_cap",
"used": 5,
"limit": 5,
"resets_at": "2026-12-02T00:00:00.000Z",
"upgrade_url": "/dashboard/billing/plans"
}
}
}daily_chat_cap- Free plan, 5 messages per UTC day.resets_atis the next UTC midnight, and theretry-afterheader is the seconds until then (47936in this run). The message andupgrade_urlabove are what an API key gets; the Astroniq consumer app's own sessions get consumer upgrade copy instead.hourly_chat_cap- the Astroniq Plus plan, 20 messages per UTC hour.resets_atis the top of the next hour;retry-afteragain counts down to it.- Only answered messages count toward either cap. A second attempt after the daily cap still reported
used: 5- the refused message was not counted. - No
kind- the shared monthly quota, the same body as above,upgrade_urlincluded (Monthly quota of 10000 exhausted (10000/10000)on Hobby).
Questions
- Does creating another API key give me more quota?
- No. The monthly quota is counted per account across all of its keys; a new key on the same account sees the same count.
- Do failed or refused requests count toward the AstroNode monthly quota?
- No. Only successful (2xx) calls consume quota. Refused requests (400, 401, 403, 404, 409, 429) and server failures (5xx) appear in your usage history but are never billed.
- When does the monthly quota reset?
- At 00:00 UTC on the first day of each calendar month.