AI
What Is a Vision Language Model (VLM)? How It Works
A vision language model reads images and text together. How VLMs work, VLM vs LLM, open and closed examples, image token costs, uses, limits and VLAs.
A vision language model (VLM) is an AI model that takes images and text as input and produces text as output, so it can describe a photo, answer questions about a chart, read a scanned document, compare two screenshots or explain what's happening in a video. Under the hood, most VLMs are a large language model with a "vision encoder" bolted on: the encoder turns an image into a sequence of tokens the language model can read alongside your words. Well-known examples include GPT, Claude and Gemini models with vision, and open models such as Qwen-VL, Gemma 3, Llama's vision models and LLaVA.
This guide explains what a vision language model is, how vision language models work step by step, how VLMs differ from LLMs, real examples and uses, what images cost in tokens, where VLMs still fail, and how they lead to vision language action models for robots.
What Is a Vision Language Model?
A vision language model connects computer vision (understanding pixels) with natural language processing (understanding and producing text). Earlier computer vision models did one narrow job, such as classifying an image into 1,000 categories or drawing boxes around cars. A VLM can do open-ended tasks described in plain language:
- "What's wrong with this error message in the screenshot?"
- "Extract the invoice number, total and due date as JSON."
- "Which product on this shelf is out of stock?"
- "Summarize what happens in this two-minute video."
Because the instructions are text, one VLM can handle many tasks without being retrained for each. That's why VLMs have replaced many specialized vision pipelines in apps, document processing and robotics.
VLMs are one kind of multimodal AI; the term "multimodal" also covers models that handle audio, video and generate images.
How Vision Language Models Work
Most modern VLMs follow the same three-part design:
- Vision encoder. A vision transformer (ViT) splits the image into small square patches, often 14 or 16 pixels across, and turns each patch into a vector that captures what's in it. Many encoders are based on CLIP or SigLIP, models trained on hundreds of millions of image-caption pairs to place images and matching text close together in the same "meaning space".
- Projector (connector). A small neural network converts the encoder's vectors into the same format as the language model's word embeddings. After this step, image patches look like ordinary tokens to the language model.
- Language model. A standard LLM reads the image tokens and the text tokens together, using attention to relate words in your question to regions of the image, then generates the answer token by token.
Training usually happens in stages:
- Alignment pre-training: the projector (and sometimes the encoder) learns from large sets of image-caption pairs so image tokens make sense to the LLM.
- Instruction tuning: the whole model is fine-tuned on image-question-answer examples, documents, charts and conversations so it follows instructions.
- Preference tuning and safety training, as with text-only chat models.
The open LLaVA project, released in 2023, popularized this recipe: a CLIP encoder, a simple projector and an open LLM, instruction-tuned on a relatively small dataset. Many open VLMs still follow the same pattern with larger encoders, better data and support for high-resolution and multiple images.
How VLMs handle high-resolution images and video
A single fixed-size view loses detail, which hurts tasks like reading small text. VLMs handle this by tiling: cutting a large image into several tiles, encoding each, and sometimes adding a downscaled overview of the whole image. Video is handled as a sequence of sampled frames, each turned into image tokens, which is why long videos use a lot of context.
VLM vs LLM
The VLM vs LLM distinction is about input:
| LLM (large language model) | VLM (vision language model) | |
|---|---|---|
| Input | Text (and code) | Images (and often video) plus text |
| Output | Text | Text (some can also point to coordinates or draw boxes) |
| Architecture | Transformer language model | Vision encoder + projector + language model |
| Typical tasks | Writing, coding, reasoning, chat | Image Q&A, document extraction, charts, screenshots, visual inspection |
| Cost per request | Text tokens | Text tokens plus image tokens, which add up quickly |
Today most leading "LLMs" are actually VLMs: the flagship models from OpenAI, Anthropic and Google all accept images. The term LLM is often used loosely to cover both.
A VLM is also different from an image generator. Diffusion models such as those behind image-generation apps turn text into images; a VLM turns images into text. Some newer models do both.
Vision Language Model Examples
Here are vision language model examples you can use today:
Commercial models (via apps and APIs): the GPT models in ChatGPT, Claude models, and Gemini models all accept images, documents and, in Gemini's case, video and audio.
Open models (downloadable weights):
| Model family | Developer | Licence of the listed version | Notes |
|---|---|---|---|
| Qwen3-VL | Alibaba (Qwen) | Apache 2.0 | Strong document, chart and multilingual vision; sizes from small to large |
| Gemma 3 | Gemma terms | Multimodal from 4B parameters up; efficient on a single GPU | |
| Llama 3.2 Vision | Meta | Llama 3.2 licence | 11B and 90B vision models |
| InternVL3 | Shanghai AI Lab (OpenGVLab) | Apache 2.0 | Competitive open VLM family across many sizes |
| Molmo | Allen Institute for AI | Apache 2.0 | Can point to locations in images; open training data |
| PaliGemma 2 | Gemma terms | Designed to be fine-tuned for specific vision tasks | |
| SmolVLM | Hugging Face | Apache 2.0 | Tiny models, down to 256M parameters, for edge devices |
| LLaVA | Open research project | Varies by base model | The influential early open recipe |
Licences come from each model's official page and can differ between versions, so always check the exact model you download. Tools such as Ollama, LM Studio and llama.cpp can run several of these locally.
What Images Cost: Image Tokens
Images aren't free in a VLM's context window. Each provider converts images to tokens in its own way, and the numbers matter for both cost and how many images fit in one request:
| Provider (official docs) | How images are counted | Example |
|---|---|---|
| Anthropic Claude | Cost grows with the image's pixel area; large images are downscaled first, with a higher-resolution tier on some models | A 1000×1000 image is about 1,296 tokens; a 1920×1080 screenshot is about 1,560 tokens on the standard tier |
| Google Gemini | 258 tokens for images up to 384 pixels on both sides; larger images are split into 768×768 tiles of 258 tokens each | A 1920×1080 image becomes several tiles of 258 tokens; video counts about 263 tokens per second |
A practical takeaway: resize images to the smallest size that keeps the detail you need. A full-resolution photo can cost as much as several pages of text, and sending ten screenshots in one request quickly fills the context window. Image tokens are billed like text tokens, at the model's input price.
What Vision Language Models Are Used For
- Document understanding: reading invoices, forms, contracts and receipts, often replacing template-based OCR. Our guide to AI OCR compares the two approaches.
- Charts, tables and slides: explaining a chart, extracting a table or summarizing a deck.
- Screenshots and user interfaces: debugging errors, writing alt text, and powering "computer use" agents that look at the screen to click buttons.
- Accessibility: describing scenes and photos for blind and low-vision users.
- Retail and e-commerce: product tagging, catalog cleanup and visual search.
- Industrial inspection: spotting defects or reading gauges, often combined with a specialized vision model.
- Medical and scientific images, in research and as assistive tools, with expert oversight.
- Video analysis: summarizing meetings, sports or security footage, and searching video by content.
VLM Benchmarks
Vendors and researchers compare VLMs on standard benchmarks, each testing a different skill:
- MMMU: about 11,500 college-level questions from exams, quizzes and textbooks across 30 subjects, using charts, diagrams, maps, tables, music sheets and chemical structures. It tests expert knowledge combined with visual reasoning.
- DocVQA and ChartQA: questions about scanned documents and charts, which measure reading and extraction skills.
- MathVista: mathematical reasoning about figures and plots.
- Video benchmarks such as Video-MME, which test understanding of short and long videos.
Treat benchmark scores the way you'd treat any AI benchmark: useful for shortlisting models, but no substitute for testing on your own images. A model that tops a chart leaderboard can still misread your company's invoices or product photos.
VLMs vs Traditional Computer Vision
VLMs haven't replaced every computer vision model. For narrow, high-volume tasks, specialized models are still faster, cheaper and more accurate:
- Object detection models, such as the YOLO family, find and count known objects in real time on small hardware.
- Classification models sort images into fixed categories with very low latency.
- Segmentation models outline objects pixel by pixel for measurement and editing.
A VLM wins when the task changes often, needs language (explaining, comparing, extracting fields), or would otherwise require many separate models. A common pattern is to combine them: a fast detector finds regions of interest, and a VLM reads or explains them.
Running a Vision Language Model Locally
Open VLMs can run on your own computer for privacy or cost reasons:
- Tools: Ollama, LM Studio and llama.cpp support several vision models, so you can drop an image into a local chat or call a local API.
- Memory: a VLM needs memory for the language model plus its vision encoder, and every image adds tokens to the context. Small VLMs run on laptops; models around 7 to 12 billion parameters are comfortable on a GPU with 12 to 16 GB of memory when quantized to 4-bit.
- Speed: encoding a large image takes time, so resize images before sending them, just as you would to save tokens with a cloud API.
Fine-Tuning a Vision Language Model
Fine-tuning helps when a general VLM struggles with a specialized domain, such as particular document layouts, industrial parts or medical images. The usual approach is parameter-efficient fine-tuning with LoRA on a dataset of images paired with the questions and answers you want, often a few hundred to a few thousand examples. Libraries in the Hugging Face ecosystem support supervised fine-tuning for many open VLMs. Start by measuring the base model on your test set, so you can tell whether fine-tuning actually helped.
How to Prompt a Vision Language Model
A few habits make VLM answers noticeably more reliable:
- Ask a specific question about the image rather than "What do you see?", and say what the image is, such as "This is a scanned delivery note."
- Point to the region you care about in words ("the table in the lower half") or crop the image before sending it.
- Ask for structured output, such as JSON with named fields, when you extract data.
- Ask the model to quote the text it reads before interpreting it, so you can check transcription separately from reasoning.
- Send one image per question when accuracy matters; comparing many images at once increases mistakes.
- Give examples of correct answers for unusual layouts or terminology.
Limitations of VLMs
Researchers have repeatedly shown that VLMs fail in ways that surprise people, which is behind papers with titles like "vision language models are blind":
- Counting and fine detail: counting many objects, reading tiny text or noticing small differences between images remains unreliable.
- Spatial reasoning: questions about left and right, distances, overlapping shapes and 3D layout are weak spots.
- Hallucinated details: a VLM may describe objects that aren't there, especially when the question suggests them.
- Charts and numbers: reading values off a chart is error-prone; ask for the data table if one exists.
- Long video: sampling frames means short events can be missed entirely.
- Bias: like other models, VLMs reflect biases in their training data, for example in how they describe people.
- Prompt injection through images: text hidden in an image can contain instructions that the model may follow, which matters for agents that browse the web or read documents.
For high-stakes uses, validate outputs, ask the model to quote what it sees, and keep a human in the loop.
Vision Language Action Models
A vision language action model (VLA) extends the idea to robots: it takes camera images and a text instruction, such as "put the red cup in the sink", and outputs actions, such as joint movements or gripper commands, instead of only text. Google DeepMind's RT-2 showed the approach in 2023, and open VLAs and robot foundation models have followed from several labs and companies. VLAs are a core building block of physical AI, where models have to perceive, reason and act in the real world.
How to Choose and Use a VLM
- Start with a hosted model to test whether a VLM can do your task at all; the leading commercial models are the most capable.
- Build a small test set of your real images with correct answers, and measure accuracy rather than judging from a few examples.
- Consider an open model if you need privacy, offline use, lower cost at high volume or fine-tuning. Smaller open VLMs run on a single consumer GPU, and tiny ones run on edge devices.
- Fine-tune on your own images when a general model struggles with a specialized domain, such as particular forms, parts or medical images.
- Control image size to manage cost and latency.
- Combine with traditional tools where precision matters, such as classic OCR for exact text or a detection model for counting.
FAQ
What is a vision language model?
A vision language model (VLM) is an AI model that understands images and text together and responds in text. It can describe images, answer questions about them, read documents and charts, and follow instructions that refer to visual content.
What is the difference between a VLM and an LLM?
An LLM works with text only. A VLM adds a vision encoder so it can also take images (and often video) as input. Most current flagship AI assistants are VLMs, even though people often call them LLMs.
How do vision language models work?
A vision encoder splits an image into patches and turns them into vectors, a projector converts those vectors into tokens the language model understands, and the language model reads the image tokens with your text to generate an answer.
What are examples of vision language models?
Commercial examples include GPT, Claude and Gemini models with vision. Open examples include Qwen3-VL, Gemma 3, Llama 3.2 Vision, InternVL, Molmo, PaliGemma, SmolVLM and the original LLaVA.
What is a vision language action model?
A vision language action model (VLA) takes images and language instructions and outputs robot actions instead of just text. VLAs are used to control robots that follow natural-language commands.