The model list shows which models are installed in the local Ollama model store. It is the first check before running, copying, removing, or calling a model from the API.
The CLI and API expose the same inventory through different formats. Use ollama list for terminal work and api/tags for scripts that already communicate over HTTP.
An empty list means the server is reachable but has no local models. A missing model error after a non-empty list usually means the script used the wrong tag or connected to a different server.
Related: How to check the Ollama API server
Related: How to pull an Ollama model
Related: How to show Ollama model details
$ ollama list NAME ID SIZE MODIFIED gpt-oss:20b 17052f91a42e 13 GB 6 months ago
$ curl -s http://localhost:11434/api/tags {"models":[{"name":"gpt-oss:20b","model":"gpt-oss:20b"}]}
$ ollama run gpt-oss:20b "Return only OK."
OK
$ ollama show gpt-oss:20b
Model
parameters 20.9B
##### snipped #####
$ ollama pull gpt-oss:20b success
Related: How to pull an Ollama model