Native Multimodal Programming Models: From Screenshot to Code with Zhipu's GLM Series
This article examines native multimodal programming models—base models that can read visual inputs such as design mockups, UI screenshots, and web pages and turn them directly into runnable code. Using Zhipu's GLM series (GLM-5, GLM-5-Turbo, and the March 2026 GLM-5V-Turbo) as the reference point, it explains what "native" multimodal means and why it matters, traces the product line's evolution, reviews the multimodal and text-coding benchmark results, and outlines an evaluation framework for model selection. It also covers practical scenarios (design-to-code, bug localization, documentation and competitor analysis, and terminal and mobile agents) and engineering practices such as the render–screenshot–review loop, multimodal tool calling, long-context management, and cost optimization, before closing with the risks and governance considerations that matter for production use.
1. Introduction: Letting AI Read Development Inputs Directly
In real software development, the input a model has to handle is never text alone. A product manager’s verbal requirements, a designer’s mockups, bug screenshots reported by QA, reference images of competitor pages, screen recordings from the operating system—all of this visual information carries important requirements, yet it has long sat outside the reach of language models.
The common workaround is for a person to describe the images in text and hand that to the model. But once you translate, a lot of critical information is lost:
- Layout hierarchy and spacing: how densely blocks are packed, how they align, the underlying grid;
- Visual details: font-size hierarchy, rounded corners and shadows, gradients and color systems;
- Interaction cues: hover, selected, and disabled states, plus overlay layers such as dialogs and drawers.
The result is often that “the more you describe, the more distortion you introduce.” Visual information can’t take part in reasoning directly, so developers end up checking and hand-patching repeatedly, and the value of multimodal capability stays locked out of the engineering pipeline.
The industry’s approach to this problem is to let a general-purpose base model with native multimodal understanding and programming ability take on visual input directly. Such a model can read an interface, a code repository, tool-call logs, and terminal output at the same time, connecting the path from “seeing” to “writing.”
A representative effort in this direction is Zhipu’s GLM series of multimodal programming base models. The series has GLM-5 as its open-source flagship and GLM-5-Turbo as its agent-accelerated version, and in March 2026 it added GLM-5V-Turbo for visual understanding. This article uses the series as its lens (all evaluation data cited comes from its public materials) to give a neutral reading of native multimodal programming models: their technical principles, product evolution, evaluation system, and engineering practice.
2. Native Multimodal: Why “Native” Matters
2.1 Three common multimodal fusion routes
In the industry, combining “language model + visual understanding” usually follows one of three routes, and their capability ceilings differ markedly:
- Bolt-on visual encoder (late fusion): a text base model stays at the core, and a visual encoder plus a projection layer are trained to map image features into the text embedding space.
- Pros: low rework cost; text ability is largely unaffected.
- Cons: joint vision-language training data is limited and fine-grained associations are weak. When generating code, it often stops at “does it look right overall” and struggles with concrete component structure, spacing, and states.
- Mid-stage fusion training: train the text base first, then run continued pre-training and multimodal instruction tuning on large-scale image-text data.
- Pros: multimodal capability improves relatively quickly.
- Risk: if the data mix and training strategy are off, a “seesaw effect” can appear—visual ability goes up while the model’s original coding and reasoning ability gets eroded.
- Native multimodal: text, code, images, video, and other modalities are folded into a unified training process from the pre-training stage, so the model learns cross-modal correspondence from the start, and vision–code synergy is then reinforced during post-training.
2.2 Four values of the native route
GLM-5V-Turbo takes the native route. During post-training it places particular emphasis on vision–code synergy, and it also pushes multimodal skills down into tool capabilities—for example, region-select screenshot capture and reading web page content—so the model can treat visual information as tool results it actively calls and fold them into its reasoning. This brings four kinds of value:
- Fine-grained vision–code alignment: component hierarchy, whitespace, and color in a design mockup can map directly to the component tree and style attributes in code within one unified representation space.
- Unified context: design images, requirement documents, and source code can coexist in the same window, making cross-modal reasoning and global consistency checks easier.
- Capability preservation: because vision and code share the same pre-training base, adding visual ability doesn’t have to come at the cost of programming ability.
- Native tool ecosystem: visual ability fits natively with terminals, browsers, and coding-tool agents, letting the model complete a “screenshot → judgment → code change → re-verification” loop in a single chain.
2.3 Four checkpoints for judging whether it is truly “native”
When selecting a model, enterprises can use the following four points to judge whether a model genuinely has native multimodal capability rather than a simple bolt-on:
- Whether visual data is mixed with text and code from early pre-training;
- Whether multimodal post-training shares the same base and alignment objectives as code post-training;
- Whether visual ability is packaged as tool calls rather than a one-off attachment parser;
- Whether pure-text programming ability shows any degradation.
It is worth stressing that “native” describes the training method. It gives the model the potential to produce runnable code directly from visual input, but it cannot replace engineering constraints and verification mechanisms.
3. Product Line Evolution: From Open-Source Flagship to Multimodal Programming Base Model
3.1 A three-step timeline
The GLM series has recently settled into a clear “three-step” cadence:
| Date | Version | Positioning | Key features |
|---|---|---|---|
| Feb 11 | GLM-5 | Open-source flagship | 744B parameters; focused on programming and agent engineering |
| Mar 16 | GLM-5-Turbo | Agent-accelerated version | Optimized for Claude Code-style terminal-agent scenarios; stronger tool calling, instruction following, and long-chain execution |
| Mar 2026 | GLM-5V-Turbo | Native multimodal programming base model | Inherits all Turbo capabilities and folds visual understanding in from the pre-training stage |
3.2 What each step solved
- GLM-5: a solid programming and reasoning base. As the open-source flagship, it targets the developer community and provides the capability and ecosystem foundation for the upper-layer optimized versions.
- GLM-5-Turbo: optimized for Claude Code-style terminal agents. Terminal agents let a model operate code repositories, run tests, and submit changes via the command line, and a single task often spans dozens of steps. This puts three demands on the model:
- correct format for tool calls;
- faithful adherence to complex instructions;
- self-correction during long-chain execution.
- GLM-5V-Turbo: adds visual input. It embeds visual understanding natively into the same base, upgrading the terminal agent into a “multimodal agent” that can handle design mockups, interface screenshots, and web content.
3.3 Core new capabilities
Compared with the text-only versions, the multimodal version mainly adds the following to its capability list:
- Multimodal input: natively understands a range of visual materials—images, video, design mockups, document layouts, and more;
- Multimodal tool calling: supports vision-related tools such as region-select screenshot capture and web page reading;
- Long context: a 200K context window that can hold high-resolution screenshots, multiple design mockups, and fairly large code snippets;
- Agent compatibility: works with Claude Code-style terminal coding agents and mainstream terminal-agent tooling.
3.4 Capability comparisons and private-beta feedback
On the multimodal dimension. Benchmarked against a flagship vision model and mainstream open-source multimodal models, GLM-5V-Turbo stands out across three evaluation areas: multimodal programming, tool use, and GUI agents. Specifically:
- Design2Code (turning design mockups into code);
- ImageMining (screenshot-driven information discovery);
- BrowseComp-VL (visual browsing Q&A);
- MMSearch (multimodal search);
- AndroidWorld (Android GUI tasks).
On all five, its scores are the highest of the three. BrowseComp-VL and MMSearch are composite “vision + search + reasoning” tasks, which indicates that visual information has been deeply folded into the reasoning chain. Among the reference models, Opus 4.6 also has clear areas of strength:
- Flame-VLM-Code: 98.8, close to a perfect score;
- Vision2Web: 43.5, with a notable lead.
The takeaway: evaluation results should not be judged by “average score” alone; individual scores should be checked against your business tasks.
On the text dimension. To see whether the vision version affects existing coding ability, compare it with the text-only GLM-5-Turbo:
| Benchmark | GLM-5V-Turbo (vision) | GLM-5-Turbo (text) | Conclusion |
|---|---|---|---|
| CC-Backend (backend coding) | 22.8 | 20.5 | Vision version slightly higher |
| CC-Frontend (frontend coding) | 68.4 | 69.4 | Roughly on par |
| CC-Repo-Exploration (repo exploration) | 72.2 | 68.9 | Vision version slightly higher |
The overall conclusion for the vision version can be summarized as:
- Capability preservation. The official conclusion is that “after introducing visual ability, pure-text programming and reasoning hold the same level,” and the data does show a few individual improvements. One reasonable explanation is that native training adds extra perceptual and generalization signals to the base.
- Real gaps. The reference model, Opus 4.6, leads on all three text items with scores of 26.9, 75.9, and 74.4, with the clearest advantage in backend coding, and it also leads on benchmarks such as PinchBench and ClawEval. For enterprises, this means model selection should match a task profile rather than fixating on a single overall score.
Private-beta feedback. During private testing, feedback from ByteDance’s TRAE model evaluation team, Meituan, and Kuaishou’s Wanqing model evaluation team concentrated on three kinds of value: design-to-code, multimodal tool calling, and agent integration. It is worth noting that some of these teams have their own in-house coding-agent products, so their evaluation angle often reflects their own scenarios. When borrowing such feedback, enterprises should return to their own task distribution and verify independently.
4. Evaluation System: How to Scientifically Measure a Multimodal Programming Base Model
Behind the capability list above sits a fairly complete evaluation system. To build their own selection evaluation, enterprises can assess across five categories (the metrics are illustrative; weights should be calibrated per business):
| Category | Representative capability | Metrics to watch | Typical tasks |
|---|---|---|---|
| Multimodal programming | Turning visual info into code | Visual similarity, structural-semantic consistency, runnability, human preference | Converting a screenshot or design mockup into a page |
| Multimodal tool use | Actively acquiring visual info | Tool-selection accuracy, parameter accuracy, multi-step consistency | Locating a component after region-selecting a screenshot; reading web page info |
| GUI agents | Completing tasks end to end | Task success rate, step efficiency, failure recovery | Mobile GUI operation tasks |
| Multimodal retrieval & reasoning | Visual search and cross image-text reasoning | Answer accuracy, evidence localization, hallucination rate | Visual browsing Q&A; screenshot information retrieval |
| Text-ability preservation | Existing coding and reasoning ability | Backend and frontend coding accuracy, repo-exploration efficiency | Backend API development, cross-file code understanding |
Supporting recommendations:
- Stratified sampling: sample 100–300 tasks from real business work, covering simple, medium, and complex tiers;
- Combine automation and humans: automate what can be judged automatically (compilation passing, unit tests, visual similarity) with scripts, and use double-blind review for subjective items (fidelity, maintainability);
- Make regression routine: run the baseline on every prompt or model-version change to prevent “fixing one scenario and regressing three.”
5. Where It Works: What a Multimodal Programming Base Model Can Do
5.1 Turning design mockups and screenshots into frontend code
This is the most intuitive scenario. High-frequency deliverables such as campaign landing pages, admin dashboards, and mobile interfaces can be handed off by design and product directly as screenshots or mockups, with the model producing structured page code and developers doing only the engineering wrap-up.
The official Playground demo is representative in form: a hand-drawn sketch on the left and the complete frontend page it generates on the right. A sketch means the layout intent is often incomplete and imprecise, so the model has to make reasonable design decisions under insufficient constraints—which places higher demands on semantic understanding and visual reasoning.
5.2 Bug localization and code review
When a bug comes in as a screenshot, the model can:
- use the screenshot to judge whether the problem lies in layout, styling, or interaction;
- locate the corresponding component and style rules in the code base;
- offer a fix suggestion, or even submit a patch directly.
In code review, it can also compare the rendered result against the design mockup to catch visual regressions.
5.3 Documentation, web pages, and competitor analysis
For long screenshots, product spec documents, and web pages, the model can perform layout understanding, information extraction, and cross image-text retrieval. For example, it can summarize feature differences from a list of competitor screenshots, or pull constraints out of illustrations in a requirements document.
5.4 Terminal and mobile agents
The model can carry out multi-step operations in terminal agents, IDE plugins, and mobile-agent environments, working from screenshots and screen content:
- read the screen and understand the interface;
- plan the operation path;
- call tools to execute;
- judge from a new screenshot whether the task is done.
6. Engineering Practice: Putting Multimodal Capability into Production
6.1 The render–screenshot–review loop
A single generation rarely gets it right in one shot. A more reliable engineering approach is to let the model “see its own output.” The flow is: generate page code and build and run it, capture the rendered result, compare it against the design mockup, have the model locate the differences and submit a fix, and repeat until it meets the bar. Illustrative code:
# Illustrative code: demonstrates the engineering workflow only; interface names are custom abstractions and do not represent any specific productfrom dataclasses import dataclass@dataclassclass DiffReport:score: float # Visual similarity, 0~1issues: list[str] # Structured diff list, e.g., spacing, font sizes, colorsdef screenshot_to_page(design_image: str, repo_index: dict,render_fn, compare_fn, llm, max_rounds: int = 3):context = {"design_image": design_image, # Design mockup or UI screenshot"component_catalog": repo_index["components"], # Enterprise component library catalog"constraints": {"framework": "enterprise standard tech stack","a11y": "meet WCAG 2.1 AA", # Accessibility standard"responsive": [375, 768, 1440], # Viewport widths to cover},}code = llm.generate(prompt="Generate page code from the design mockup", context=context)for round_idx in range(max_rounds):shot = render_fn(code) # Build, render, and capture screenshotreport: DiffReport = compare_fn(shot, design_image)if report.score >= 0.95: # Threshold calibrated per businessreturn {"code": code, "rounds": round_idx + 1}# Return the screenshot, diff list, and current code together so the model can fix preciselycode = llm.generate(prompt="Fix the code based on the rendered screenshot and the diff list",context={**context, "rendered": shot,"diff": report.issues, "code": code},)return {"code": code, "rounds": max_rounds, "needs_human": True}
This illustrative code has three key design points:
- A structured diff list: keeps fix suggestions on concrete style attributes rather than a vague “optimize it some more”;
- Bounded retries: caps the maximum number of iterations to keep cost and latency under control;
- Human fallback: automatically escalates to a human when the result still falls short after the threshold.
6.2 Tool calling: letting the model “look” on demand
The value of multimodal tool calling is that the model can fetch images as needed, rather than stuffing all visual information into the context at once. The following illustrations show how tool calls can be organized under different intents:
- Intent: “This button does nothing when clicked; help me find the cause.”
Illustrative call:{"tool": "capture_region", "args": {"page": "current page", "selector": ".submit-btn"}} - Intent: “Will this layout break on mobile?”
Illustrative call:{"tool": "render_viewport", "args": {"width": 375, "height": 812}} - Intent: “See how a competitor’s collapsible panel is built.”
Illustrative call:{"tool": "fetch_page", "args": {"url": "target page"}}
Note that the tool names and parameters above are teaching illustrations only, not the interface of any specific product. When engineering this, enterprises should package these capabilities into their own tool layer, with a unified gateway handling authentication, rate limiting, and content-safety checks.
6.3 Long-context management
A 200K context window means you can hold dozens of high-resolution screenshots or fairly large code snippets at once, but more context isn’t necessarily better:
- higher visual-input resolution consumes more tokens;
- as information density drops, key details can get “diluted.”
Three practices in the field:
- Provide context in layers: give the page screenshot first, then add component snippets and design variables as needed;
- Combine summarization and retrieval: for a code repository, use retrieval to locate relevant files first, and only put the hit snippets into the window;
- Structure design variables: inject colors, spacing, font sizes, and other design variables in a structured way—this saves tokens and is more controllable than simply piling on images.
6.4 Cost, performance, and stability
Multimodal tasks generally cost more and have higher latency than text-only ones. Common optimizations include:
- Tiered routing: route simple reproduction tasks to a lightweight model, and escalate complex interactions and visual reasoning to the flagship model;
- Image preprocessing: compress resolution and crop irrelevant regions to a target viewport, removing redundant pixels;
- Result caching: cache generated results keyed on “image hash + prompt version,” so repeat requests for the same design mockup can be reused directly;
- Evaluation first: run any prompt or model change through regression on the evaluation set before a gradual rollout.
| Method | Main benefit | Risks and cautions |
|---|---|---|
| Tiered routing | Lowers average cost and latency | Requires accurately judging task complexity to avoid “downgrade misjudgment” |
| Image preprocessing | Reduces token consumption | Over-compression loses small text, detail icons, and other info |
| Result caching | Lowers cost of repeat requests | Caches must be correctly invalidated when the design mockup is tweaked |
| Evaluation first | Prevents capability regression | The evaluation set needs ongoing maintenance to avoid being “gamed” |
In the cloud, this toolchain can be supported by general-purpose cloud products—for example:
- a container platform hosting the render and screenshot services;
- object storage for centralized management of design mockups and screenshot assets;
- a logging service with monitoring and alerting to track generation success rate, average iteration count, and token consumption;
- a message queue for smoothing peaks and valleys in batch reproduction tasks.
Enterprises can also build this toolchain directly on general-purpose cloud services such as those from Baidu AI Cloud, including model services, elastic compute, and storage.
7. Risks and Governance: The Boundaries of Multimodal Programming
Multimodal programming base models are powerful, but they have clear boundaries. Enterprises should focus on four kinds of risk when deploying:
- Visual hallucination: the model may “see” elements that don’t exist, or miss small controls. Render-and-review plus pixel-level comparison is the lowest-cost line of defense.
- Code security: generated code may introduce injection, privilege escalation, hardcoded sensitive data, and other issues, and must go through static scanning, dependency auditing, and human code review.
- Accessibility compliance: chasing only “does it look right” easily overlooks semantic tags, contrast, and keyboard operability. Accessibility standards should be set as both a generation constraint and an acceptance criterion.
- Copyright and data compliance: use of design mockups and competitor screenshots must meet copyright requirements; interface screenshots may contain user data and should be desensitized before upload to a model service, or handled with a private deployment.
8. Conclusion
From GLM-5’s programming base, to GLM-5-Turbo’s agent optimization, to GLM-5V-Turbo’s native multimodal fusion, this product line’s evolution points clearly in one direction: programming models are moving from “understanding text” to “understanding the work site.”
Three lessons for enterprises:
- Select by task profile, not by a single leaderboard total;
- Ship through an engineering loop, not a single generation;
- Treat governance as an end-to-end concern, not an after-the-fact remedy.
When a model can directly read design mockups, screenshots, and web pages, many of the “human translation” steps in the development pipeline will be compressed. Whether you can combine visual understanding with engineering constraints, automated verification, and cost governance will determine how much value multimodal programming ultimately delivers.
