/api/ml/predict Predict performance
Returns power density, current density, coulombic efficiency, voltage, and a multi-block enrichment response for a reactor configuration. MFC routes through the full v1 enrichment; MEC/MES/MDC/MMRC/MBES/MNRC route through their dedicated per-class predictor.
Request body
{
"systemType": "MFC",
"materials": {
"anodeMaterial": "carbon-cloth",
"cathodeMaterial": "platinum-carbon",
"anodeSurfaceArea": 25,
"cathodeSurfaceArea": 25
},
"conditions": {
"temperature": 30,
"ph": 7,
"pressure": 1,
"substrateConcentration": 1000,
"externalResistance": 1000
},
"configuration": {
"reactorVolume": 250,
"electrodeSpacing": 2,
"numChambers": 1
}
} Example
curl -X POST https://messai.io/api/ml/predict \ -H 'Content-Type: application/json' \ -d @request.json | jq '.powerOutput'
Notes
- Every enrichment block reports its own `data_status`; missing artifacts surface honestly rather than zero-filling.
- Hybrid mode opt-in via `?hybrid=true` query or `x-use-hybrid` header.