AIFeed

Show HN: I spent $715 on Fable 5.2 tokens to make this painting from code

Original text(via Hacker News)
The Chaste Heart of Joseph: a red heart with a fire rising from its neck and a wreath of white lilies round it, between two tall sheaves of lilies tied with a powder-blue bow, on a gold ground inside a blue border.
The Chaste Heart of Joseph: a red heart with a fire rising from its neck and a wreath of white lilies round it, between two tall sheaves of lilies tied with a powder-blue bow, on a gold ground inside a blue border.

This picture cost about $715. That’s what the Fable 5.2 tokens come to at API list prices, for the two sittings it took Claude Code to paint it, with ten painter agents and 350 saved iterations.

There’s no image model anywhere in it. Every version is a Python program that puts brush strokes onto a simulated sheet one at a time, and I didn’t write a line of the Python.

Plate I. The whole thing in a minute and a half: every note I sent, every iteration that followed, and the running cost. The music is Gregorian chant sung by The Tudor Consort (CC BY 3.0). There’s more in the thread on X.

What it cost

Ten painter agents account for $539 of the $715, and the agent directing them for the other $176. Together they wrote 5.7 million output tokens, more than half of them thinking, and reread 775 million tokens of their own context from cache.

Nearly all of it went on the first day. That Friday afternoon five agents were each writing a painter from scratch at the same time, then five more were reworking the winner, and the bill stood at $634 when I stopped at half past six. The whole of Saturday, which is when the picture started looking like something a person made, added $81.

A chart of cumulative cost over two sittings: a steep climb to $634 on Friday afternoon, then a nearly flat line through Saturday to $715. Tick marks under the axis show when each of my notes was sent, and two circles mark where the usage limit was hit.
A chart of cumulative cost over two sittings: a steep climb to $634 on Friday afternoon, then a nearly flat line through Saturday to $715. Tick marks under the axis show when each of my notes was sent, and two circles mark where the usage limit was hit.

Plate II. Cost over the two sittings, with my notes marked along the bottom.

Those are API prices. I’m on a subscription, so what I paid was the plan plus resets: I hit the Fable limit twice, once on Friday and then the weekly one on Saturday, and reset both times to keep going.

How it’s painted

The strokes taper, carry two tones, streak, and run out of paint as they go. The lilies are small 3D surfaces, so each trumpet faces its own way, and then they’re painted over in washes and strokes like everything else. The very first picture is about 2,500 strokes.

It’s a Chaste Heart of Joseph. We’d found prints of the Immaculate Heart of Mary and the Sacred Heart of Jesus for one wall, and wanted a third to match before we bought them.

The Immaculate Heart of Mary print: a red heart ringed with roses and pierced by swords, in a pink oval on a green ground, inside a dark border of painted flowers.
The Immaculate Heart of Mary print: a red heart ringed with roses and pierced by swords, in a pink oval on a green ground, inside a dark border of painted flowers.
The Sacred Heart of Jesus chromolithograph: a dark red heart in a crown of thorns with a cross in its flames, gold rays, lilies and wheat on either side, a garland of roses and a caption below.
The Sacred Heart of Jesus chromolithograph: a dark red heart in a crown of thorns with a cross in its flames, gold rays, lilies and wheat on either side, a garland of roses and a caption below.

Plate III. The two prints we found (a modern painting, and a chromolithograph by P. A. Kemper of Dayton, Ohio), and the third heart as it stands now.

Five painters

The first picture was loose gouache, and it was wrong. It looked sloppy where the prints look deliberate, and modern where they look old. The second went flat and outlined and heavily aged, which was further off still.

The first try in twilight blue: a small flaming heart inside an oval wreath of leaves and white flowers, on loosely brushed dark blue.
The first try in twilight blue: a small flaming heart inside an oval wreath of leaves and white flowers, on loosely brushed dark blue.
The first try in saffron: the same wreath on brushed golden yellow with a purple border.
The first try in saffron: the same wreath on brushed golden yellow with a purple border.
The second try in antique blue: flat white lilies round a flat red heart on a dusty blue ground, with a blackletter banner.
The second try in antique blue: flat white lilies round a flat red heart on a dusty blue ground, with a blackletter banner.
The second try in rosewood: the same design on a faded rose-brown ground.
The second try in rosewood: the same design on a faded rose-brown ground.

