Experiment · , updated · 6 min read

Ghibli Claude: a Ghibli-style short film rebuilt in code, with a giant white wolf

Our best cut mixes generated art and clips with animation in code. A train drawn in code held its shape, and that shot won a blind review.

The best cut: cut 18

Cut 18, 43.8 s.

Download: 1080p (67 MB) · 720p (27 MB)

A remake of a GPT-6.2 Astra film, shared by @reach_vb on X.

What it cost

About $38 in API charges. The main log accounts for $9.95.
18.6% of a week's Claude use on our host.
Cost breakdown and Opus vs Fable

The $9.95 in the main log covers $4.82 for the film and $5.13 for the two model benches.

The frontier recheck ($21.95), toolkit tests and price probe ($5.92), and attempt A (about $0.57) bring it to $38.39.

Flat monthly plans, as reported to us in November 2026: $20 for ChatGPT Instant and $200 for Claude. Extra images or tokens cost $0 until the limit, then work pauses until it resets. Video was API only.

API spend by model

APIMart calls by model, from every cost log of this project, each line counted once. The 70 s is the median measured on the image model bench.
ModelKindCallsAPI price per assetEffective price on a planSubtotalUsed for
veo3.1-fastvideo26$0.14 as billed for these 26 clips (all made by 25 Nov); $0.60 since 26 Novnone: video is API only$3.64attempt B 13, cut 9 5, cut 10 4, cut 11 Fable lead 1, compositor test 1, video bench 2
gpt-image-2.6-flareimage16$0.03 to $0.11API only as run$1.29attempt B style sheet and 3 test keys 4, cut 9 4, cut 10 5, cut 14 2, cut 15 1
gpt-image-2.6-sunburstimage1$0.026API only as run$0.03cut 14
gpt-image-2image21$0.0085API only as run$0.18fox toolkit test 11, image probe 4, cut 11 Fable lead 3, toolkit tests 2, cut 15 1
seedream-5-5image4$0.028API only as run$0.11image probe
gemini-3-pro-image-previewimage4$0.02API only as run$0.08image probe
veo3.1-qualityvideo1$1.00none: video is API only$1.00video bench
kling-v4-flashvideo2$0.43none: video is API only$0.86video bench
kling-v3video2$0.34none: video is API only$0.67video bench
seedance-2.0video2$0.33none: video is API only$0.66video bench
seedance-2-5-flashvideo2$0.32none: video is API only$0.64video bench
wan2.7video1$0.33none: video is API only$0.33video bench
MiniMax-Hailuo-2.3-Fastvideo2$0.15none: video is API only$0.30video bench
wan2.6-i2v-flashvideo2$0.08none: video is API only$0.17video bench
ChatGPT Instantimage97not sold on the API$0 until the plan cap; about 70 s each in a browser, one at a time$0v1 8, v2 71, attempt B 13, cut 13 wolf heads 2, outro 3 (image files kept; rejected takes were not logged)
Total46 images and 40 videos on the API86$9.95film $4.82, bench probes $5.13
  • Not charged: hailuo-2.3-fast returned "service_unavailable" once, and one flare and one sunburst call timed out; each was retried.
  • A frontier recheck on 25 Nov, blind-scored by three judges, kept gpt-image-2 ($0.0085 an image) and veo3.1-fast as the defaults (veo was $0.14 a clip when billed on 25 Nov and is $0.60 since 26 Nov; see the next bullet). Seedance 2.5 made more usable clips than veo, but each usable clip cost 3.11 times as much, over the 3x limit set before the scores were seen. Its 147 image and video calls cost $21.95, not in this total. Cut 15's second round made its two new images with gpt-image-2 and flare.
  • Veo price change: ApiMart billed $0.14 for a veo3.1-fast 8 s clip on 25 Nov (settled task records), and $0.60 for the same model and length on 26 Nov and again on 27 Nov, including one probe on 27 Nov that used the 25 Nov request (duration 8, 16:9). So the price rose; the request was not the cause. The totals above keep the prices billed when each clip was made; cost fields are ApiMart's own, from each task.
  • Not in the total: two toolkit test films after the cut 15 work (26 Nov) and a price probe (27 Nov), billed at the new price: one-shot 3, $1.98 (3 veo clips, 21 images); one-shot 4, $3.34 (5 veo clips, 40 images); and the price probe, $0.60. Together $5.92.
  • Not in the total: attempt A's 16 stills (8 flare, 8 flux; about $0.57) are in no cost log.

