After the training instance, we should be able to persist the model and then reuse its capabilities as an API. API access to the customer churn model will enable an external application to predict the customer retention. We will use Spring Boot, along with Thymeleaf, for the UI demonstration. We will deploy and run the application locally for the demonstration. In this recipe, we will create an API for a customer churn example.