New Tool Radar

Local AI

How to Run a Vision Model Locally and Ask It About an Image

Run a vision model such as gemma3:4b and give it an image file path with your question, so the picture is described on your own computer.

Schematic diagram with three steps: pick gemma3:4b at 3.4GB with image input, give it ./practice-photo.png with your question, and read the answer, checking it against the picture.

A vision model accepts an image alongside text, so it can describe, classify, and answer questions about what it sees — that is how Ollama’s vision documentation describes them. The image never has to leave your computer: you run the model locally and pass it a file path. The step that trips readers up is picking a model that can actually see images, because not every size of a model family can.

Pick a model that accepts images

On the Ollama library tags page for gemma3, the 1B model is listed as text input only, while the 4B, 12B, and 27B models are listed as text and image input. The 4B model is 3.4GB with a 128K context window, the 12B is 8.2GB, and the 27B is 17GB, so the 4B is the smallest one that can look at a picture. Pick the 4B unless you already know a larger one fits your computer.

Ask about an image

Ollama’s vision documentation gives the quick start as one command: the model name, then the image file path, then the question, for example ollama run gemma4 ./image.png what is in this image?. The same shape works for gemma3:4b:

ollama run gemma3:4b ./practice-photo.png what is in this image?

Part of the command What it is Fictional practice value
Model A vision model, downloaded if needed gemma3:4b
Image path A picture file on your own computer ./practice-photo.png
Question What you want to know about the picture what is in this image?

The model answers in text. Through the API the same job sends the image in an images array, and the vision documentation says SDKs accept file paths, URLs, or raw bytes while the REST API expects base64-encoded image data — but for a first try, the command line above is the shorter route.

Try it: describe one picture

Choose a picture you took yourself, for example a fictional practice file called practice-photo.png showing a garden with a wooden bench, and ask “what is in this image?”. Read the answer and check it against what you can see in the picture yourself: does it name the bench, and does it invent anything that is not there? Expected result. We checked the Ollama vision documentation and the gemma3 tags page. We did not run a vision model on this machine.

Limits

A vision model’s answer is a description, not a measurement: it can misread small text, miscount objects, or describe something that is not in the picture, so check its answer against the image before you rely on it. A text-only model such as gemma3:1b cannot do this job at all, and will not gain the ability by being asked differently. The picture stays local only while you use a local model; Ollama’s FAQ says Ollama runs locally and “We don’t see your prompts or data when you run locally”. We did not test any image ourselves.

Sources

See all