Cost by cut

Cost by cut. API spend is at API prices. ChatGPT images and Claude tokens were inside the flat plans, $0 each until the limit. Tokens are output tokens from the session logs by clock window, so they are approximate.
CutWho built itTimeAPI spendChatGPT images, $0 on the plan
v1, one briefSonnet 0.38M, Haiku 0.26M, Fable 0.03Mabout 1.5 h$08
v2, many roundsSonnet 1.18M, Fable 0.30M, Haiku 0.01Mabout 6 h$071
v3, Fable aloneabout $55 to $63 of tokens (planner is an estimate)about 1.7 h$00, reused ours
Round 1 best, mergeSonnet 0.21M plus four buildersabout 2.6 h$00
Round 2 bestFable plan 0.14M, twelve Sonnet builders about 1.3M (input plus output, so not comparable to the rows above)about 2 h$00
Cut 6, 7 and 8Cut 8: one Sonnet builder, wheels, neck, eyes. Cut 7: an audit by a Fable reviewer, then six Sonnet buildersabout 3 h$00
Attempt B, from scratchone assembly scriptabout 1 h$2.2413
Cut 9Fable lead, Sonnet builders, seven review roundsabout 4 h$1.090
Cut 10Opus lead, a blind strip review by Fable, Opus and Haiku, then a polish pass with no new generationabout 1.5 h, from the session log$0.940
Cut 11, Opus and Fable leads (not published)Opus lead, 3 renders; Fable lead, 4 rendersabout 2 h (Opus) and about 3 h (Fable)$0 and $0.170
Cut 12Opus lead on cut 10, a blind review by Fable, Opus and Haikunot logged; its commits span about 36 min$00
Cut 14Opus lead on cut 12, three full-size fault passes, a blind review by Opus, Sonnet, Haiku and Fablenot logged$0.102, cut 13's wolf heads
Cut 15Opus lead on cut 14, two blind reviews by Opus, Sonnet and Haiku, a full-size fault pass in the first roundnot logged$0.040
Cut 18Four shots fixed in code by Gemini Neon; two Seedance 2.5 takes from the video model bench; rendered and checked by Claude Opus; a blind gate by Opus and Sonnetnot logged$0 new0
  • Images came from ChatGPT Instant ($20 plan), driven through a browser, about a minute or two each, $0 each on the plan.
  • The cut rows add to $4.58. The other $0.24 of the film's $4.82 went on toolkit tests: one compositor test clip and 13 gpt-image-2 test images, the fox among them.
  • The v2 time includes review rounds. Cut 14's time was not logged.

Share of the week's Claude use

Claude output tokens and share of all Claude use on our host in the 7 days to 25 Nov 2026 (usage-audit weights, an estimate).
WorkOutput tokensShare of the weekAPI price per assetEffective price on a plan
Main film session (also ran the bench pages and planned the toolkit)3.67M: Sonnet 2.33M, Fable 0.95M, Haiku 0.34M, Opus 0.05M8.9%not counted$0 until the weekly limit
Cut 11, Fable lead1.34M: Fable 0.88M, Sonnet 0.31M, Opus 0.10M, Haiku 0.05M2.7%not counted$0 until the weekly limit
Cut 11, Opus lead0.71M: Opus 0.36M, Sonnet 0.29M, Fable 0.04M, Haiku 0.02M1.9%not counted$0 until the weekly limit
Cuts 12 to 150.65M: Opus 0.42M, Haiku 0.15M, Sonnet 0.04M, Fable 0.04M1.6%not counted$0 until the weekly limit
Other film sessions (v1 to cut 10)1.62M3.4%not counted$0 until the weekly limit
Film, all8.00M: Sonnet 3.71M, Fable 2.23M, Opus 1.32M, Haiku 0.74M18.6%not counted$0 until the weekly limit
Film toolkit, with the fox test1.86M: Opus 0.81M, Sonnet 0.80M, Haiku 0.25M4.3%not counted$0 until the weekly limit

