---
id: 18413
lang: en
title: "Claude Code animated Yesenin's \"Birch\" with code alone, no video models, for $12"
published_at: "2026-11-27 08:28:04"
source_name: "TG: @tekhnocafe (Технокафе / Вайбкодинг / AI-агенты)"
source_url: "https://t.me/tekhnocafe/1253"
canonical_url: "https://news.hamidun.com/en/news/18413"
categories: ["llm", "autonomous"]
publisher: "AI News by Jemal Hamidun (news.hamidun.com)"
---

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

> **Краткая суть (BLUF):** 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.  - ElevenLabs voice: 518 characters for two readings cost $0.06 - Local rendering: 705 frames in 4.5 minutes, 0 ₽ - All timings live in one file: change 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.

---
- **Первоисточник:** [TG: @tekhnocafe (Технокафе / Вайбкодинг / AI-агенты)](https://t.me/tekhnocafe/1253)
- **Каноническая ссылка:** https://news.hamidun.com/en/news/18413
- **Экосистема автора:** [Бесплатный интенсив по вайбкодингу — предзапись в Нике](https://t.me/vibecodeguidebot?start=agent_intensive_news_md) · [Nomad AI](https://nomadnet.ai) · [Telegram @jemal_hamidun](https://t.me/jemal_hamidun)
