Practical overview
When it fits
Use it when starting a self-hosted FastAPI model-serving project or when you need a documented example for running a house-price regression model behind a REST API.
Who it is for
- Developers who want a starting point for building a Python REST API around a machine-learning model.
- Teams that want to adapt a house-price prediction example and extend the skeleton's testing and development setup.
Documented uses
- Install the skeleton's Python dependencies with Poetry.
- Configure API-key authentication for the sample application.
- Run the included house-price regression model through a local REST API.
- Use the included tests and development tooling while extending the application.
Requirements & limits
- The documented prerequisites are Python 3.11 or later and Poetry.
- The sample API requires an API_KEY value configured in
.env. - The example can be tried through FastAPI's local interactive
/docspage using a supplied sample payload. - The README documents separate scripts for tests and linting, formatting, and static analysis.
Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.
Install and run the house-price API example
Set up the documented sample application and use its local API documentation to try a house-price prediction.
Before you start
- Python 3.11 or later
- Poetry
- A local environment such as a virtual environment or conda environment
Steps
Install the required packages with
poetry install.Copy
.env.exampleto.envand configure theAPI_KEYvalue; the README shows generating a UUID-based sample key in Python.Load the environment file and start the application with
uvicorn fastapi_skeleton.main:app, following the README's shell commands.Open
http://localhost:8000/docs, choose Authorize, enter the configured API key, and use the sample payload indocs/sample_payload.jsonto try the prediction endpoint.
Expected outcome
A locally running FastAPI application with its house-price prediction example available to try through the interactive API documentation.
Guide limitations
- The guide covers the included regression example; adapting the skeleton to another model requires development beyond these steps.
- The documented shell commands use
sourceandset -a.
Compare options for Model inference and serving
These projects document a common task and share a project role. This is a source-based comparison, not an execution benchmark or a guarantee of interchangeability.
| Project | Documented purpose | Platform | Access and requirements |
|---|---|---|---|
| FastAPI Model Server Skeleton | Install the skeleton's Python dependencies with Poetry. | Server, Self-hosted | |
| Rten | Load an ONNX model and run CPU inference from Rust. | Linux, macOS, Windows, Server | |
| Moe Infinity | Serve MoE models whose expert weights do not all fit in GPU memory. | Linux, Server, Self-hosted | The repository is public and identifies its license as Apache-2.0. Installation documentation specifies Python 3.10 or later and a CUDA-capable GPU. |
Sources & review
Source record details
- Source availability
- Active
- Sources checked
- 8 November 2026
- Original website title
- GitHub - eightBEC/fastapi-ml-skeleton: FastAPI Skeleton App to serve machine learning models production-ready. · GitHub · Official homepage title · retained in its source language

