Local DeepSeek V4.1 Flash draws charts by writing Python and self-checking with vision
A user shows local DeepSeek V4.1 Flash generating charts and diagrams by writing Python scripts that render PNGs, then using vision to review and fix the output, all on-device.

Did you know that your local models can generate images? Yes, images. I use DeepSeek V4.1 Flash, and it's EXTREMELY good at charts and diagrams! The images I've been attaching in my posts were drawn by DeepSeek, running locally. However, that's actually not unique to DeepSeek. ANY model that can write code can do it! How does it work? There's no image model & no diffusion. It just writes a python script that draws every bar, label, or anything else you ask it, then renders it to as a PNG. NOTHING leaves your machine! However, what actually matters is VISION support, bcs vision allows the model to review the render, look at it, fix any issues, and render again. ALL LOCALLY! Nothing leaves your machine! Want an example? i just asked it to create a diagram of world population - attached the result 👇 Try it!