One of the biggest shortcomings of educational AI is its ability to communicate visually.
In a classroom, a whiteboard or blackboard is a given. There's a good reason for that. Studies show that students learn better from words combined with visuals than from words alone.1
I want to give AI that same ability: to draw as it explains.
vs
A triangle's area is half its base times its height, A = (1/2)bh. The base is 10 cm, and the height is the 6 cm line that meets it at a right angle, so A = (1/2)(10)(6) = 30 cm2.
The problem
Ask an AI chatbot, "Why does the Moon change shape?" and you'll likely get a paragraph that explains it correctly. But that explanation is much easier to understand when someone draws the Sun, Earth, and Moon, shows which half of the Moon is lit, and then points out what we can see from Earth.
Most chat apps rely on rich Markdown and image generation to communicate visually. Both are useful, but they come with very different limitations.
Markdown is fast and reliable, but it can only take you so far visually. Image generation gives you much more freedom, but it's slower, more expensive, and less reliable when the details need to be correct.
I want a third option. Something with the speed and reliability of structured output, but enough flexibility to illustrate whatever concept a student is trying to understand.
Defining success
Before getting into the solution, I want to define what I'm aiming for. To me, there are three things that matter most.
First is speed. The drawing and the explanation need to happen together, without pauses that pull the student out of the moment. A teacher can sketch and explain at the same time, and I want an AI tutor to be able to do that too. The Doherty threshold in UX puts that sense of responsiveness at around 400 milliseconds. I'd like the drawing to start appearing within that time.
Second is reliability. In an educational tool, a drawing has to get all the details right. The height of a bar, the size of an angle, where a point sits on a graph. Image generation can produce a figure that looks right without those details actually being correct. I'm aiming for something like 99.9% correctness.
Third is cost. If drawing is going to become a common part of how an AI teaches, it needs to be cheap enough that there's little reason to ration it. Cheaper is better, but around $0.001 per drawing feels like a useful target.
The solution
Try the drawing demo ↓
I wanted the simplest architecture I could build around those defined priorities. The current experimental version takes roughly 0.5–3 seconds, depending on the complexity of the request, and costs around $0.005 per drawing. There's still a gap to the speed and cost targets, but it's a useful starting point.
The flow is fairly simple. A decision model first selects the relevant figure types and adds their definitions to the LLM's prompt. It's a little like retrieval: the tool can support a large library without putting every figure definition into every prompt. The LLM then produces a structured specification, which gets validated and passed to code that deterministically turns it into SVG.
prompt
useChart
useTable
useMathExpression
useGeometry
useCoordinatePlot
useNumberLine
spec
render
That gives me a lot of control over the result. The rendering is predictable, the visual style is fully customizable, and I can validate the specification before drawing anything. It also makes things like SVG animations easier to control. Those constraints help with speed and reliability, though the model still has to choose the right way to represent the concept.
The big downside is flexibility. The same constraints that make this approach work also limit what it can draw. If the model has to choose from predefined figures, eventually someone will ask for something that none of those figures can represent.
This tradeoff primarily makes sense because I'm building a tool specifically for education. For example, in K–12 math, the drawings a teacher needs fall into a limited set of recurring types: geometry, coordinate plots, mathematical expressions, and so on. You can map those types across the curriculum and build support for them systematically. It's a solvable coverage problem, and you can approach it subject by subject, expanding the library to cover what each one needs. A universal drawing tool would need to handle an open-ended range of requests, which is where this approach falls short.
Pie chart of a $20 allowance: $8 snacks, $5 savings, $4 games, $3 gifts.
Show the steps for 2x + 4 = 22 in the right order, so subtracting 4 comes before dividing.
Graph the rocket height h(t) = −5t² + 20t from liftoff until it lands, and mark the peak.
Lewis structure of water, including oxygen’s lone pairs and the bent shape.
Compare solid, liquid, and gas
A basketball coach wants a 9th grader to see whether practice time is related to free-throw percentage. Paired observations this month: 1 hour → 42%, 2 → 48%, 3 → 55%, 4 → 61%, 5 → 58%, 6 → 70%, 8 → 74%. Help them see the overall upward relationship and that 5 hours is a bit off the pattern.
Pie chart of a $20 allowance: $8 snacks, $5 savings, $4 games, $3 gifts.
Show the steps for 2x + 4 = 22 in the right order, so subtracting 4 comes before dividing.
Graph the rocket height h(t) = −5t² + 20t from liftoff until it lands, and mark the peak.
Lewis structure of water, including oxygen’s lone pairs and the bent shape.
Compare solid, liquid, and gas
A basketball coach wants a 9th grader to see whether practice time is related to free-throw percentage. Paired observations this month: 1 hour → 42%, 2 → 48%, 3 → 55%, 4 → 61%, 5 → 58%, 6 → 70%, 8 → 74%. Help them see the overall upward relationship and that 5 hours is a bit off the pattern.
This project is still an early exploration. One direction I'd like to explore is a second path for requests without a clear figure match. That path could be a little slower and more flexible, while still keeping correctness a priority. The idea would be to stay fast on common requests and have a way to handle the less predictable ones too.
I'm building this as a flexible building block, and that shapes the technical choices. SVG gives the AI a structured format it can inspect and manipulate, with individual elements that can be styled, changed, and animated. Keeping animations inside the SVG also means they can be triggered dynamically, for example, to follow the narration in a video. I want to leave room for creative uses of that drawing capability.
Use case: Video explainers
A video explainer combining drawings with narration.
This is the use case that excites me most. Combining drawing with a TTS model and an LLM could make it possible to generate video explainers in the style of educational creators like Khan Academy. Video is still a fairly rare output in AI applications, and I think that comes down to three problems.
First is cost. Generating lots of images, and especially video, gets expensive quickly. If each explainer costs $1 to produce, you're going to be careful about how often your product offers one.
Second is the UX of waiting. A student might prefer a video explanation, but if it takes five minutes to arrive, the flow of the interaction is gone. At that point, a less effective text answer that arrives in a few seconds can still be the better experience.
Third is the quality of the video itself: how engaging it is, and how well it teaches. The most popular solution right now seems to be NotebookLM's Video Overviews, which are essentially a sequence of slides with a voiceover and some AI-generated B-roll.
The drawing tool is the base those formats can be built on. It makes explainers cheap enough to offer freely, fast enough that a student doesn't wait minutes for one, and closer to a lesson being drawn than to a slideshow. If those pieces come together, video could become a much more common way for students to get an overview of a subject.
Use case: In-chat answers
A visual explanation embedded in a chat answer.
The most straightforward use would be to add the tool to an existing chat interface. The AI could include a drawing whenever it would help explain an answer. This is probably the most useful application in the short term, even if it's the least novel. It brings visual teaching into an interaction people already use.
Use case: Live tutoring
A shared canvas for a live AI tutoring session.
Give a live model like gpt-live-1 this tool and a canvas shared with the student on a pen-enabled device like an iPad, and you could get quite close to sitting down with a tutor. Both could draw, point things out, and work through an idea together. I think educational AI is heading in this direction, which makes the underlying tools worth building now. Cost is still a problem, but I expect this kind of experience to become much cheaper over the next year.
What comes next
I see the ability to draw as one building block for better learning experiences. It's part of a broader effort to give an AI tutor something like eyes and hands: the ability to see what a student is working on and help explain it visually.
That also raises some interesting product questions. When should we recreate a familiar learning experience, and when should we try something new? I could use this tool to closely reproduce a popular educational video format. Or I could explore what a video becomes when it lives on a shared canvas, where the student can interact with the drawing and become part of the explanation.
The same question applies to the tutor itself. Human tutors and AI have different strengths and weaknesses. How much should an AI tutor behave like a person, and where could it offer something that works differently? I'm interested in finding that balance between an experience that feels familiar and one that makes use of what AI can do.
There's a lot left to figure out. That's a big part of what makes this an exciting time to build.
Sources
The Multimedia Principle — The Cambridge Handbook of Multimedia Learning — Richard E. Mayer, Cambridge University Press, 2021. Research finding: in 13 out of 13 experimental tests, learners receiving words plus relevant visuals performed better on transfer tests than learners receiving words alone, with a median effect size of d = 1.35.