Apple provides a few pre-trained models, so today we’ll deploy an image classification model on the server behind a REST API with Vapor and create a SwiftUI client to consume it. let request = VNCoreMLRequest(model: model) So, at the root of the server package, add a new folder called MLModelSource and add the Resnet50.mlmodel file here.