Same Face, Every Page: How We Keep AI Comic Characters Looking Like Themselves
A generate, judge, repair loop: one classifier call per page, one scoped edit when a face drifts, and a rule that the check can never make a comic worse.
By ComicKnit Editorial Team · Published · 8 min read
The short answer
ComicKnit keeps AI comic characters consistent with a generate, judge, repair loop. After each page is drawn, a Gemini decisions model compares every character with their reference portrait and returns probabilities. Characters at least 80% likely to be wrong get one targeted image edit, the result is re-judged, and it is kept only if it is genuinely better. The check is free, best-effort and never blocks a comic.
The page-three problem
Anyone who has tried to make a comic with image models knows the moment. Page one is great. Page two is great. On page three your red-haired detective turns up with a brown bob and a different jawline, and the story stops being a story.
ComicKnit turns a one-line idea into an illustrated comic book, so character consistency is not a nice-to-have. It is the thing that makes a comic read as a comic. This post covers how we went from mostly consistent to reliably consistent by adding a step that does nothing but check our own work.
The baseline: reference-first generation
Our pipeline has always been reference-first. Before any page is drawn, we generate a canonical portrait of every character, and art for every key location. Each page is then rendered by a reference-conditioned image model, with the relevant portraits passed in as conditioning images next to the page's script.
That gets you most of the way, but most is a bad number when a comic has a dozen pages with several characters on each, because small per-character error rates multiply. Busy pages are where it goes wrong: five people in a market scene, a character seen from three-quarter view, two similar-looking siblings in one panel. The model keeps the outfit and the mood, but quietly swaps the face.
We could have kept tuning prompts forever. What we wanted instead was a way to notice when a page went wrong and repair only what went wrong, without the user having to spot it and click regenerate.
Generate, judge, repair
The loop is short. First, generate the page as usual. Second, judge every character on it against their reference portrait. Third, repair only the characters the judge is confident are wrong, using a targeted image edit. Fourth, re-judge the repaired page and keep it only if it is actually better.
The first design question is what does the judging, and the answer turned out to matter more than any prompt.
Why a decisions model, not a chat model
We started with the obvious approach: show a multimodal chat model the page and the references and ask whether a character matches. It sort of works, but it is a poor fit for an automated pipeline. Free text needs parsing, and a model that mostly answers in the requested format will eventually not. A yes or no carries no confidence, so a yes from a model that is 51% sure looks identical to a yes from one that is 99% sure. And it is slow and expensive for what is really a classification.
Gemini Decisions 1 is built for exactly this. You give it input blocks (text and images) plus a set of questions, each with a fixed set of options and the criteria for each option. It returns, per question, a probability for every option: no prose, no parsing. It is a classifier you configure in plain language.
Calibrated probabilities are the unlock, because they let you make policy you can defend: swap when the model is at least 80% sure this is the wrong person.
Designing the question
One page means one request. The input is the generated page at high resolution, since faces in small panels need the detail, followed by each character's reference portrait at medium resolution, each with a text label so the model knows which image is which. Then there is one question per character, with three options rather than two: match, mismatch, and not visible.
Three design choices mattered far more than we expected.
- A third option, not visible. With only match and mismatch, a character who is a tiny background figure or seen from behind gets forced into a bucket and produces false mismatches. Giving uncertainty somewhere to go removed most of them, and we never swap on not visible.
- Judge identity, not outfit. Scripts legitimately change outfits between pages. The description we send is identity only (age, build, hair, eyes, skin tone, species, distinguishing features), and the judge is told to ignore clothing, pose, expression, camera angle, lighting and rendering style.
- Tell the judge where to look. If a page drew a character wrong, no figure looks like them, so a judge told to find that character hedges into not visible. Passing the script's placement (which panels they are in, where they speak, what they wear on this page) pushed real mismatches into the 0.9 range while correct characters stayed near zero.
Calibration before launch
Before turning the check on, we ran it against real pages and real reference portraits. Characters drawn correctly scored a mismatch probability between 0.01 and 0.05. A page checked against a deliberately wrong reference scored 0.99 for that character, while the untouched character on the same page stayed at 0.01.
That spread is what makes a hard threshold safe. We chose 0.8: high enough that we almost never fix a correct character, low enough to catch real drift. Our test suite pins the edge, so 0.79 does nothing and 0.80 swaps.
The repair: a character swap, not a regeneration
When the judge flags a character, regenerating the page is the simple move, and we deliberately do not do it. A new page is a new roll of the dice that can break something else, such as a different character, the layout or the lettering, and it throws away a page that was otherwise right.
Instead we run a targeted character swap with the same reference-conditioned edit model we use for rendering. The edit receives the finished page as the first image and the flagged characters' portraits after it, with a tightly scoped instruction: redraw the face, hair, skin tone, build and distinguishing features of this character to match the reference, while keeping outfit, pose, expression, position, panel layout, backgrounds, props, balloons, lettering and every other character exactly as they are. All flagged characters on a page go into a single edit, which we verified works as well as one at a time and halves the cost.
Trust, but verify the fix
An edit model can also make things worse, so the swapped page goes back to the judge with the same questions. We keep it only if the total mismatch of the swapped characters went down and no character that passed before is now a confident mismatch. Fixing one character by breaking another is not a win.
If the first swap fixes one character but not another, a second pass starts from the best image so far and swaps only the characters still above the threshold, judged by the same rule. That caps the work at two edits and three judge calls per page, which keeps cost and added time predictable.
Never let quality control break the product
The most important rule in the whole feature is that the consistency check can never make things worse for the user.
- It is best-effort and never throws. A missing key, a timeout, a malformed response, a safety refusal or a failed edit just means no verdict, and the original page is kept.
- It runs before upload, so readers only ever see the winning image, with no flicker of a wrong face being replaced.
- It is free to the user. The check and any swaps are on us: it is our quality bar, not an upsell.
- It has its own kill switch, so we can turn it off instantly if a model update ever changes behaviour.
- Every page writes a log line and a pipeline note recording what the judge saw and what it did, so decisions can be audited afterwards.
Key takeaways
- Use a classifier for classification. Probabilities you can threshold are worth more than prose you have to parse.
- Give uncertain cases somewhere to go. An explicit can't-tell option removed most false positives.
- Context beats cleverness. Telling the judge where a character should appear did more than any amount of prompt rewording.
- Repair locally. A targeted edit keeps everything that was already right, which a regeneration does not.
- Always re-check the fix, and be willing to throw it away. Quality control must never be the thing that breaks the product.
Frequently asked questions
How does ComicKnit keep characters consistent across pages?
Every character gets a canonical reference portrait before any page is drawn, and each page is rendered using those portraits as conditioning images. After a page is drawn, a decisions model checks each character against their portrait, and a targeted edit repairs any confident mismatch.
What is a decisions model?
A decisions model is a classifier you configure in plain language. You supply inputs, a question and a set of options with criteria, and it returns a probability for each option instead of free text, which makes it easy to apply a confidence threshold.
Does the consistency check cost extra credits?
No. The check and any character swaps are absorbed by ComicKnit as a quality bar. Users pay the normal page cost only.
What happens if the check fails or the swap makes things worse?
The original page is kept. The check is best-effort: errors, timeouts and refusals produce no verdict, and a swapped page is only used if the re-check confirms it is better and has not broken any other character.
Why not just regenerate the whole page?
A fresh generation is a new roll of the dice that can change other characters, the layout or the lettering. A scoped edit changes only the faces that were wrong and leaves everything else as it was.
