Skip navigation
Introducing Code Video Model 🎬
0:00 / 2:17

Introducing Code Video Model 🎬

Gordon (Guocheng) Qian

@guocheng_qian1.1K followers

Visit on X
576 likesDownloadOriginal post

41,206 views

Introducing Code Video Model 🎬 Amazing work led by Ziyu Wan and the team! Agentic coding as the engine for controllable video generation. Scene layout, motion, timing, camera trajectories, and physical dynamics, all in editable code. A coding agent turns prompts into executable programs that render proxy videos. Our training-free early-step conditioning lets a pretrained video model follow the proxy’s structure while adopting a reference image’s appearance. From physics-grounded motion and bullet time to 3D/4D reconstruction and robotics simulation, it all starts with code. Watch the demo and explore more visual results 👇 Project page: Paper: Code: Data: Youtube:

38 Comments

Comments from the original post on X (Twitter)

  • Gordon (Guocheng) Qian's profile picture

    @guocheng_qian

    [1/7] 🧠 Why code? Video models keep getting better visually, but two gaps remain: physics and precise control. A thrown ball may hover, a pendulum drift off-period, or a collision look plausible but break physical laws. Prompts and ControlNet-style guidance still struggle to specify every actor’s pose, object’s size/color, scene layout, motion path, and camera timing. Executable programs make these constraints explicit and testable before generation.

    7 likes

  • Gordon (Guocheng) Qian's profile picture

    @guocheng_qian

    [2/7] 🎬 Borrowing from film previs: a coding agent turns a prompt into an executable Three.js scene. Layout, object motion, camera trajectories, and event timing live in one editable program. The rendered proxy video provides the spatiotemporal plan; a reference image sets the target appearance. The video model adds geometry details, materials, and lighting. Code defines how the scene evolves.

    7 likes

  • Gordon (Guocheng) Qian's profile picture

    @guocheng_qian

    [3/7] 💻 Code → previs → inspect → revise → video. The agent edits objects, parameters, and event logic, then checks the updated proxy before generating the final video. Here, redirecting the robot by changing route waypoints—while preserving the rest of the scene—is as simple as one line code change. Once the program is ready, proxy rendering takes under a minute, making shot design quick to validate and iterate.

    4 likes

  • Gordon (Guocheng) Qian's profile picture

    @guocheng_qian

    [4/7] 🔍 The challenge: a useful proxy is visually crude. Feed it directly into a reference-to-video model and its low-poly geometry and simplified materials can dominate the output. We want its layout and motion, while letting the reference image and pretrained model supply the final appearance. How can conditioning separate the two?

    4 likes

  • Gordon (Guocheng) Qian's profile picture

    @guocheng_qian

    [5/7] 📊 Our key observations with MiniMax-H3 frozen: • The pathways are complementary: Qwen-VL has a stronger effect on appearance; VAE contributes more to motion and structure. Dual-path works best overall. • Proxy conditioning matters most in roughly the first 25% of denoising. Early structural guidance leaves a lasting trace in Query features after the proxy is removed. • Swapping conditions reveals a clear division: appearance mainly follows the reference image; layout, viewpoint, and geometry mainly follow Proxy-VAE. Remove the proxy too early and structure slips; keep it too long and the low-poly look persists.

    2 likes

  • Gordon (Guocheng) Qian's profile picture

    @guocheng_qian

    [6/7] ⚙️ Our solution: training-free, stage-wise conditioning. Keep the full proxy and both native conditioning pathways during early denoising to establish structure and motion. Then remove the proxy while text, the reference image, and model priors continue refining appearance. Early guidance persists without carrying the synthetic look through every step. The video model stays frozen; no extra control module is trained.

    3 likes

  • Gordon (Guocheng) Qian's profile picture

    @guocheng_qian

    [7/7] 🚀 One code-driven workflow, many applications: Anime, bullet time, gaming, scene editing, robotics and trajectory control, architectural and product cinematography, physics-grounded motion, and 3D/4D reconstruction. From freezing the action while the camera keeps moving to editing an object’s route, it starts with an executable scene. More demos 👇

    2 likes

  • Chen Yiwen's profile picture

    @NTU_chenyiwen

    @raywzy1 Fantastic work! So happy that we share the same insight. Code will be the future prompt of visual generation.

    4 likes

  • Gordon (Guocheng) Qian's profile picture

    @guocheng_qian

    @raywzy1 🛫

  • Vincent Cho's profile picture

    @vincent_jh_cho

    @jon_barron @raywzy1 Great direction! Ultimately we should detach intelligence from video generation.

    2 likes

  • Long Lian's profile picture

    @LongTonyLian

    @raywzy1 Great work! It really reminds me of LLM-grounded Video Diffusion Models that my team released ~3 years ago. Seems like an advanced version of it with code as the grounding proxy! Congrats!

    2 likes

  • Andreas Bryant's profile picture

    @_bryantmejia

    @raywzy1 Well done!! Looking forward to testing this out.

    2 likes

  • Zhenwei (Zavier) Wang's profile picture

    @ZavierZWWang

    @raywzy1 Congratulations @raywzy1 ! Amazing work!

    2 likes

  • WhatAboutFrank's profile picture

    @whataboutfranks

    @raywzy1 @grok wtf is this

    2 likes

  • Liam | AI Tools & News's profile picture

    @ottleyai

    @raywzy1 AI video is slowly turning into something developers can actually debug.

    2 likes

  • Gordon (Guocheng) Qian's profile picture

    @guocheng_qian

    @raywzy1 Yeah pain point

  • Qi Sun's profile picture

    @qisun01

    @raywzy1 awesome work led by @raywzy1 !!!

    2 likes

  • De Sade's profile picture

    @noobpsyborg42

    @raywzy1 Yes yes this is what I have been looking for. Making a video where the outcome of future scenes are conditioned and controlled by prompts and code depending on the past scenes.

    2 likes

  • Ben's profile picture

    @Benogju

    @raywzy1 Building the set once and planning each camera angle from it could make multi-shot scenes so much easier

    2 likes

  • Miguel | AP's profile picture

    @angrypenguinPNG

    @raywzy1 incredible!

    2 likes