Blog · 29 November 2026
How we made a 3D animated video with AI and code
Our Claude and Blender video was made without an editing timeline. Claude Code wrote every scene as Python and HTML, Blender rendered the 3D, Qwen3-TTS made both voices on a Mac, Whisper timed every word, and earshot placed the sound effects. Four of the five tools are free. This guide shows the setup step by step.
- Published
The five tools and what each one does
Each tool does one job, and Claude Code ties them together by writing the scripts that run them. Nothing is edited by hand on a timeline: if a line of dialogue or a camera move changes, we change the script and render again.
We ran everything on a MacBook Pro with an M1 Pro chip and 32 GB of memory. The voice model and Blender both run locally, so the only things that need the internet are the one-time downloads.
| Tool | What it does in this video | Cost |
|---|---|---|
| Claude Code | Writes the Blender scenes, the animation, the captions and the sound plan as code | Needs a paid Claude plan |
| Blender | Builds the characters and the room from Python and renders every frame | Free, open source |
| Qwen3-TTS (through mlx-audio) | Makes both character voices from a written description of each voice | Free, runs on the Mac |
| Whisper (whisper.cpp) | Finds the time of every spoken word, which drives the mouths, gestures and captions | Free, runs on the Mac |
| earshot | Places sound effects so each one lands on the exact frame of its action | Free, open source |
What you need before you start
A Mac with Apple silicon is the simplest setup, because the voice model runs on it through MLX. A Windows or Linux machine with a recent graphics card can run Blender and Whisper too, but you would use a different route for the voices.
Plan for disk space. The voice model takes about 3 GB, the free 3D assets we used took about 400 MB, and the rendered frames of a one-minute vertical video at 1440 by 2560 took several gigabytes until they were turned into a video file and deleted.
- Claude Code, signed in with a Claude plan
- Blender 5 from blender.org
- Python 3.12 with a virtual environment for the voice tools
- ffmpeg for cutting audio and joining frames into a video
- whisper.cpp with the large-v3-turbo model
- About 10 GB of free disk space while you render
Step 1: write the script and make the voices
Write the dialogue first, one short line per turn. Short lines make faster videos and give the characters more chances to react. Our final cut is 23 lines in about one minute.
Install mlx-audio in a virtual environment and use the Qwen3-TTS 1.7B VoiceDesign model, 8-bit version. Instead of picking a preset voice, you describe the voice in plain words, for example a calm, warm adult voice with dry humour, or a deep, bold showman's voice. The model downloads once, takes about 3 GB on disk and used under 7 GB of memory while it generated.
Generate all of one character's lines in a single take, then do the same for the other character. A single take keeps the voice identical from line to line. If one word comes out wrong, generate only that line again with the same description.
Our first Blender voice sounded like a child. Measuring the pitch showed about 327 Hz, which is a child's range. Rewriting the description as a powerful adult voice in his thirties brought it to about 142 Hz. We also sped both voices up by 8 to 16 percent with ffmpeg's atempo filter, which shortens a line without changing the pitch.
Step 2: cut the voices into one dialogue
Each take is then cut into lines at its pauses with ffmpeg's silence detection, and the lines are laid out in speaking order with short gaps between turns. A small Python script written by Claude Code does this, so the timing can be changed in one place.
Keep a copy of each voice on its own track, on the same timeline as the full dialogue. Those two tracks drive the animation: a character's mouth moves only when its own track is loud.
Run Whisper over the finished dialogue to get the start time of every word. Those times are the timeline for the whole video: gestures, camera cuts, holograms, captions and sound effects all point at a word.
Step 3: build the characters and the room in Blender with Python
Blender runs Python scripts without opening its window, which is what makes a code-built video possible. We asked Claude Code to build each character from simple shapes: rounded shells, joints, a glass visor face with glowing eyes and a glowing mouth, and arms and legs on pivot points so they can be posed.
For the room we used free CC0 assets from Poly Haven: a herringbone parquet floor, a sofa, plants, a bookshelf and a lounge chair, plus a sunset city photo as the sky outside the window. Real assets do far more for the look than extra code.
We render with Blender's EEVEE engine. It is much faster than Cycles and looks close to it for a stylized scene. Our frames took about 8 to 12 seconds each at 1440 by 2560, so the one-minute film rendered in about four and a half hours.
Step 4: make the characters talk and move
The script reads each voice track and measures how loud it is on every frame. That number opens the mouth, brightens the eyes and adds a small nod on stressed words. Blinks are placed at fixed times so the characters never blink together.
Gestures are a short list of named poses, such as explain, shrug, hand on hip, point at the camera and arms crossed. Each pose is placed on a word from the Whisper times, so a shrug lands on the word that needs it. Heads turn toward whoever is speaking.
The camera is a list of shots keyed to the dialogue: close-ups on the speaker, two-shots for reactions, a crane up on the reveal, hard cuts between lines and a small shake on the finger snap.
Step 5: captions, sound and the final render
Blender writes the film as numbered PNG frames, and ffmpeg joins them into a video. The captions, name cards and end card are built in HyperFrames, which renders HTML and CSS to video, using the same Whisper word times so each word lights up as it is spoken.
earshot places each sound effect so its loudest point lands one frame after the action it belongs to, which is what makes a snap feel like a snap. The music is a CC0 loop from Freesound that dips under speech and stops dead on the last line for the joke.
Before posting, check the loudness of the final file. We aim for about minus 16 LUFS, which is close to what Instagram, TikTok and YouTube play back at.
Prompts that worked well with Claude Code
Claude Code works best with one clear job per request and real numbers in it. These are close to the requests we used.
- Write a Blender Python script that builds a robot character from primitives, with a glass visor face, two glowing eyes and a mouth I can scale to open
- Read this voice file and key the mouth open amount on every frame from its loudness
- Place these poses on these word times from the Whisper JSON, and hold each pose until the next one
- Add camera shots keyed to the dialogue lines, with hard cuts between lines
- Render four test stills at the key moments before the full render
Mistakes we made, so you can skip them
Most of our time went into a few avoidable problems. Render test stills at every key moment before starting a long render, and look at them.
- A fog volume for the whole world hid the city outside the window. Keep haze inside the room only.
- Our first characters looked childish next to the references we liked. Real assets and better materials fixed more than extra detail did.
- Generating each line on its own changed the voice from line to line. Generate one character's lines in a single take.
- Too many lights casting shadows filled Blender's shadow buffer. Turn shadows off for small decorative lights.
- Our first full render plan would have taken more than seven hours. Lowering samples slightly cut it a lot with no visible loss.
Want something like this for your brand?
We build the same kind of work for clients: websites with real 3D, product configurators you can spin, and launch films made from code. Tell us what you have in mind and we will send a written estimate.
Sources
How we can help
Questions we get asked
Is this setup free?
Four of the five tools are free and open source: Blender, Qwen3-TTS through mlx-audio, whisper.cpp and earshot. The 3D assets from Poly Haven and the music from Freesound were CC0. Claude Code is the paid part, because it needs a Claude plan.
Do I need to know how to code?
It helps, because you read and run the scripts Claude Code writes, and you fix things when a render looks wrong. You do not need to write the Blender or audio code yourself, but you should be comfortable with a terminal, Python virtual environments and reading error messages.
How long does a one-minute video take to render?
Our one-minute vertical film at 1440 by 2560 took about four and a half hours in Blender's EEVEE engine on an M1 Pro MacBook Pro, at roughly 8 to 12 seconds a frame. Rendering at 1080 by 1920 roughly halves that.
Can I use the Claude and Blender logos in my video?
Both logos are trademarks of their owners. Our characters only echo the logos' shapes and colours, and the video says that AAN Technologies is not affiliated with Anthropic or the Blender Foundation. Read each owner's brand guidelines before you use their marks, and avoid them in paid ads.