New Tool Radar

Local AI

How to Choose Jan’s Local API Server Engine: llama.cpp or MLX

Pick the engine behind Jan's local API server — llama.cpp everywhere, or MLX on Apple Silicon — before you start serving.

Schematic diagram with four steps: open Jan's local API server settings, pick llama.cpp or MLX, start the server, then confirm an OpenAI client call works.

Jan’s local API server is OpenAI-compatible, but it does not run the model itself: an engine underneath does the inference. Jan offers two — llama.cpp and MLX — and the right one depends on your machine.

Pick the engine for your machine

On an Apple Silicon Mac, MLX is the natural choice: it is built for the M-series chips and their unified memory. Everywhere else — Windows, Linux, Intel Mac — llama.cpp is the engine, and it is also the safe default on a Mac if MLX gives you trouble. The engine is a server setting in Jan: pick it before you start the local API server, and the server’s base URL stays the same either way, http://127.0.0.1:1337/v1.

Jan -> Settings -> Local API Server -> Engine: llama.cpp or MLX
Base URL stays: http://127.0.0.1:1337/v1

The engine changes the speed and the models that run well, not the API: your OpenAI-compatible client code works against either. If a model misbehaves on one engine, switching engines is a cheaper test than switching models.

Try it: four checks

Check What you should see If you do not see it
Engine picked The server settings show llama.cpp or MLX MLX only on Apple Silicon
Server starts The local API server starts with the engine Check the engine setting saved
Model loads A model loads under the chosen engine Try the other engine if it fails
Client works An OpenAI client call returns a reply Base URL is 127.0.0.1:1337/v1

Expected result. We checked the Jan local API server docs, which say the server runs on the llama.cpp or MLX engine and give the default base URL http://127.0.0.1:1337/v1. We did not run Jan on this machine.

Limits

This guide covers the engine choice only. Which engine is faster for a given model depends on the hardware. We did not test any engine ourselves.

Sources

See all