Before you send a chat request to GPT4All’s server, you need the model name exactly as the server reports it. The server has a models endpoint for that: GET /v1/models lists what is available, and GET /v1/models/<name> gives one model’s details.
Call the models endpoint
Enable the local server in Settings, then call curl http://localhost:4891/v1/models. The reply lists the models the server can serve — copy the name exactly, including the file extension, into your chat requests. For one model’s details, call curl http://localhost:4891/v1/models/<name> with the name in the path.
curl http://localhost:4891/v1/models
curl http://localhost:4891/v1/models/<name>
The list shows what the server offers, not every model file on disk: a model you have downloaded but not loaded may not appear. Load the model in GPT4All first if it is missing from the list.
Try it: four checks
| Check | What you should see | If you do not see it |
|---|---|---|
| Server on | The local server is enabled in Settings | Port 4891, localhost |
| List returns | GET /v1/models returns a model list | Check the server is running |
| Name copied | The model name is copied exactly | Include the extension |
| Details return | GET /v1/models/<name> returns details | Check the name in the path |
Expected result. We checked the GPT4All Local API Server wiki, which documents GET /v1/models and GET /v1/models/<name>. We did not call the API on this machine.
Limits
This guide covers the models endpoint only. The list reflects what the server offers, not the whole model folder. We did not test any call ourselves.
