Skip to main content
AI diagram generation on Zo Computer is powered by D2, a DSL (domain specific language) for turning text into diagrams. D2 supports a wide range of diagram types, including sequence diagrams, UML, ERDs, network diagrams, and more. The D2 command line tool comes pre-installed on your computer.

Parameters

code
string
required
D2 source code to render (required, non-empty string; no markdown fences).
file_stem
string
required
Base filename to use for outputs (e.g., “arch” -> “arch.png”).
output_dir
string
Absolute output directory for the PNG. Defaults to /home/workspace/Images.