An inference API exposes a trained model over HTTP: a client sends input data in JSON format and receives the prediction in response. It isolates the model from the rest of the system, loads the artifact once at startup and lets any application use it without knowing the training code.
Example
POST /predict with {"age": 42, "revenu": 31000} returns {"prediction": 1, "probabilite": 0.83}