Create trained model API

edit

See Create trained models.