# Floor-Plan Auto-Detect (Vision) API

An AI vision model proposes a floor plan from a picture of it (PNG, JPEG or WebP): outline, centre, rooms, structures and main entrance in pixel coordinates, shaped as vastu-analyse input, with a confidence note.

- Endpoint: `POST https://api.96astroapi.com/v1/ai/vastu-vision-detect`
- 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-vision-detect

## Example request

```bash
curl https://api.96astroapi.com/v1/ai/vastu-vision-detect \
  -H "Authorization: Bearer $ASTRO_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"image_base64":"iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAAAAABQyaazAAAAgklEQVR42u3bQQoAIAgEQP//6fpCBsFWs2fBEbyJNcJTgICAgIDXACspgIeAp/aouvWAgICAgICAgICAgICAgICAgICAgICAgICAgICAgGsN0+/F4cCNgQABAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQE7QA/QbwMzAwgICPg7cAJxuHlDZty0owAAAABJRU5ErkJggg==","mime_type":"image/png","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-vision-detect`).
