Can code animate a film shot instead of a video model? A test on four shots
A popular post argued that you can stop paying for video credits and render every frame with code. We took four shots of our own film, animated each approved still with code alone, and put the result beside the model's clip.
By Alper Mutlu Toksöz, founder, runimePublished . 5 min read. Rendered 27 Nov 2026 on 4 of the 12 shots of the founder's sample film; token figures read from the film's takes on 28 Nov 2026.
- 1 better, 1 even, 2 worse
- the code's clip against the model's, on the 4 shots without a character, by the author's eye
- 18,298 → 0
- tokens the four shots' video cost, and what the code's renders called from a provider
- 8,172 of 74,000
- video tokens of this film on the 2 shots where code held up
The claim
On 27 November a post on X said, in short, that you do not have to keep spending video credits to make cinematic videos and short films with AI1. It pointed at a set of open repositories in which an AI agent writes code that draws every frame: canvases, WebGL, a 3D engine driven by scripts. No video model is called. The frames are a function of time.
runime pays a video model for every shot of every film, so the claim matters to us directly. If some shots could be rendered by code at no provider cost, without a viewer noticing, a film would cost less to make. We read the repositories, then tried the idea on our own film.
What the repositories do
The largest of them, cinecode, describes itself as films made with code: short films, long videos, ads, explainers and music videos2. An agent writes the scenes and codes each frame, with layered depth for a 2.5D camera. every-frame-is-code is a knowledge kit that lets an agent make graphics with code3. ESCAPEMENT is a 36-second short made by an agent driving Blender from Python, every object, material, light and camera move generated in code4.
What they share is the kind of picture they make. Everything drawn is abstract, graphic or mechanical: motion graphics, titles, a car in an empty landscape. None of them shows a character who acts and speaks. That is where most of a film's video money goes on runime, and it is the part code cannot reach without a rigged 3D model and its animation, which is a different product.
So the useful question was narrower than the post's: on the shots that have no character in them, can code animate the approved still well enough?
The test
Our sample film, Light the Way Home, has 12 shots. 4 of them have no character: a gear mechanism in close-up, a ship passing a lighthouse at dawn, the lighthouse in a storm, and its beam finding a ship. For each, the film already holds a clip rendered by a video model from an approved still. We rendered a second clip from the same still with code alone, on one laptop.
- Depth. A depth map of each still from Depth Anything V2, run locally on the laptop's GPU5. The camera then moves through the picture by warping it along that depth, so near things slide faster than far ones.
- Weather. Rain in two slanting layers, lightning that flashes the whole frame. Lightning painted into the still is removed and shown only while a flash lasts.
- Light. The lighthouse beam is cut out of the still and turned around the lamp, then made to flicker and die, and the lamp room goes dark.
- Water. The sea's surface is displaced by moving noise, with glints of sun on calm water.
- Mechanism. The gears are unwrapped around their axles, so the metal turns while the light on it stays where it is, and the part of a wheel below the frame is continued from its visible teeth.
Each render took one to two and a half minutes on the laptop's processor. No provider was called for any of them.
What came out
Shot 5 · The gear insert
Static camera, 4 seconds. Jammed gears shudder, break free with a jolt and turn together.
Code did better
The prompt says the camera does not move, and the model moved it anyway; the turning gears get lost in the drift. The code plays the moment the story asks for, and the teeth never deform. Its weak point: the gap that opens behind the moving arms is filled by a guess, dark and slightly soft.
The gears. The prompt asked for a camera that does not move. The model moved it anyway, and the turning gears get lost in the drift. In the code's clip the moment the story asks for plays exactly: the wheels strain, break free with one jolt and turn, and no tooth ever deforms. The weak point is the gap that opens behind the moving arms, which is filled by a guess.
The dawn. Calm water is convincing in code. But the model makes the ship actually sail on and the gulls fly as a flock, while the code's ship rocks in place, and the gulls painted into the still stay frozen beside the ones that were added.
The storm and the beam. The code plays the story's moment exactly: the beam sweeps, flickers and dies. But the waves only heave. In the model's clips they break against the rocks and throw spray, which code drawn this way cannot do. On the beam shot the gap is small, because the model's clip put the beam out, against the story.
Where code fits, and where it does not
- Rigid or mechanical motion: gears, doors, clocks, signs. Code keeps the geometry exact, where a model can bend it.
- Calm nature: still water, mist, dust, slow light.
- Shots that only need the camera to move through a place.
- Text and logos, which a video model tends to garble.
Fluid motion stays with the model: a breaking wave, fire, cloth, a crowd. So does every shot in which a character acts. On this film, the two shots where code held up cost 8,172 of the film's 74,000 video tokens. That is the size of the saving on a film like this one: real, and small.
Viewers notice motion before they notice anything else in a shot. A film that leans on code for too many shots starts to look like a moving comic. If code is used at all, it belongs only on the kinds of shot listed above.
What is not automatic yet
The depth, the camera move, the rain, the lightning and the sea ran without a hand on them. The gear shot did not: its geometry was fitted by hand, an ellipse through the tips of its teeth and a count of them on each wheel. To render such a shot without a person, a vision step would first have to find what turns, where its axle is and how many teeth it has. That is research, not a feature.
The code's clips in the figure have not been through the finish runime gives an exported film (grain and the rest), so the comparison is slightly kind to the model, whose clips have not either. And four shots judged by one person's eye are a reason to look further, not a result to generalise.
How we did it
Sources
Each with the date of the work and the day we read it. Numbers about our own films come from our own records, described under How we did it.
- Özgür Atilla (@theozguratillay), You don't have to keep spending video credits to create cinematic videos and short films with AI. Post on X, 27 November 2026.x.com/theozguratillay/status/2126254520334229508Read
- sarpstar, cinecode: films made with code. GitHub repository (MIT), read November 2026, no release date given.github.com/sarpstar/cinecodeRead
- kiselas, every-frame-is-code: a knowledge kit that lets an AI agent make graphics with code. GitHub repository (MIT), read November 2026, no release date given.github.com/kiselas/every-frame-is-codeRead
- Leonxlnx, ESCAPEMENT: a 36-second short film made by an agent driving Blender from Python. GitHub repository (MIT for the code), read November 2026, no release date given.github.com/Leonxlnx/escapementRead
- Lihe Yang, Bingyi Kang, Zilong Huang, et al., Depth Anything V2. NeurIPS 2024, arXiv:2406.09414, 13 June 2024.arxiv.org/abs/2406.09414Read
runime is the product these notes come from. It turns a script or an idea into an animated film. See what it does