Standard REST. JSON in, JSON out. One header for auth.
curl · python · node · any http client
curl -X POST https://swarm-ml.com/v1/models \
-H "x-api-key: swarm_sta_xxxx" \
-d '{"name": "lead_scoring"}'
curl -X POST https://swarm-ml.com/v1/models/abc123/train?target_column=label \
-H "x-api-key: swarm_sta_xxxx" \
-F "file=@your_data.csv"
curl -X POST https://swarm-ml.com/v1/models/abc123/predict \
-H "x-api-key: swarm_sta_xxxx" \
-d '{"features": [[35, 75000, 650.5, 12, 8]]}'
{
"predicted": "high",
"confidence": 0.9421,
"consensus": 1.0,
"probabilities": { "low": 0.02, "medium": 0.04, "high": 0.94 }
}
val_acc 0.9421 · weight 0.32
val_acc 0.9133 · weight 0.26
val_acc 0.8734 · weight 0.18
val_acc 0.8901 · weight 0.12
val_acc 0.8512 · weight 0.08
ensemble_acc 0.9607 · agents 6