Dependencies
ModPod is self-contained. It does not require any other FlowX infrastructure service to run.- Persistent volume — required for model artifacts and the SQLite registry
- Identity provider — not used; authentication is a static bearer token
- Kafka — not used
- Object storage (S3/MinIO) — not used; models are stored on the mounted volume
Capabilities
- Upload model packages as ZIP archives with a
metadata.jsonmanifest - Manage model registry (list, fetch, delete by name/version)
- Load models into memory on demand
- Run inference with SHAP-based top-factor explanations
- Support for LightGBM (Booster text format) and Logistic Regression (scikit-learn, joblib-serialized)
Authentication
ModPod uses a static bearer token. Set theAUTHORIZATION_APIKEY environment variable and include the token on every request except the health check:
API endpoints
All endpoints are prefixed with/modpod.
Health
Model upload
The ZIP must contain a
metadata.json file with name and version fields. Files are extracted to <MODPOD_MODELS_DIR>/<name>/<version>/.
Model registry
Inference
Predict request
Predict response
Supported model types
Both types produce SHAP-based top-factor explanations alongside the prediction. LightGBM uses the built-in
pred_contrib output; Logistic Regression uses shap.LinearExplainer.
Model package structure
Model packages are uploaded as ZIP archives with the following layout:metadata.json file must contain at least name and version:
Environment variables
Authentication
Storage
Server
Recommended worker count is
1. Inference is CPU-bound and loaded models are held in per-process memory; additional workers multiply the memory footprint without increasing throughput for a single model.CORS
Deployment
ModPod is packaged as a Docker image based onpython:3.13.3-slim-bookworm and runs as a non-root user.
Resource recommendations
Validation
Health check returns
200 OK:Authenticated listing returns an empty list (fresh install) or your registered models:
Related resources
Ingress configuration
Routing and CORS for FlowX services
Setup guides overview
Full list of FlowX service setup guides

