Can a local AI agent draw an SVG illustration? Three could not

Pi, OpenCode and Hermes each thought of a good picture for an article. Asked to draw it as SVG on Gemma 4 31B, none made one we could publish.

0:00

We gave three local coding agents the same job: read a short article summary, think of a picture for it, and draw that picture as SVG. All three ran Gemma 4 31B on one Mac. Each came up with a sound idea. None produced a drawing we could publish.

Can a local AI agent draw an SVG illustration?

Not to a usable standard, on this test. Pi, OpenCode and Hermes each wrote a script that ran and each produced a picture. One could be read at a glance, one was a tangle, and one was a set of plain rectangles. The thinking was fine. The drawing was not.

What did we ask the agents to draw?

A cover for an article about a default setting that cuts the start off a long prompt. Each agent got the same four files: a seven step process, a small drawing kit with three functions (a filled shape, a line and a dot), one worked example, and the topic. The process asked for one idea made of two or three everyday objects, stated in a sentence, then drawn inside an area 600 units wide and 400 high. Shapes are written as SVG paths, which means every corner and curve is a pair of numbers the model has to choose.

Can a local model think of an idea for an illustration?

Yes. All three landed on the same family of idea, paper being cut, without seeing each other’s work.

Agent The idea it wrote down
Pi A long strip of paper being fed into a small slot, with a pair of scissors cutting off the beginning of the strip.
OpenCode A long strip of paper entering a small slot, with the front end of the strip cut off and lying on the floor.
Hermes A long roll of paper being cut at the top by a large pair of scissors.

Any of the three would brief an illustrator well. The idea step is not where a local model falls short.

What did the three drawings look like?

The cover Pi drew in our test: scissors, a strip of paper and a box on top of one another.
Pi: scissors, strip and box drawn on top of one another

Pi drew the most parts: 11 shapes and 6 lines for a box, a strip of paper and a pair of scissors. It placed all of them in a band 110 units high, out of the 400 available, and put the scissors on top of the strip. The parts are there. The picture is a knot.

The cover OpenCode drew in our test: five plain rectangles.
OpenCode: five rectangles

OpenCode drew 5 shapes, every one a rectangle. Its two strips of paper are 20 units tall. Nothing in the picture reads as paper, a slot or a cut. The process asked for three to eight shapes for each object. OpenCode used one or two.

The cover Hermes drew in our test: a tall sheet of paper and a small pair of scissors.
Hermes: a tall sheet and a small pair of scissors

Hermes drew 9 shapes and 2 lines and was the only one to fill the space, with a sheet running from the top of the area to the bottom. A reader can tell what it is. The scissors are thin and small against the sheet, and two ovals meant as the curl of the roll sit loose at its corners.

Why do local models draw badly in SVG?

Our reading is that the agent cannot see what it has drawn. It chooses numbers, runs the script, gets a message that a file was written, and stops. Nothing in that loop tells it that the scissors sit on the paper or that a strip 20 units tall will look like a line. A person drawing this way, eyes shut, would make the same mistakes. We did not test that reading.

Is a local agent good enough to illustrate articles?

For ideas, yes. For finished drawings, no, not from one pass with this model. The useful split on this evidence is to let the local agent propose the picture in a sentence and have the drawing done by something that can look at it.

What was in the drawing kit the agents were given?

Very little, on purpose. The kit was one short Python file with three functions: one for a filled shape with an outline, one for a line, and one for a dot. It set the colours, the wobble that makes the line look hand drawn, and the layout of the finished cover. The agent’s whole job was to choose the shapes. The process file gave seven steps: read the topic, write the idea in a sentence, read the example, write the drawing, run it, check it, and reply with the idea. It also said to draw big, with each object at least 120 units wide and three to eight shapes to an object.

Did a different local model draw any better?

We tried one and got nothing to judge. With Qwen 3.8 27B in place of Gemma, no agent produced a drawing. Pi ran for 17 min 41 s and OpenCode for 25 min 33 s, and each ended on a single turn of 8,192 tokens with no file written. That model thinks at length before it answers, and the agents cut it off at their limit. The third run failed through a fault in our setup.

How long does a local agent take to make one drawing?

Between 15 and 22 minutes on our machine, for a script of under 1,400 bytes. Most of that is not drawing. The model writes at about 11.7 tokens a second, and each agent called it eight to ten times, sending between 1,663 and 34,666 tokens a call. A person with a pencil would be quicker, and would see what they had drawn.

Did any agent check its own drawing?

Not in a way that helped. The sixth step asked each agent to read back its coordinates and confirm that the objects did not overlap by accident. OpenCode ran its script once and stopped, skipping the step. Pi and Hermes show only their final reply, so we cannot say whether they checked. Pi’s result suggests that it did not, or that the check did not work: its scissors sit directly on its strip of paper. Checking a drawing by re-reading numbers is hard for a person too.

What do we use instead?

The split this test pointed to. The covers on this site are drawn with the same kit, but each one is rendered and looked at before it is used, and redrawn until it reads. The idea can come from anywhere, including a local model. The looking cannot be skipped.

How we tested

One machine: a Mac with an M4 Pro chip and 48 GB of memory, on macOS 27.0.1. One model for all three: Gemma 4 31B QAT in LM Studio, loaded with a context window of 65,536 tokens, the same build we measured in our review. Agents: Pi 0.99.1, OpenCode 1.18.31 and Hermes 0.21.5. Each ran once, on 4 October 2026, from the command line with the same instruction: read the process file and follow it. One run each is a small sample, so the order of the three could change on a second try. The times and what each agent got wrong along the way are in our comparison of the three, and the commands are in our guide to running one prompt through all three.

Sources

  1. MDN: SVG paths
  2. Google's Gemma 4 31B QAT model card
Cite this page

Hill. "Can a local AI agent draw an SVG illustration? Three could not". Onticpost, published 4 October 2026, updated 24 October 2026. https://onticpost.com/local-ai-agent-draw-svg-illustration-test/

Updated 24 October 2026. This address stays the same when the piece is updated.

Share this

Subscribe to our newsletter

Checked: what AI can do for your business, checked by humans. Free, every Friday. One email a week, leave any time.

Free, every Friday. We send a link to confirm first. Our privacy policy says what we keep.