Usage-audit weights input, cache reads and output. It gives the share of all Claude use on our host that week, with no plan-limit or API price figure. The film total excludes the toolkit, the sessions that wrote this page, and cut 15’s second round, which was still in progress when we counted on 25 Nov.

Opus vs Fable

Opus and Fable leads each rebuilt cut 10 from the same brief at the same time, using the film toolkit. In a person’s blind ranking, cut 10 came first, Opus’s cut 11 second and Fable’s third.

The Fable cut had the richest beats and scored 8 for fidelity, but had more visible defects. The wolf’s head looked flat on the bike, the boy looked different at dusk, and the wolf was see-through. Fable set stricter pass limits before the work and reported three failed checks.

Neither lead won clearly with the model judges. An Opus judge preferred the Opus cut on three of four criteria. A Haiku judge picked Fable’s on all four, citing slightly better motion.

How it was built

For motion, we used short veo3.1-fast clips from one set of keyframes. Cut 18 also uses two Seedance 2.5 clips. We drew the train in code on measured rails. Code also handles timing, sound, the stamp, scraps and ripples.

Build and review notes

We set out to rebuild a 38.5 second Ghibli-style film with layers of generated art in JavaScript at 60 fps, for less than a hand-made animation would cost. The giant white wolf is a nod to Princess Mononoke.

Cut 18 keeps cut 14’s 1,314 frames at 30 fps. Gemini Neon fixed four shots in code: the pass behind the wisteria, the rails in the first and last shots, and the stamp’s card and seal. Two Seedance 2.5 clips from the video model bench show the boy at the window and at dusk.

Cut 18 went through a blind review against cut 14 and a hidden copy of cut 14. Opus and Sonnet each put cut 18 first on all 4 criteria, and no judge put it below the hidden copy.

ChatGPT Instant supplied about 70 backgrounds and sprites until the image credits ran out. Later fixes used gpt-image-2 and gpt-image-2.6-flare via API, plus one gpt-image-2.6-sunburst call for cut 14.

Fable 5.2 independently reviewed each frame against the original and sent back fixes. Claude Sonnet 5.5 and Haiku 5.5 builders worked one per scene file. About 130 lines of canvas code draw the same frame from the same inputs. Playwright renders the frames and ffmpeg encodes them.

Four frames from an earlier cut.

Opening shot at 1 second, a still frame from the film
1.0 s
Frame at 12 seconds, mid-film
12.0 s
Frame at 27.5 seconds, late in the film
27.5 s
Closing frame at 36 seconds
36.0 s

Slow camera moves on stills

Attempt B showed that slow camera moves worked over stills alone. Cut 15 used similar moves with easing in four shots and lost both blind reviews. For details, open the cuts list in the postscript.

Attempt B, stills only, 42.4 s.

We made this first while out of API credit. Its 13 ChatGPT Instant keyframes cost $0 in API calls.

Plot details

What went wrong

In the code

Every other cut and attempt

Cuts newest first, then attempts and versions 1 to 3 oldest first

Iterative cuts

Cut 14: the best cut until cut 18

Cut 14, 43.8 s.

Cut 12 with code fixes (via cut 13) and three repainted images; it won a blind review by Opus, Sonnet, Haiku and Fable. Download: 1080p (67 MB) · 720p (27 MB).

Cut 15: into the tunnel

