Evaluating LLMs with a Pure-Code Short Video Generation Prompt
A constrained, code-only 30–60s video task can separate “can write code” from real engineering. This article covers prompt design, deliverables, scoring dimensions, and what a strong model produced in one evaluation.
Most LLM evaluations lean on algorithm problems or a slice of business code. Those tasks rarely show whether a model can only emit snippets or actually ship an engineered system. A stricter approach is a tightly constrained, high-complexity pure-code creative generation task, judged on end-to-end delivery quality. The method comes from a real evaluation; the sections below cover prompt design, scoring, and typical results.
Why “pure-code video”
The core instruction: the model acts as creative technical director and graphics programmer, and must produce a 30–60 second, 1920×1080, 30 fps short video using only code, with a free choice of theme.
Hard constraints close the usual shortcuts:
- No external images, video, or audio; no text-to-image, text-to-video, or generative-audio APIs or services.
- Every frame must be generated procedurally: math, fractals, particle systems, shaders, procedural textures, and procedural audio synthesis are allowed.
- A reproducible full project is required: source, dependency notes, run commands, and render/export commands.
- The model must actually produce a video file or a complete frame sequence, and explain how to mux MP4/GIF.
- Browser stacks (Canvas/WebGL/shaders) need a single-page entry and an offline run path; Python plus open-source A/V libraries need environment setup and full commands.
- No pseudocode or “effect sketches.” If output length is limited, runnable core visuals come first.
The model cannot stitch stock assets; every frame’s logic has to be math and code it wrote.
From demo to engineering
Constraints alone are not enough. Work-level requirements test taste and product thinking:
- Narrative and design: a clear visual concept and rhythm (setup, development, payoff); camera, color, and composition should show intent, not a tech reel.
- Technical depth: at least one harder technique—procedural materials, lighting and shadows, particle or fluid-like approximation, fractal geometry, post-processing, audio-driven visuals, and similar.
- Performance awareness: a performance budget and fallbacks, i.e. real render-cost thinking.
Delivery is fixed as six parts: concept and visual language (under 200 words), technical approach and key difficulties, full code and file layout, run and render commands, output paths or frame-naming rules, and a self-score on visual impact, technical difficulty, code quality, reproducibility, and performance.
That skeleton is a mini technical design doc: idea, architecture, implementation, and ops notes in one chain.
What a top model returned
In one live test, the model delivered a stronger-than-expected design within two hours. The stack included:
- Hybrid fractal SDFs (signed distance fields): fractal noise plus ray marching for self-similar geometry with unbounded detail—a harder procedural-geometry path.
- Gravitational lensing: a visual analog of light bending near a strong field, via radial offset and distortion of background sample coordinates.
- Doppler accretion disk: mapping temperature and velocity of a hot disk around a black hole into shader color and motion.
- Tens of thousands of instanced particles in a curl field: GPU instancing along curl-noise, balancing density and smoothness.
- Anti-flicker bloom and ACES-style color: temporal anti-flicker on bloom, then an ACES tonemap for cinematic color.
It also supplied 48 kHz procedural score with picture–sound sync.
How to score
Five dimensions, each with checkable signals:
- Truly pure code: inspect the render and audio paths; no hidden assets or generative services.
- Reproducibility: run the given commands in a fresh environment; confirm a one-shot path to frames and a muxed video.
- Visual quality: partly subjective—whether rhythm, camera intent, and color hold together.
- Technical complexity: math density in core shaders, graphics techniques used, and any physical approximation.
- Engineering: clear layout, decoupled config, error handling, and fallbacks.
Method in brief
The evaluation is an open-ended engineering task that is hard to fake, closer to a capability ceiling than typical benchmarks. The model must stay online across math, graphics, audio, engineering practice, and aesthetics. For practitioners choosing a model, a sharper question than “can it write code?” is: give it a bounded, high-ceiling task and see how far it gets in two hours.
