The active inference host used by this frontend.
API Docs
API reference and integration guide
This page documents the endpoints behind the Pneumonia Diagnostic Engine so teams can run predictions, inspect model metadata, and embed the service into other products or research workflows.
Checking health and model readiness.
Loading class and input-size metadata.
Endpoint Catalog
Core routes exposed by the backend
Loading endpoint details...
Integration Notes
What matters when another system consumes this API
File upload expectations
The prediction endpoint expects a multipart form upload with the field name file.
- The backend currently supports research-facing classification between
normalandpneumonia. - The saved performance metrics describe internal held-out evaluation, not external clinical validation.
- CORS is configured so the Cloudflare Pages frontend can call the hosted backend directly.
- The FastAPI interactive documentation remains available for live schema inspection and ad hoc testing.
Quick Start
Useful request examples
Health check
Loading example...
Metadata lookup
Loading example...
Prediction request
Loading example...
Response Shapes
Representative JSON payloads
GET /api/metadata
Loading example...
POST /api/predict
Loading example...