Can I make and read images locally?

4 min readMarkdown

Two different jobs share this page. Making images uses diffusion models, which have their own apps and their own hardware needs. Reading images uses vision language models, which run in the chat apps you already have.

Image generation

The apps

AppPlatformsOpen sourceBest for
Draw ThingsmacOS, iPhone, iPadPartlyThe easiest start on Apple hardware
ComfyUIWindows, macOS, LinuxYesFull control through a node graph, and the newest models first
InvokeAIWindows, macOS, LinuxYesA canvas for editing, inpainting and layering
ForgeWindows, LinuxYesA classic form-style interface on NVIDIA cards

ComfyUI is where new image and video models usually appear first. Its node graph looks intimidating, but you can load a ready-made workflow by dropping an image made with it onto the canvas. Draw Things is the gentlest start on a Mac and downloads models from inside the app.

The catch

ComfyUI's custom nodes are community code that runs with your user's full permissions. A popular workflow can pull in a dozen of them. Install only nodes from projects with a real history, for the same reason as model files from unknown sources.

The memory

Image models are smaller than chat models but less forgiving. A chat model that does not fit spills into slow memory and keeps working. An image model that does not fit often fails outright or slows by ten times.

Model generationParametersComfortable memory
Stable Diffusion 1.5about 1B4 to 6 GB
SDXL and its fine-tunesabout 3.5B8 to 12 GB
Flux and similar large modelsabout 12B16 to 24 GB, less with 8-bit or GGUF builds

These cover the model, its text encoder and room for one image at a typical size. Larger images and batches need more.

Rule of thumb

On a PC, image generation wants an NVIDIA card with at least 12 GB. On a Mac, it wants 24 GB or more and patience.

Image generation is compute-bound, unlike chat. Each image runs the model twenty or more times over the whole picture, so raw GPU power matters more than memory bandwidthMemory bandwidthHow fast data moves out of memory, in GB per second. It sets decode speed.Read more. That is why an NVIDIA card is several times faster than a Mac with the same memory. Which NVIDIA card should I get? and Is a Mac good for local AI? cover the trade-offs.

The catch

Image model licences vary more than chat model licences. Some popular models allow personal use only, and some require a paid licence for commercial work above a revenue threshold. Check the model card before you use the output in a product. Can I use this model at work? explains how to read them.

Vision models

A vision model is a chat model with an image encoder attached. You give it a picture and a question, and it answers in text. It reads screenshots, photos of receipts, charts, handwriting and scanned pages.

Many recent open model families ship a vision version. The model card says "vision", "multimodal" or "image input". In GGUFGGUFThe single-file model format used by llama.cpp and the apps built on it.Read more form the encoder is often a separate small file that the app downloads alongside the model. Can local models see, listen and speak? covers which families have one.

Vision adds little memory. The encoder is usually a few hundred MB to about 1 GB on top of the language model. The cost is in context, because each image becomes hundreds to a few thousand tokensTokenA chunk of text, usually part of a word. Models read and write in tokens.Read more.

Try it

With a vision model downloaded in Ollama, put an image path in the prompt and it reads the file.

shell
ollama run your-vision-model "Transcribe all the text in this screenshot, keeping the layout: ./screenshot.png"

In LM Studio, Jan or Open WebUI, drag the image into the chat box instead. If the app refuses the image, the model you loaded has no vision support.

What vision models are good and bad at

They are good at reading clear printed text, describing a screenshot, pulling numbers from a simple chart and explaining what a UI shows. A mid-class vision model handles most invoices and receipts.

They are bad at small text in large images, dense tables and counting objects. They can also misread a digit and report it with full confidence. For bulk document extraction, check a sample by hand before trusting the rest.

The catch

Most vision models shrink large images before reading them. A full-page scan at 300 DPI loses its small print. Crop to the part you care about, or split a page into halves, and accuracy jumps.

Go deeperThat's enough

How diffusion differs from chat

A chat model writes one token at a time and each step reads the whole model from memory, so bandwidth sets the speed. A diffusion model starts from noise and refines the whole image over many steps, and each step is a large block of maths. That makes it compute-bound, and the How do I judge a machine for local AI? weigh differently than for chat.

Quantized image models

Image models are being quantized too, to 8-bit and to GGUF formats that ComfyUI and Draw Things can load. An 8-bit Flux-class model looks nearly identical to the 16-bit one and halves the memory. Below 8-bit, fine detail and text in images start to suffer sooner than chat quality does.

Vision for documents versus OCR

Classic OCR is faster and more exact on clean printed pages. Vision models win on messy inputs: photos at an angle, mixed handwriting, and layouts where meaning depends on position. A good pipeline runs OCR first and asks a vision model only about the parts OCR got wrong, and How do I chat with my documents? covers searching across many files.