Best bet is to use RapidMiner Server and expose your RapidMiner Studio process as a REST API. There's a free version of RapidMiner Server now.