New Tool Radar

Local AI

Describe a Local Image with the LLaVA Vision Model in Ollama

Pull the LLaVA vision model in Ollama, ask it about a local image, and read the description it returns.

Schematic with three steps: Pull the vision model; Ask about an image in chat; Use the API for scripts.

LLaVA is a vision-language model that reads an image and answers questions about it. Ollama ships it as llava, and you can point it at a local image file in chat or through the API with a base64 image.

What you need

  • Ollama installed with about 8 GB free disk for the model
  • An image file on the machine, for example a photo
  • A terminal for the chat test

Step 1: Pull the vision model

Run ollama pull llava. The LLaVA 1.6 model in the Ollama library is the vision model to use; it downloads like any other model and then runs locally.

Step 2: Ask about an image in chat

Run ollama run llava and type a question that names the image path, for example: What is in this image? /path/to/photo.jpg. The model reads the image and describes what it sees.

Step 3: Use the API for scripts

Send a POST to http://localhost:11434/api/generate with the model llava, a prompt, and an images array holding the image as a base64 string. The reply JSON holds the description in the response field.

Worked example: describe a street photo

The table below is a synthetic example. The model name and the API images field come from the Ollama library page and API docs; the photo is illustrative.

Step Input Expected result
Pull ollama pull llava success
Chat What is in this image? photo.jpg A description of the photo
API images array with base64 Description in response field

Expected result (UNTESTED). the model returns a description that names the main subject of the image. This check was not run live; the model name and API format come from the cited Ollama docs.

Limits

  • LLaVA needs a vision-capable model; a text-only model cannot read images.
  • Image answers describe what the model thinks it sees and can be wrong on details.
  • Large images cost context; resize very large photos before sending.
  • The API images field needs base64 data, not a file path.

Sources

See all