create trainingAPI