curl localhost
An API Server Your Whole Office Can Call.
A local ai api server setup turns a model on one machine into a service on your LAN. This page covers the port, the format, the lock-down and the mistakes we have made doing it.

Everything interesting you can do with a local model beyond chatting with it starts with an API: an editor asking for completions, a script redacting a folder overnight, an internal tool classifying tickets. All of them need a model that answers HTTP requests on your network. This is the API page under back to choosing local ai software.
The Common Format

Nearly every local runner exposes an endpoint that imitates the chat and completion API popularised by the hosted services. That is good news: editor extensions, libraries and scripts written for the hosted version can be pointed at your server by changing one base URL and one key. Pick a runner that supports that format and you inherit a large ecosystem of clients without writing any of them.
Standing It Up
Install the runner on the machine with the graphics card. Load the model. Bind the server to the machine's LAN address rather than only to localhost, and choose a port. Put authentication in front of it, even inside the building, because a model server that any device on the Wi-Fi can call will be found by the first curious laptop. Then test from a second machine with a single request and a stopwatch. If the first answer takes a long time, the model is loading; if every answer does, the model does not fit.
Serving More Than One Person

A single-user runner handles requests one after another. Fine for a developer's editor, miserable for a department. For concurrency you want a server engine that batches requests on the card, and you want to size memory for the model plus every simultaneous context. Add a reverse proxy for TLS and logging, and decide what the logs keep: the prompts of a law firm's staff are themselves confidential, and we keep only timings and status codes.
What to Expose
One endpoint per model, named by task, not by model file. "redact", "extract", "chat". Then you can replace the model behind "redact" after a retraining without touching a single client. This is how our own appliance is organised, with several small task models behind one API on the customer's LAN, and the pattern works for a general chat server just as well.
If you are still deciding which tool to build this on, the two usual starting points are compared in our guide to ollama vs lm studio; both can serve an API, and only one is comfortable on a headless server.

Prove it on your documents.
Every engagement starts the same way: we run the system on a sample of your own files, under NDA/DPA, and hand you a written report with the scores, misses included. No commitment.