# Vastu Remedy Ranking (AI) API

AI picks the top three actions across all defects and remedy tiers, each with what it addresses, effort and timeframe, and a summary.

- Endpoint: `POST https://api.96astroapi.com/v1/ai/vastu-rank-remedies`
- Family: [AI interpretation](https://96astroapi.com/apis/ai.md)
- Input: Specific input
- Cost: Metered, from 15 credits per successful call (sandbox keys are free)
- Status: available
- Delivery: Direct response
- Output languages: en
- Web page: https://96astroapi.com/apis/ai/vastu-rank-remedies

## Example request

```bash
curl https://api.96astroapi.com/v1/ai/vastu-rank-remedies \
  -H "Authorization: Bearer $ASTRO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"remedies":[{"defect":"Toilet placed in NE","severity":"severe","priority":1,"free":[{"action":"Keep toilet door closed at all times","effort":"low","cost_inr":0}],"objects":[{"action":"Hang a 9-rod metal wind-chime outside toilet entrance","effort":"low","cost_inr":400}],"structural":[{"action":"Relocate toilet to W or NW corner","effort":"very high","cost_inr":80000}]},{"defect":"Brahmasthan (central area) is blocked","severity":"poor","priority":2,"free":[{"action":"Clear all clutter, furniture, partitions from central area","effort":"medium"}],"objects":[{"action":"Place a brass kalash or Vastu Purusha symbol at center","cost_inr":800}],"structural":[]}],"goal":"wealth","tier":"fast"}'
```

## Response

Every response is `{ "data": …, "meta": { "request_id", "credits_used", "warnings", "language" } }`.
The full request and response schema, with a captured example, is in the OpenAPI document: https://api.96astroapi.com/v1/openapi.json (path `/v1/ai/vastu-rank-remedies`).
