What is Ollama? The video player for AI models, and localhost:11434 explained

The model is the movie. Ollama is the player. Here is what Ollama really is, why everything talks to localhost:11434, and what happens inside when you ask it a question.

Three movie cassettes labelled qwen3.5:4b, gemma3:4b and llama3.2:3b. The qwen3.5:4b one is inserted into a player labelled Ollama, and a screen above it shows the model's answer. A legend says movie equals the model file, player equals Ollama, video store equals the ollama.com library, remote equals commands and the API.
Fig. 1 — Swap the movie, and the same player plays it. Swap the model, and the same Ollama runs it.

You have probably heard that you can “run AI on your own computer with Ollama”. But what is Ollama, exactly? Is it a model? A chat app? A server? The short answer: it is a small program that turns a model file into something you can talk to.

This guide explains Ollama with one simple picture (a movie and a video player), then opens the box: the local server at localhost:11434, where your models live, and what happens step by step when you ask a question. It is part two of a series, but it stands on its own.

Ollama in one line

Ollama is a free app that downloads language models, keeps them organised, and runs them on your own computer, behind a simple API.

A model on its own is just a file of numbers (see how to run an LLM on your own computer for why). Ollama is the thing that makes that file useful.

The model is the movie. Ollama is the video player.

Think about watching a movie at home. You need two things: the movie itself, and a player that can play it. The movie holds the content. The player knows how to read it and put it on screen. You don’t buy a new player for every movie: one player plays them all.

Ollama works the same way:

In the movie world In the AI world
Movie The model file: its weights, for example qwen3.5:4b
Player Ollama, which loads the model and runs it
Video store The ollama.com model library
Remote control The commands (CLI) and the API

Put in the Qwen movie, and the player plays it: the model answers. Swap in a different movie, say Gemma, and the same player plays that one too. You don’t install a new app for every model. You just ask Ollama to use a different one.

This is also why it is easy to compare models. Ask the same question to qwen3.5:4b and then to gemma3:4b, and the only thing that changed is the movie.

Ollama is a server on your own computer

Here is the part most people miss. When you install Ollama, it does not just give you a chat window. It starts a small server that runs quietly in the background. On Windows and macOS this usually starts on its own with the app; on Linux, or if it is not running, you start it with:

ollama serve

That server listens at one address:

http://localhost:11434

Let’s break that down in plain words:

  • localhost means “this same computer”. Not a website, not the internet. The request goes from your computer to your computer.
  • 11434 is the port, like a door number. A computer runs many programs that accept connections, and each listens at its own door. Ollama’s door is 11434 by default.

You can check it is running by opening http://localhost:11434 in your browser. You should see a short message saying Ollama is running. Or ask it which models you have:

curl http://localhost:11434/api/tags

That returns JSON describing every model on your disk.

“Your code never opens the model file. It only talks HTTP to Ollama.”

Even the ollama command is just a client

This surprises people. When you type ollama run qwen3.5:4b in a terminal, the ollama command does not run the model itself. It sends a request to the server at localhost:11434, just like any other program would.

So the terminal, the desktop app, Postman, curl, and your own Python or Java code are all clients of the same server. They speak the same JSON, to the same address. That is why the series shows four ways to use Ollama, and why learning the API once means you can use it everywhere.

What happens when you ask Ollama a question

Let’s follow one request through Ollama, step by step.

Three clients on the left, the ollama CLI, Java or Python code, and curl, Postman or apps, send requests into the Ollama server at localhost:11434. Inside the server, an HTTP API leads to a model store on disk at ~/.ollama/models and a runner in memory on RAM or GPU that predicts tokens. A cloud labelled ollama.com, used only for the first download, feeds the model store. A green arrow returns a JSON message to the client. Six numbered steps are listed below.
One request, six steps. The internet is only used the first time, to download the model.
  1. One address for everything. A client (the terminal, an app, your code) connects to localhost:11434.
  2. A request arrives. It says which model to use and what you want: a prompt, or a list of chat messages. For example: { "model": "qwen3.5:4b", "messages": [ ... ] }.
  3. Is the model on disk? Ollama checks its model store. If the model is not there yet, it downloads it from the ollama.com library first. This is the only time it needs the internet.
  4. Load the weights into memory. Ollama loads the model from disk into RAM, or into your graphics card’s memory if you have one. Then it keeps it loaded for about 5 minutes after the last request, so your next question doesn’t wait for loading again.
  5. Predict, one token at a time. The runner reads your whole conversation and predicts the answer one small piece (a token) at a time, the same loop explained in what a large language model is.
  6. The answer goes back as JSON. Either streamed in small pieces as it is written, or as one complete JSON if you ask for "stream": false. The REST API guide shows both.

