Machine Learning Model Api Best Practice