Plate IV. The first two tries, two colourways of each.

So I asked for something else. Look at the two prints, work out what they have in common, and start again from scratch five different ways, with different layouts and different styles. Claude Code sent out five Fable agents. Each one wrote its own painter, between 2,000 and 3,200 lines of Python, and ran its own loop of rendering, looking and fixing before anything came back to me.

Five pictures side by side: a chromolithograph-style heart in sprays of lilies, a folk-painted medallion with a dark border, an arched shrine in terracotta and rose, a lily sheaf on pale yellow, and a lace holy card in blue and white.
Five pictures side by side: a chromolithograph-style heart in sprays of lilies, a folk-painted medallion with a dark border, an arched shrine in terracotta and rose, a lily sheaf on pale yellow, and a lace holy card in blue and white.

Plate V. The five as they first came back: chromolitho sprays, folk medallion, arched shrine, lily sheaf, lace card.

Taste

Most of my notes from there on were small. One painter’s lettering had vertical streaks running across the letters, which made no sense for a brush, so every texture since then follows the way a brush would move over that shape. Joseph’s staff stood behind the heart in the lily sheaf and made it look like it was mounted on a rod, so it went. The grounds kept drifting toward beige, and we like colour.

Every round went onto one page with a slider through all the iterations, and I sent it to my wife.

One note was closer to theology than taste. The three hearts have to hang at the same height, because a heart set higher than the others looks more glorified. Mary’s heart is centred 47.3% of the way down her picture and Jesus’s at 48.7%. Joseph’s is at 47.7%.

The three pictures side by side with a dashed gold line running through the centres of all three hearts.
The three pictures side by side with a dashed gold line running through the centres of all three hearts.

Plate VI. Level.

We chose the lily sheaf. We liked it, and we wanted to love it, so it got five variations, each changing one idea. The lush bouquet won. It got fuller, lost its pink and blue flowers, and grew three much richer siblings (an illuminated page, a thousand flowers, gold filigree) that we ended up setting aside.

Five variations of the lily sheaf: deeper and richer, on a blue ground, with a painted border, as a lush bouquet (marked as picked), and with a crown and cross.
Five variations of the lily sheaf: deeper and richer, on a blue ground, with a painted border, as a lush bouquet (marked as picked), and with a crown and cross.

Plate VII. The lily sheaf, five ways.

My wife wasn’t sold on the powder blue. Claude repainted the ribbon and border four ways at the same lightness, checking each colour in Lab so it wouldn’t fight the gold, the leaves or the red. We chose Iris. The next afternoon I looked at the finished picture in Iris and asked for the powder blue back.

The same picture five times with the ribbon and border in powder blue, sapphire, iris, amethyst and orchid.
The same picture five times with the ribbon and border in powder blue, sapphire, iris, amethyst and orchid.

Plate VIII. Powder blue, sapphire, Iris, amethyst, orchid. Powder blue won in the end.

More human

Then the actual problem. People kept picking it out as AI art, so I asked for it to look far more human, and old.

What came back wasn’t a filter. The finish is three passes over the painting. A grade takes pure whites toward cream. A hand pass wobbles the ruled lines, lays hatching that follows the form, varies how loaded the brush is, mottles the washes and adds tooth from the paper. Light ageing comes last, and it’s kept off the heart and the fire.

The blue bow straight out of the painter: smooth, even colour with crisp edges.
The blue bow straight out of the painter: smooth, even colour with crisp edges.
The same bow after the finish: visible brushstrokes along each loop, softer edges, a mottled gold ground.
The same bow after the finish: visible brushstrokes along each loop, softer edges, a mottled gold ground.
The top-left corner of the border straight out of the painter: crisp blue band with white flowers and a gold scroll.
The top-left corner of the border straight out of the painter: crisp blue band with white flowers and a gold scroll.
The same corner after the finish: hatching in the blue, slightly softened edges, a warmer and more uneven ground.
The same corner after the finish: hatching in the blue, slightly softened edges, a warmer and more uneven ground.

