ExoBengal REST API
A FastAPI-based REST API for exoplanet detection and analysis using machine learning models.
Base URL
http://localhost:8000
Features
- Multiple ML Models: Support for Random Forest, Decision Tree, KNN, and CNN models
- Earth Similarity Index (ESI): Calculate how similar an exoplanet is to Earth
- Batch Processing: Analyze multiple exoplanets in a single request
- Model Selection: Choose specific models to run or execute all available models
- RESTful API: Clean, documented endpoints with automatic OpenAPI documentation
Interactive Documentation
Explore the API interactively using these documentation interfaces:
- Swagger UI: http://localhost:8000/docs
- ReDoc: http://localhost:8000/redoc
Endpoints Overview
Method | Endpoint | Description |
---|---|---|
GET | / | Root endpoint with API information |
GET | /health | Health check endpoint |
GET | /docs | Interactive API documentation (Swagger UI) |
GET | /models/info | Information about available models |
POST | /predict | Single exoplanet prediction |
POST | /predict/batch | Batch predictions |
- DetectExoplanet — Train and run RandomForest, CNN, and kNN models.
- ExoParams — Named input container for model features.
- Utilities — ESI and common helpers.