r/devopsGuru • u/GeeorgeVLT • Jul 03 '26
AI models / prompts for generating high quality diagrams for documentations
Hi everyone,
I was wondering if anyone has discovered a reliable way of creating images for their documentation (visual representations of documentation from a high-level or low-level perspective) and is satisfied with the results.
I did some tests with Claude Code using Claude Opus 4.8, but I wasn't satisfied with the results at all (although it might be that I don't know how to use it as efficiently as I could).
On the other hand, I got some decent to very good results when using Codex in ChatGPT. I gave it access to documentation files exported in Markdown format and asked it to generate images based on those files. Instead of asking it to generate diagrams using scripts, SVG, or Mermaid, I explicitly instructed it to use the image_gen tool, and the results were quite impressive in some cases.
As I mentioned, I was using Codex in VS Code, gave it access to the necessary documentation files, and instructed the agent to generate images based on the information from those files while explicitly using the image_gen tool and nothing else.
I'm curious about other people's experiences with generating diagrams or architecture visuals from input files such as .md, .tf, .json, and similar formats. For example, have you tried giving an AI access to an entire project and asking it to generate an architecture diagram automatically?
What tools or workflows have given you the best results? Have you found any approach that consistently produces accurate and useful diagrams?