---
title: "Generate Images Locally with Docker Model Runner and Open WebUI"
description: "Docker Model Runner can now serve diffusion image models locally through an OpenAI-compatible /v1/images/generations endpoint."
url: "https://swe.quest/articles/generate-images-locally-with-docker-model-runner-and-open-webui-a7d2d8b5e6b87cba"
canonical: "https://www.docker.com/blog/blog-generate-images-locally-dmr-open-webui/"
source: "Docker"
published: "2026-05-05"
difficulty: "medium"
kind: "How-to"
reading_minutes: 7
tags: ["inference","containers","developer-tools","computer-vision"]
---

# Generate Images Locally with Docker Model Runner and Open WebUI

A post on [Docker](https://swe.quest/sources/docker.md), published 2026-05-05, 7 min read, How-to. Original: [https://www.docker.com/blog/blog-generate-images-locally-dmr-open-webui/](https://www.docker.com/blog/blog-generate-images-locally-dmr-open-webui/)

## Summary

Docker Model Runner can now serve diffusion image models locally through an OpenAI-compatible /v1/images/generations endpoint. Paired with Open WebUI, that gives you private, offline image generation from a chat interface. Models are distributed as DDUF single-file artifacts via Docker Hub, \`docker model launch openwebui\` wires up the UI, and an admin setting points image generation at the diffusers endpoint. The walkthrough also covers calling the API directly with curl, including negative prompts, inference steps, guidance scale and seeds. Under the hood, the backend unpacks the DDUF into a Diffusers pipeline served by a version-pinned FastAPI server.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [Containers](https://swe.quest/tags/containers.md) (Infrastructure)
- [Developer tools](https://swe.quest/tags/developer-tools.md) (Engineering practices)
- [Computer vision](https://swe.quest/tags/computer-vision.md) (AI & ML)

## Prerequisites

- Docker basics ([easy posts on Containers](https://swe.quest/tags/containers.md?difficulty=easy))
- OpenAI-compatible APIs ([easy posts on API design](https://swe.quest/tags/api-design.md?difficulty=easy))

## Keywords

Docker Model Runner, Open WebUI, Stable Diffusion, DDUF, Diffusers, OpenAI Images API, FastAPI

## Related posts

- [How to Build, Run, and Package AI Models Locally with Docker Model Runner](https://swe.quest/articles/how-to-build-run-and-package-ai-models-locally-with-docker-model-runner-acbc6d65548e5373.md): Docker · 2025-06-12 · Medium · 6 min read · Inference & serving, LLMs, Containers, Developer tools
  Docker Model Runner, enabled as a beta feature in Docker Desktop 4.40+, pulls GGUF-format LLMs from Docker Hub or Hugging Face and runs them locally via the \`docker model\` CLI or an OpenAI-compatible HTTP endpoint on localhost.
- [How to Use Multimodal AI Models With Docker Model Runner](https://swe.quest/articles/how-to-use-multimodal-ai-models-with-docker-model-runner-087300aed5fd96dd.md): Docker · 2025-11-03 · Medium · 4 min read · Inference & serving, LLMs, Containers
  Docker Model Runner can run multimodal models such as Gemma3, Moondream2 and SmolVLM locally, accepting image and audio input through the CLI or an OpenAI-compatible chat completions API on localhost:12434.
- [Run LLMs Locally with Docker: A Quickstart Guide to Model Runner](https://swe.quest/articles/run-llms-locally-with-docker-a-quickstart-guide-to-model-runner-ccfbbb71db5d1485.md): Docker · 2025-04-04 · Medium · 5 min read · Inference & serving, LLMs, Containers, Developer tools
  Docker Model Runner, in beta with Docker Desktop 4.40 on Apple silicon, pulls LLMs packaged as OCI artifacts and serves them through an OpenAI-compatible API backed by llama.cpp.
- [Making a web app generator with open ML models](https://swe.quest/articles/making-a-web-app-generator-with-open-ml-models-3da427bd1ac5acd0.md): Hugging Face · 2023-07-03 · Medium · 9 min read · LLMs, AI for coding, JavaScript, Inference & serving
  A Node.js/Express server can generate web apps from a text prompt by streaming tokens from a code LLM (WizardCoder-15B on Hugging Face Inference Endpoints) straight into the browser as HTML.
- [Run ComfyUI workflows for free with Gradio on Hugging Face Spaces](https://swe.quest/articles/run-comfyui-workflows-for-free-with-gradio-on-hugging-face-spaces-4962232981692f52.md): Hugging Face · 2024-01-14 · Medium · 13 min read · Python, Inference & serving, Serverless, Computer vision, Deployment
  A ComfyUI node workflow can be turned into a standalone Gradio app and hosted for free on Hugging Face Spaces' serverless ZeroGPU tier.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