Plate IX. The bow and a corner of the border, straight out of the painter and after the finish.

The hand pass also moved the drawing itself around, and I pulled that back three times: less wobble at the sides, then the whole picture steadied by about 80%, then more. The brushwork and the paper were what I liked. The lines could stay where they were drawn.

The heart

The heart took the most rounds. Its first brushstrokes were too bold and separate, and I asked for them to be blended the way a painter would blend them, not smoothed digitally. It simulated a bristle brush drawn across the strokes and then along them, each bristle laying down paint and picking up whatever it crossed. They were still streaks, and I asked for the streaks to go.

Then four ways to paint it: soft, more realistic, flat and folk, glowing from inside. I took the realistic one. Then the shape was too classic and too perfect, so three lopsided outlines with everything else identical to the pixel. I picked the leaning one, reversed, on one condition: it couldn’t look like a heart sitting in front of a pipe.

In both prints the neck grows out of the heart. Ours was a tube standing in front of it. Now the heart and its neck share one outline, which is inflated into one rounded form by solving a Poisson equation over it, and lit as one thing.

The heart before: a separate red tube with a lip stands in front of the cleft between the two lobes.
The heart before: a separate red tube with a lip stands in front of the cleft between the two lobes.
The heart after: the neck rises out of the heart's shoulders as one rounded form, with the fire coming from its mouth.
The heart after: the neck rises out of the heart's shoulders as one rounded form, with the fire coming from its mouth.

Plate X. The neck, before and after.

The last round was the fire, which now rises only from the neck, redrawn three ways. A thin cross on an M stands in the middle of the flames, which part round it. The first version sat on top like a hat. The lilies on the heart became a wreath that goes round it and behind it, where before they stuck far out to the sides.

Somewhere in there I also asked for an editor, and got a local web page with 61 controls (the height of the fire, how many flowers, how soft the edges are) so we can change things ourselves.

Plate XI. At print size, 3600 by 4800.

Where it stands

We haven’t picked the fire.

The finished picture with an upright fire rising straight from the heart's neck.
The finished picture with an upright fire rising straight from the heart's neck.
The finished picture with a crown-shaped fire spreading out to both sides.
The finished picture with a crown-shaped fire spreading out to both sides.
The finished picture with a fire swept to one side like a flame in a draught.
The finished picture with a fire swept to one side like a flame in a draught.

Plate XII. Upright, crown and swept. Each also exists with the cross.

Effort

I have a theory about why it read as AI art at first. I’m not sure it’s right.

Art is a record of human effort and human taste. The more effort you put into something, the more human it is, whatever tools you used, because more of it reflects who you are. That’s the difference between AI art and real art. It’s also the difference between photos and real art, and between painting and real art. Somebody mixed mud and painted it onto the wall of a cave. Somebody else scraped a calfskin into vellum and lettered a psalter on it. Neither is art because of the mud or the calfskin.

By that measure the first picture was AI art in the bad sense, and the tools had nothing to do with it. There wasn’t much of me in it yet.

The finished one is AI-made in every literal sense. Claude wrote all the code, and the agents checked their own work hundreds of times before I saw any of it. What’s mine is the notes, each one somebody looking at the last version and saying what was wrong with it: too sloppy, a heart on a rod, too much wobble, a cross worn like a hat. The chart of the money has the same shape. Friday took $634 of computing. Saturday, the day that went on making it look like a person painted it, took $81.

A grid of about a hundred small pictures in rows, every step of the painting in order, from the first blue gouache attempt to the finished gold and blue heart.
A grid of about a hundred small pictures in rows, every step of the painting in order, from the first blue gouache attempt to the finished gold and blue heart.

Plate XIII. Every step, in order.

There’s a thread on X with the videos and more of the steps. I’m elliotbnvl there.

All 350 are laid out below. Pick a print or drag through them. The loupe works on the prints, and on the desk.

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by Hacker News
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