Where are the models stored?

Downloaded models live in Ollama’s model store on your disk:

System Default folder
Windows C:\Users\<your-name>\.ollama\models
macOS and Linux ~/.ollama/models

If your main drive is small, you can move it: set the OLLAMA_MODELS environment variable to another folder and restart Ollama. Similarly, OLLAMA_HOST changes the address and port the server listens on, though most people never need to touch it.

Disk versus memory

It helps to keep two places in mind:

  • Disk is where downloaded models are stored. They stay there until you delete them.
  • Memory is where a model is loaded while it is being used. It leaves memory after a few idle minutes, or when you stop it.

The CLI commands guide shows which command changes which: ollama ps shows memory, ollama list shows disk, ollama stop clears memory, ollama rm deletes from disk.

How to read a model name like qwen3.5:4b

When you browse the library on ollama.com, every model has a name and a tag:

qwen3.5 : 4b
───┬───   ─┬─
 family   tag (usually the size)
  • Before the colon is the model family: qwen3.5, gemma3, llama3.2.
  • After the colon is the tag, usually the size. 4b means about 4 billion weights. Bigger is smarter but needs more memory.
  • No tag means :latest. For example, ollama run qwen3.5 gives you whatever the library marks as latest, which for qwen3.5 is the 9b. It is safer to always write the tag you want.

A model page also tells you two more useful things.

The context window. Qwen 3.5 can see about 256K tokens at once: roughly a few hundred pages of text. That is the most text the model can read in one request, including the whole conversation so far. (By default Ollama may use a smaller window than the model’s maximum, to save memory. You can raise it in the desktop app’s settings or per request with the num_ctx option.)

Capability badges. These tell you what a model can do:

Badge Meaning
vision It can read images as well as text
tools It can ask your code to call functions, the basis of AI agents
thinking It can reason step by step before answering
embedding It turns text into numbers for search and RAG
cloud It runs on Ollama’s servers, not yours: not private, not offline

Qwen 3.5 has vision, tools and thinking, which is one reason it is a good model to learn with.

Key takeaways

  • The model is the movie. Ollama is the player. ollama.com is the store, and the commands and API are the remote.
  • Ollama runs as a server on your own computer at localhost:11434. Localhost means this machine; 11434 is the port.
  • Everything is a client, even the ollama command. Your code sends the same JSON over HTTP.
  • A request goes: arrive, find the model on disk (download it once if needed), load it into memory (kept about 5 minutes), predict tokens, return JSON.
  • Read model names as family:tag, and watch out for :cloud if privacy matters.

The full series: Run LLMs locally with Ollama

Each part stands on its own, so jump to whichever you need:

  1. How to run an LLM on your own computer
  2. What is Ollama? The video player for AI models, and localhost:11434 explained (you are here)
  3. Ollama CLI commands: the complete cheat sheet
  4. The Ollama desktop app: chat, pick models, and launch Claude Code or Copilot
  5. System, user and assistant roles explained
  6. Ollama REST API: /api/generate vs /api/chat
  7. Call a local LLM from Python: a stateless request, then a chatbot with memory
  8. Call a local LLM from Java: HttpClient, a stateless request, then a chatbot with memory

See it in action

Prefer watching? This video walks through the same ideas with live, hands-on demos.

Video thumbnail: What is Ollama? The video player for AI models, and localhost:11434 explainedWatch on YouTube ↗

Comments

LEAVE A COMMENT
No sign-up. Comments appear after a quick review.