AI-Generated SVGs Are Eating Infographics, One Token at a Time
LLMs have collapsed the cost of producing structured graphics to near zero, which changes the default answer for infographics, architecture diagrams, and technical illustrations. A format that was too tedious to hand-author is now cheaper to generate and easier to iterate than a bitmap, and it slots directly into existing developer workflows—git, diff, code review, and CI.
Switching blog illustrations from AI-generated bitmaps to AI-generated SVGs cuts per-image cost from several cents to roughly $0.0004. The price gap comes from token economics: a 1024×1024 bitmap burns over a thousand expensive image tokens, while an equivalent SVG is a few hundred cheap text tokens. Beyond cost, SVG turns an image from a fixed, opaque artifact into source code that can be diffed, reviewed, edited line by line, and version-controlled alongside prose. CSS and JavaScript embedded in SVG also make dark-mode adaptation, hover effects, and animation possible without leaving the format. Algorithm visualizations can be produced by feeding state snapshots into a single SVG template and compositing frames into a GIF—no manual drawing required. The documentation world already made the parallel move from proprietary PPT formats to HTML slides; SVG is the same story for structured graphics, and LLMs are the missing cheap production method that makes the 25-year-old standard suddenly practical.
SVG's 25-year stagnation wasn't a format problem; it was a production-cost problem. LLMs remove the bottleneck that kept it niche.
The cost asymmetry between image tokens and text tokens creates a structural incentive to represent everything possible as text, pushing the boundary of what counts as 'text generation' outward into graphics.
Treating animation as a sequence of algorithm states rendered through a fixed template inverts the traditional animation workflow: consistency becomes free, and variation is data-driven rather than hand-corrected.
The parallel between HTML-for-slides and SVG-for-graphics suggests a broader pattern: whenever LLMs make a text-based format cheap to produce, that format displaces proprietary alternatives in developer workflows.
SVG drawings are ugly, because AI currently doesn't have a good way to render engineering diagrams. AI's computational ability is lacking. Simple architecture diagrams are fine, but once many nodes are involved, AI struggles to precisely calculate the positional relationships of connecting lines, text line heights, and relative positioning. Moreover, AI's color schemes are tasteless, and it won't proactively apply human designers' techniques. Let's just say AI-generated SVG still has a long way to go... Don't ask me how I know... I've been wrestling with it for a long time.
Simple and clear information structure diagrams are sufficient. If it's very complex, you still need to rely on other tools, like Mermaid or AI image generation.