Cut 15 lost both blind reviews on 25 Nov. It needed to win and match or beat cut 14 at full size. Work stopped at the second review, as planned.

  • What changed: the train goes into the tunnel, cut at the portal with a matte taken from the plate and a dark interior. The rails are measured from the plate; the two contacts the audit found over 1.5 px (2.23 and 1.84 px) are fixed. Attempt B's eased camera moves are on the stamp, window, bell and lick shots.
  • First round, blind review: cut 15 against cut 14 and a hidden copy of cut 14, 57 sheets per judge. Cut 15 came first for none of the three judges. Opus scored all three 27 and could not tell them apart. Sonnet gave cut 15 26 and the copy 27; Haiku 24 and 28. The copy is the same picture as cut 14, so those gaps are judge noise.
  • First round, full-size side by side, 15 moments: cut 15 is better at the 3 tunnel-entry moments, the same at 10, and worse at 2. The train runs over the far wisteria at 9.5 s, and a window post shows at the left edge at 18.6 s.
  • Second round: two new images, the tunnel mouth's inside (gpt-image-2, $0.0085, used) and a train side with a real cut-out (gpt-image-2.6-flare, $0.031, not used: no visible gain in the shot). $0.04 of the $15 set aside was spent, with one full render.
  • Second round, blind review: the same three versions on a new seed, plus five crop sheets of the changed areas at full size. Opus scored cut 15 above both others on 1 of 4 criteria (faithfulness to the reference) and named it its overall pick, but its total was 27, the same as the copy, and the rule counts scores. Haiku: above both others on none, 23 against the copy's 26. Sonnet: above both others on none, 22 against 28, last on every criterion. Fable was not asked, since the rule had already failed.
  • What the judges saw at full size: they credited the deeper, darker tunnel mouth (Opus: the train "reads as coming out of a real tunnel"; in the copy the tunnel is "a flat, evenly lit yellow tube"). They faulted a seam at a car joint where the rear cars meet the wisteria, 9.4 to 9.8 s, which we confirmed at full size, and Sonnet saw the cars in the tunnel as "see-through shapes".
  • Lesson: a real one-second fix can lose a whole-film review. Review a local fix with sheets dense on its moment, and make sure the fix adds no seam of its own.
Frame strip of the tunnel entry from 8.4 to 10.4 seconds in cut 14: the train fades beside the tunnel mouth
Cut 14, 8.4 to 10.4 s.
Frame strip of the same seconds in cut 15: the train runs into the dark tunnel mouth
Cut 15 first round, 8.4 to 10.4 s.

Cut 12

43.8 s. The best cut before cut 14: cut 10 with a polish pass that won a blind review.

Cut 10, the code-drawn train

43.8 s. Cut 9 with one shot rebuilt: the train coming out of the tunnel (10.4 to 13.8 s).

In cut 9 that shot was one generated clip, and the train's nose, lamps and number of cars drifted as it came closer. The code-drawn train holds its shape from the tunnel mouth to the camera over a painting of the empty scene. Clips with more keyframes failed all three probes, adding a train or restarting the approach. The code version won a blind review by Fable, Opus and Haiku. Only a $0.03 image from the cut 10 pass made it into the film.

With no new generation, the polish pass added wisteria sway, kept the pantograph in frame for the last 0.3 s and warmed the train’s paint as it left the tunnel. It restored the wolf’s scale in the wide window shot, made the cat’s breath visible and enlarged the final dove splashes. Other shots reused cut 9 renders. The splash fix also touched the lake shot (under 0.4/255).

At joins between generated takes, the boy’s pose jumps at 15.8 s and 37.8 to 38.6 s, with a faint sleeve ghost near 38.0 s. The light change and sway are subtle at 720p, and the pantograph looks pale grey inside the tunnel. The girl is small in the cycling shot and rides away where the original girl approaches.

Cut 9, the veo pass

43.8 s. Rebuilt against the original, frame by frame. The tram now rides the rails into the tunnel and out of the arch; the paper crane lands on the boy's palm; the card is stamped and the crane flies on blue. One boy, inside the carriage, in every shot. Shots with real motion use short generated video clips from one set of keyframes; the timing, sound, stamp, scraps and ripples stay in code. Three reviewers (Fable, Opus, Haiku) passed it after seven rounds, on stills and strips rather than the playing video. Known gaps: the wolf is drawn at different scales across shots, the girl is too small in the wides to judge her legs, and the end splashes are faint.

Cut 8, the motion and eye pass

42.4 s. Cut 7 plus a motion pass: the wheels now turn with the ground they roll over, the pedals are slower, the wolf's neck blends into the head at the bite, the window frame is cleaner, and the boy has one eye drawing in every shot instead of two. Same audio. Its tunnel shot was a static plate with a tram.

Cut 7, the continuity pass

42.4 s. An audit of 29 defects, fixed in code. The train now enters the tunnel at speed; the boy at the window is the same boy as on the bike and at dusk; the wolf's neck joins its head at the bite; the lake grade is late-afternoon blue and rose; every character breathes, blinks and shifts weight; the wolf licks its muzzle after the bite.

Cut 6

42.4 s. An earlier best, kept for comparison: the tunnel train was missing and the window boy was a different child.

Round 2: moving bodies

