CodingDINO - multimodal model for code generation from images and video
2 min readupdated
Built on Qwen3.8-27B (an open-weights model with billions of parameters for text and image processing), CodingDINO can recreate pictures or videos as executable code. For instance, it turns a diagram into an editable SVG file or writes a single program describing objects and their movement over time from a video. The architecture supports two modes: fast single-shot generation (CodingDINO-Single) and an interactive option that runs code, checks the rendering, and fixes errors. This new tool helps developers, designers, and researchers automate layout design, build 3D scenes, and work with animation.
Key features
- Code transformation: Turns static images into SVG, HTML pages, or scripts for Blender and Three.js.
- Agentic loop: An interactive mode runs the generated code, analyzes the rendering result, and refines it.
- High results: Relies on 65 steps of reinforcement learning (Reinforcement learning is a machine learning method where a model learns from mistakes through rewards and penalties.) and leads in benchmarks.
- Qwen3 foundation: Uses a proven architecture A class of neural network architectures underlying most modern language models. and requires heavy hardware.
What you can do
- SVG generation: Convert a complex diagram, chart, or illustration into an editable vector format.
- Web page creation: Recreate a user interface or site layout from a screenshot as clean HTML/CSS.
- Three-dimensional scenes: Generate a Three.js or Blender script based on a regular photo of an object.
- Video analysis: Turn a video clip into an animation code describing object motion paths.
Example
import base64
import json
from pathlib import Path
from urllib.request import Request, urlopen
image = base64.b64encode(Path("target.png").read_bytes()).decode("ascii")
body = {
"model": "CodingDINO",
"messages": [{
"role": "user",
"content": [
{"type": "image_url", "image_url": {"url": f"data:image/png;base64,{image}"}},
{"type": "text", "text": "Reconstruct this image as editable SVG. Return the SVG source."},
],
}],
"chat_template_kwargs": {
"enable_thinking": True, "preserve_thinking": True, "reasoning_effort": "xhigh",
},
"thinking_token_budget": 4096,
"max_tokens": 20480,
"temperature": 0.6,
"top_p": 0.95,
}
request = Request("http://127.0.0.1:8000/v1/chat/completions",
data=json.dumps(body).encode(), headers={"Content-Type": "application/json"})
with urlopen(request, timeout=600) as response:
print(json.load(response)["choices"][0]["message"]["content"])
Read more
DetailsArchitecture: Qwen3.8-27B (27 billion parameters, Qwen3_5ForConditionalGeneration class)
System requirements: A cluster of 4 × NVIDIA H800 is recommended for full server startup and handling specific cache layers
Training: GRPO in a visual coding environment using DINO features for rendering quality assessment
License: Apache 2.0 subject to the base model's restrictions










Comments