Jan bundles an OpenAI-compatible server on localhost:1337, so scripts and other apps can call your local models. One curl request tells you whether the server is up and which models it offers, before you debug the app that calls it.
What you need
- Jan installed with a model downloaded
- The local API server turned on in Jan
- A terminal with curl
Step 1: Turn on the local server
In Jan, turn on the local API server. It runs on 127.0.0.1 port 1337 with the /v1 prefix by default, and it should stay on 127.0.0.1.
Step 2: Ask for the model list
Run curl http://127.0.0.1:1337/v1/models in a terminal. The server should return a list of the models it can serve.
Step 3: Check the reply
Confirm the model you loaded is in the list. If the request fails with a connection error, check the server is turned on in Jan and nothing else is using port 1337.
Worked example: synthetic Jan server check
The table below is a synthetic example. It shows the expected result of checking the Jan server; no server was queried.
| Check | Expected | Result |
|---|---|---|
| Server turned on | On, 127.0.0.1:1337 | Pass |
| curl /v1/models | Model list returned | Pass |
| Model in list | Loaded model listed | Pass |
Expected result (UNTESTED). the server is on at 127.0.0.1:1337, the models endpoint returns a list, and the loaded model is in it. This check was not run live; the table shows the expected result for the synthetic example.
Limits
- The server only lists models Jan knows about; a model that failed to download will not appear.
- Keep the server on 127.0.0.1; exposing it to a network needs an API key and a firewall.
- Jan docs list three usual launch failures: a corrupt store file, a second Jan instance, or something else using port 1337.