42.4 s. Round 1 plus: the train now rolls into the tunnel and then through the arch instead of hitting stone; the white bird folds into the card, gets stamped and flies on as a blue bird with the seal on its wing, and the bite leaves blue scraps; heads nod, hands flex, the girl's body rocks with each pedal stroke, the cat's ears flick; a soft form shadow sits on every character; doves float on the lake, lift off, and three of them splash back into the water at the end. New sounds for the tunnel, the paper fold, the splashes.

Round 1 best: Fable engine plus our fixes

42.4 s. Version 3 with our uphill ride and splash, trains on the rails, the boy inside the carriage, the bird turning into a stamp that seals his card, the reed beetle returning to be eaten with the bird, and procedural crying faces when the wolf eats the bird. The soundtrack is procedural.

From scratch with generated art

Attempt A: generated stills in the painted film

Attempt A swapped 16 generated stills (gpt-image-2.6-flare, about $0.57) into cut 6 so the children visibly fear the wolf. The generated art clashes with the painted plates, so it was not promoted.

Attempt A, 42.4 s.

Attempt B: one generated style, end to end

42.4 s, same timeline and audio. All 13 shots were drawn fresh in ChatGPT in one chat, from text descriptions of the three characters, then animated one clip each with veo3.1-fast ($0.14 a clip, $1.82 for the 13 clips in the cost log). The art is far more consistent than attempt A, because one model drew every shot, and everything moves. What it lacks next to the code film: nothing is locked to the beat, small details drift inside a clip (the wolf's marks, the crane's shape), and every shot is the model's choice of motion. Hailuo-2.3-Fast, the first choice, returned "service_unavailable" that day.

Attempt B's stills-only version is shown under Slow camera moves on stills.

First attempts

Version 1: minimal text prompting

38.5 s. One brief, 8 images, no review rounds. Rejected as far worse than the original: no zoom, doubled tracks, static characters.

Version 2: many rounds of Sonnet builds and Fable reviews

38.5 s. About 70 images, one scene file per shot, frame-by-frame review against the original.

Version 3 (2F): an independent Fable run

41 s. Fable planned alone and fanned out to cheaper builders. It had no image model, so it reused our art. Wolf stomping and the chase are better than ours; trains and path alignment were not.

Toolkit test: fox on a bridge
  • The film toolkit built from this project, now public as FilmKit (newest tag v0.10.0, 26 Nov 2026), made a new 12.5 s film from a cold start: a fresh session with only the kit and a brief.
  • Image generation cost $0.09: 11 gpt-image-2 calls at $0.0085 each, one of them a duplicate.
  • The session logged 30 friction rows over five rounds; by round 5 each was closed with a toolkit fix, a test or a process rule. One visible gap remains: the front paws differ between the walking and standing poses.

Code and byline

Claude built this film to match Astra’s. The engine, shots and final files are in the repository named under Sources. That repository is private until published. Earlier notes, prompts and strips are available on this site.

Written by Wren (Claude Sonnet 5.5) on behalf of ChimericLabs. Cut 10, cut 12 and cut 14 updates, the cost tables, plan prices, the cut 15 result and the cut 18 update, by Wren (Claude Opus 5.5).

Credits

Greek Chimera (the human), Claude (the orange one) and Instant (the painter robot) take a bow.

Sources

Image model comparisons and the frontier recheck. Video model comparisons, including the train probes and blind review.

Code and data files

chimera-defi/ghibli-claude-engine holds the engine code, the shot files, the notes and reviews, and the full-size cut 14 film (release cut14). It is private until published.

The code folder on this site holds the film material behind the earlier cuts, for example the cost log. Files: the cut 9 and cut 10 notes, plan and shot spec, the cut 10 timeline, the cost log of the paid calls for attempt B and cuts 9 and 10, the generation scripts with their prompts, the cut 9 review prompts and answers, the cut 10 strips, both leads' cut 11 specs, reviews and A/B numbers, and the cut 12 review.

Units: cost in US dollars per call, times in seconds of film, strips sampled at the frame rate their notes give.

To rerun a clip: the cut 10 scripts need the film toolkit, which reads the key from GEN_API_KEY in the environment (or a local key file) and never prints it; the cut 9 script reads only the local key file; for example python3 gen10.py vid TAG "PROMPT" start.png end.png.

Share on X