The request
One body, and a field that changes the tradition
system takes four values. Switching it
does not change the shape of the request, and this page is not going
to pretend otherwise — the honest demonstration is that the body is
identical apart from one string, and that what changes is downstream:
which fact blocks are assembled at step 7, and which grounding is
enforced at step 4.
Request fields for POST /api/v1/astrology/query
| Field | Type | Required | Notes |
| question | string | Required |
1–2000 characters. Over 2000 is rejected with QUESTION_TOO_LONG before the wallet is reserved, so an oversized question costs nothing. |
| birthDetails | object | Optional |
datetime, latitude, longitude, timezone. Flat top-level fields, a birthData object, and birthDate+birthTime or date+time pairs are all folded in. Timezone is inferred when it can be. |
| partnerBirthDetails | object | Optional |
Same shape. Its presence is what switches on the synastry section of the prompt. |
| system | enum | Optional |
vedic · western · kp · vastu. Defaults to vedic. |
| language | string | Optional |
One of 30 codes. Defaults to en. |
| speed | enum | Optional |
standard · fast · eco · pro-ultra. This is the field that selects the delivery tier. The streaming endpoint accepts the same values. |
| conversationId | string | Optional |
Send back what you were given to continue a thread. Omit it and a new id is minted. conversation_id also deserialises. |
| conversationHistory | array | Optional |
{ role, content } messages, if you would rather carry the thread yourself than use the id. |
| systemPrompt | string | Optional |
Your own persona layer. Capped at 400 lines / 12,000 characters, rejected with SYSTEM_PROMPT_TOO_LARGE rather than silently truncated. Aliases: system_prompt, customPrompt, custom_prompt, persona. |
| detail | enum | Optional | standard is exactly the default when omitted. Only brief and detailed request a word target; both leave completion headroom. An explicit maxTokens controls the token limit. On Pro Ultra, detail also sets how much reasoning the model applies before it writes: brief the least, standard or omitted a balanced amount, detailed the most. More reasoning can add latency and output tokens, billed only when used. |
| maxTokens | integer | Optional | Per-request output-token limit, billed on actual usage. On every tier except Pro Ultra the limit includes reasoning tokens. On Pro Ultra it is the answer budget: the service adds reasoning headroom (4,096 to 8,192 tokens, set by detail) on top of it, billed only when used, so every setting in the range returns an answer. Your value is honoured within the selected model’s range; an independent per-request cost ceiling may lower it. Omit it for the model default below. Values below the model minimum are clamped to that minimum. With detail:"detailed", values below 384 are rejected before billing on Standard, Swift and Pro Ultra. |
| temperature | number | Optional | Passed through to the model. |
| responseFormat | string | Optional |
The value "voice" is a server-internal signal and is stripped from any client request, so a text integration cannot accidentally opt into the spoken tone. |
| stream | boolean | Optional |
Defaults to false. There is also a dedicated SSE endpoint at /api/v1/astrology/query/stream, in both GET and POST forms. |
Model output limits
The existing GET /api/dashboard/capabilities model listing publishes min_output_tokens, max_output_tokens and default_output_tokens for each public model id. Token limits include reasoning and formatting, except on Pro Ultra, where the limit is the answer budget and reasoning headroom of 4,096 to 8,192 tokens (set by detail) is added on top and billed only when used. One Pro Ultra request can therefore bill up to maxTokens plus 8,192 output tokens. Word targets are approximate.
Output tokens per request| Model id | Minimum | Maximum | Default |
| standard-2 | 1 | 4000 | 2500 |
| standard-2.5 | 1 | 4000 | 2500 |
| swift | 1 | 4000 | 2000 |
| eco | 1 | 8192 | 8192 |
| pro-ultra | 1 | 4000 | 2500 |
Every JSON response and the final SSE completed event carries metadata.finishReason and metadata.truncated, whatever generation controls were sent. A finished answer reads complete and truncated:false. An exhausted output limit reads metadata.finishReason:"length" and metadata.truncated:true, including when no detail control was sent. The completion field also uses stopSequence, filtered and unknown. budgetExceeded remains the signal for an answer detected as incomplete after generation. A cut answer is never charged, on the stream or the JSON route, and carries degraded:true and degradedReason:"budget_truncated". A complete answer uses actual tokens, never the whole requested limit.
If a Pro Ultra request uses even its reasoning headroom before any answer text is written, it is never charged. With a birth chart the response carries metadata.degraded:true, metadata.degradedReason:"budget_truncated" and metadata.finishReason:"length"; without one the call returns HTTP 400 OUTPUT_BUDGET_EXHAUSTED. Retry with a higher maxTokens or detail:"brief".
A stop sequence ends the answer where it matches. The answer is the model's text up to that point and nothing of ours follows it: no follow-up question, no sign-off, no empathy opener. The required safety notice on a health, finance or legal question is the one exception. On Pro Ultra a match is reported as metadata.finishReason:"stopSequence"; the other tiers report complete. A stop that matches before any answer text returns HTTP 400 STOP_MATCHED_BEFORE_ANSWER and is not charged, on JSON and on streams.
When Pro Ultra is temporarily unavailable, the call returns HTTP 503 PRO_ULTRA_UNAVAILABLE. It is never charged and is never answered by another model. Retry shortly.
On the streaming endpoint the same code arrives in one of two ways. If Pro Ultra is not available to start, the response is HTTP 503 before the stream opens. If every Pro Ultra provider path fails after the stream has opened, the stream ends with an error event carrying code:"PRO_ULTRA_UNAVAILABLE" and statusCode:503, followed by a completed event with success:false. Neither is charged.