khaos serve loads one or more artifacts and exposes them over HTTP. It runs the
same pipelines you get from khaos.load(), so what you test locally is what you
deploy.
Run a server
Endpoints
result is the artifact’s own container, serialized field by field. Arrays
become nested lists.
File-based domains such as CAD parts and SEC filings use the upload route:
Authentication
SetKHAOS_API_KEY to require a bearer token on every /v1 route. /health stays
open for load balancers.
Docker
The repository ships aDockerfile. Mount a volume at /models to ship weights
with the deployment, or let the container download them from the Hub on start.
Configuration
Inference runs on CPU through ONNX Runtime. Requests run in a thread pool, so
scale throughput by running more worker processes behind a load balancer.