Controlling ML via the API