---
title: "Generate Predictions"
method: POST
path: "/api/predictions/generate"
---

# Generate Predictions

`POST /api/predictions/generate`

## Request

- Base URL: `https://api.erux.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.erux.ai/api/predictions/generate`
- Auth: none declared

Generate astrological predictions based on research-validated correlations.

Uses research findings from 5,885 public figures to predict likely life events
based on upcoming dasha periods and house transits.

Returns predictions with confidence scores and research basis explanations.

## Request body

- PredictionRequest: Request model for generating predictions
  - `date` string, required: Birth date (YYYY-MM-DD)
  - `time` string, required: Birth time (HH:MM)
  - `city` string, required: Birth city
  - `state` string, nullable: Birth state/province
  - `country` string, required: Birth country
  - `timezone` string, nullable: Timezone (auto-detected if not provided)
  - `relationship` string, nullable: Relationship to user (Self, Spouse, Child, etc.)
  - `system` string: Astrological system (vedic/western)
  - `house_system` string: House system
  - `prediction_window_days` integer: Number of days ahead to predict (default 90)
  - `include_event_types` boolean: Include event type predictions
  - `profile_id` string, nullable: The ID of the profile used for this prediction
  - `horoscope_location_type` string, nullable: Location type ('birth' or 'current')
  - `current_place` string, nullable: Relocated current place
  - `current_timezone` string, nullable: Relocated current timezone
  - `current_latitude` number, nullable: Relocated current latitude
  - `current_longitude` number, nullable: Relocated current longitude

## Response `200`

Successful Response

- PredictionsResponse: Response model for predictions endpoint
  - `predictions` PredictionResponse[], required: List of predictions
    - `date_range` object, required: Start and end dates of prediction window
    - `confidence` number, required: Confidence score (0-1)
    - `confidence_percentage` number, required: Confidence as percentage
    - `factors` object, required: Factors contributing to prediction
    - `dasha_periods` object[]: Dasha periods in this window
    - `transits` object[]: Important transits
    - `research_basis` string, required: Research basis explanation
    - `prediction_text` string, required: Human-readable prediction
    - `classical_insights` string, nullable: Classical authority insights from RAG under the hood
    - `real_world_guidance` string, nullable: Strategic real-world guidance
    - `astro_remedy` string, nullable: Suggested astrological remedies
    - `days_from_dasha_start` integer, nullable: Days from dasha period start (research: mean 2,747 days)
    - `life_pillars` object[], nullable: Life-pillar organised horoscope findings
    - `activity_guide` object[], nullable: Muhurta activity guide and verdicts
  - `total_predictions` integer, required: Total number of predictions
  - `prediction_window_days` integer, required: Days ahead predicted
  - `generated_at` string, required: Timestamp when predictions were generated

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/erux/apis/erux-astrology-ephemeris-engine.md) · [All operations](https://skmtc.dev/erux/apis/erux-astrology-ephemeris-engine/llms.txt) · [OpenAPI document](https://skmtc.dev/erux/apis/erux-astrology-ephemeris-engine/revisions/9dc718df71b0?raw)
