01Why an API
A model file on disk can't help a nurse at triage. Wrapping it in a REST API lets any system β the hospital's electronic health record, a mobile app, a dashboard β send patient data over HTTP and get a prediction back as JSON.
FastAPI is the de-facto choice for Python ML serving: it's built on Starlette (async web) and Pydantic (validation), generates interactive OpenAPI docs at /docs automatically, and is fast enough that the model, not the framework, is the bottleneck.