/api/predict
Classify a flower. Returns the species, confidence, per-class probabilities and the K nearest training samples.
curl -X POST https://iris-knn.vercel.app/api/predict \
-H "Content-Type: application/json" \
-d '{"sepal_length":5.1,"sepal_width":3.5,
"petal_length":1.4,"petal_width":0.2}'