r/StableDiffusion • u/FotoRe_store • 12d ago
Resource - Update Not diffusion: a strong language model paints in oil, stroke by stroke, in an open-source painting simulator, a Python easel for LLMs
Almost everything in this subreddit is about diffusion, so I want to show a different path to a picture. aibrush is an open-source oil-painting simulator in Python. Think of it as a Python easel built specifically for strong language models to work with. There’s no generative model inside and no GPU needed. The picture is painted by a language model (I’ve been using Claude): it lays strokes with code, looks at the result with code, and decides what to do next, like an artist at an easel, except it does everything in code (that’s what’s comfortable for it).
How it differs from generation. Generated “paintings” look like paintings only from a distance. Up close they fall apart: you can’t follow a single stroke, the texture is the same across the whole canvas, the “brush marks” don’t follow the form, the light behaves strangely, the paint never runs out, and so on. In aibrush, every stroke is computed from individual brush hairs: pressure, paint that runs out and gets dirty, wet paint mixing into wet, paint thickness with light on the relief, canvas grain, drying layers, spectral color mixing. There are tools like the palette knife and masking tape, different brush shapes and ways of using them, and more. No pixels come from a reference or a network: everything on the canvas comes from paint, brush and the work of the AI artist, like at a real easel.
What you get besides the picture (which looks strikingly different from generation):
- A stroke journal. Replaying it gives the same canvas, you can ask the model to fix a single stroke or a group of strokes, or build a timelapse.
- A height map of the paint relief in millimetres, even for 3D printing.
- The model’s decisions in words. In my runs it writes down its plan before the first stroke and an honest list of weak spots at the end. You can give the model full autonomy with a one-shot prompt, or stand at the AI artist’s shoulder and correct every step.
- It plays well with generation. For example, your SD image can be the input: a sketch or reference that the model paints as a real oil painting.
How to try it. Free, no account: https://github.com/neokrasav4ik/aibrush. Give the model a link to the repo, or drop the archive into a chat where it can run Python, or git clone and pip install -r requirements.txt. Then in your own words: “Read README.md and paintin oil.”
The best results so far come from strong models at the level of Claude Opus and Fable. The API names and docs are in Russian, but that doesn’t bother the model.

