Free · Daily brief + weekly playbookDaily 60-sec AI Voice Brief + Weekly Production AI Agent PlaybookGet the brief →

Claude Code animated Yesenin's "Birch" with code alone, no video models, for $12

Yesenin's "Birch" was animated without any image or video generation: Claude Code wrote the scene in TypeScript, and the yard with the birch tree is drawn in thin lines directly in code. Snow settles on the word "snow" (snegom), and the window lights up on "window" (oknom). The scene and two versions of the clip cost about $12 at API rates, or 1.2% of the weekly limit on a subscription. For clips where the picture has to match the words, code is a better deal than a video model.

AI-processed from TG: @tekhnocafe (Технокафе / Вайбкодинг / AI-агенты); edited by Hamidun News
Claude Code animated Yesenin's "Birch" with code alone, no video models, for $12
Source: TG: @tekhnocafe (Технокафе / Вайбкодинг / AI-агенты). Collage: Hamidun News.
Listen to article
Article Fact Sheet & Key Figures
ParameterDetails
Primary sourceTG: @tekhnocafe (Технокафе / Вайбкодинг / AI-агенты) ↗
Editor-in-Chief
ElevenLabs voice518 characters for two readings cost $0.06
Local rendering705 frames in 4.5 minutes, 0 ₽
All timings live in one filechange the voice and the scene stays untouched

When people say "AI made a video," they usually mean a generative model that draws pixels and charges for every second of footage. The author of the Telegram channel "Technokafe" showed a different approach: the animation for Sergei Yesenin's poem "Birch" (1913) was drawn not by a video generator but by an ordinary TypeScript program written by the AI agent Claude Code. The scene and two versions of the clip cost about $12, but that is not real money off a card. It is an "API equivalent": what the tokens used would have cost at API rates. On a subscription, the whole job ate just 1.2% of the weekly limit. The project contains no images and no video models.

What came out

A log house stands in a yard, a birch tree beside it, and a man in a sheepskin coat at the gate. Everything is drawn in thin lines, like ink on paper, but it is really code. The animation is tied to the text: snow settles on the branches exactly on the word "snow" (snegom), the window lights up on the word "window" (oknom), and dawn breaks on the words "snowflakes burn" (goryat snezhinki).

The clip loops: the last frame matches the first, and by the end the snow sheds and starts settling again. That makes it easy to play on repeat.

How the pipeline works

The foundation is the open-source line-art-animation repository, on top of which the author added a custom skill called "poem in ink." The skill defines the order of work:

  1. Take a poem.
  2. Break it into a storyboard, line by line.
  3. Record the voice.
  4. Determine the start time of each word.
  5. Write the scene.

Claude Code creates the scene. A headless browser (one with no visible interface) then opens the page with the scene and captures it frame by frame, and ffmpeg stitches the frames and the voiceover into a finished video file.

The key engineering decision is that all timings live in one file, which keeps the data separate from the drawing. If you want a different voice or a different reading speed, you change the timing file and the scene code stays untouched. In ordinary video generation, such a tweak would mean a new paid run and an unpredictable result: the model might draw something entirely different.

What went wrong the first time

The author writes candidly that the result did not come right away. The birch's shadow first came out as a shapeless blob, and the sun hid behind the crown. On the second pass, the shadow became a silhouette of the tree and followed the sun in a semicircle. The agent needed an iteration with notes on the picture, just like a novice illustrator. The practical lesson: in a scene written as code, visual bugs are caught by a human looking at the frames, not by a compiler.

What it cost

The numbers in the post are rare for stories like this, so here they are in full:

  • Scene and two versions of the clip in Claude Code: about $12 at API rates, or 1.2% of the weekly subscription limit.
  • Voice from the ElevenLabs library: 518 characters for two readings, $0.06.
  • Rendering is local: 705 frames in four and a half minutes on the author's own computer, so 0 ₽.

The project comes in at a few dollars, and most of that is agent tokens, not voiceover or rendering.

Why developers and product managers should care

First, code as a "canvas" offers what video models lack: precise control, repeatability, and versioning. You can keep the scene in Git, edit it by diff, and rebuild it with a single command.

Second, the scheme of "text, timings, scene as code, headless render, ffmpeg" carries over to other tasks: explainer clips for documentation, animated release notes, metric visualizations, and training videos where the picture must match the narrator's words.

The limitations are obvious too. The style is bounded by what can be drawn with lines and simple effects: photorealism or complex character animation is out of reach this way. The $12 figure is for one specific project, and token consumption will grow on more complex scenes. And a human is still needed to notice that a shadow has turned into a blob. But as a demonstration that a coding agent can replace a video generator in a narrow class of tasks, the example is convincing.

Story

Key Questions Answered

What came out?

A log house stands in a yard, a birch tree beside it, and a man in a sheepskin coat at the gate. Everything is drawn in thin lines, like ink on paper, but it is really code. The animation is tied to the text: snow settles on the branches exactly on the word "snow" (snegom), the window lights up on the word "window" (oknom), and dawn breaks on the words "snowflakes burn" (goryat snezhinki). The clip loops: the last frame matches the first, and by the end the snow sheds and starts settling again.

How the pipeline works?

The foundation is the open-source line-art-animation repository, on top of which the author added a custom skill called "poem in ink." The skill defines the order of work: Take a poem. Break it into a storyboard, line by line. Record the voice. Determine the start time of each word. Write the scene. Claude Code creates the scene.

What went wrong the first time?

The author writes candidly that the result did not come right away. The birch's shadow first came out as a shapeless blob, and the sun hid behind the crown. On the second pass, the shadow became a silhouette of the tree and followed the sun in a semicircle. The agent needed an iteration with notes on the picture, just like a novice illustrator. The practical lesson: in a scene written as code, visual bugs are caught by a human looking at the frames, not by a compiler.

ZK
Zhemal Khamidun — Head of AI at Alpina Digital · MIPT (academic supervisor of the Tech Entrepreneurship department). Building AI products since 2019. Hamidun News is a pet project that grew into a production aggregator with 6,000+ readers.
✦ Free · Waitlist · Hermes + DeepSeek

Free 2-Day Vibecoding & AI Agents Intensive

Day 1: the autonomous Hermes + DeepSeek AI agent — vibecoding and development on par with Claude Code / Codex / Gemini. Led by Jemal Hamidun, Head of AI at Alpina Digital and academic supervisor at MIPT. Right after you register with our bot Nika: the recording + 11 materials from the previous intensive.

Join the waitlist →Nomad AI Workspace
Jemal Hamidun

Editor-in-chief · Cite this analysis

Jemal Hamidun

Head of AI at Alpina Digital · Academic Supervisor of the Tech Entrepreneurship Department at MIPT

Head of AI & CPO of AlpinaGPT at Alpina Digital, Academic Lead of Tech Entrepreneurship at MIPT. Founder of Hamidun News and Vibe Academy.

Ready-to-paste citation for journalists, blogs and Telegram channels

Source: Hamidun News — Claude Code animated Yesenin's "Birch" with code alone, no video models, for $12 https://news.hamidun.com/en/news/18413/claude-code-animated-yesenin-s-birch-with-code-alone-no-vide

What do you think?
Loading comments…