DEV Community

Cover image for Can AI Disassemble What AI Created? — Background Removal Stress Test in 8 Levels
popo suke
popo suke

Posted on

Can AI Disassemble What AI Created? — Background Removal Stress Test in 8 Levels

"AI background removal is amazing, right?"

You've seen the comparison articles. A model standing in front of a white backdrop. Cleanly cut out. "Amazing!" End of article.

Of course it is. A person on a white background? AI could do that in 2020.

In this article, we take the test a little more seriously.

We use Nano Banana 2 (Google's image generation AI) to create progressively more complex images, then feed them into a browser-based background removal AI.

Full disclosure: the background removal tool used here, Image Tools, is a web app I built myself. It runs AI inference entirely in the browser — no server uploads. Since it's my own product, I have no intention of going easy on it. I want to know exactly where it breaks. That's the whole point.

The rules are simple. At what level does it hold up, and where does it collapse?


The Image Tools background removal interface. Runs entirely in the browser — images are never sent to a server.


Rules

  • Image generation: Nano Banana 2 (Google Gemini family, released February 2026)
  • Background removal: Image Tools (browser-only, no server upload)
  • Evaluation: my eyes. No scientific rigor. The only question is "is this usable in practice?"
  • One image per level. No retries. One shot.

Lv.1 — Warm-Up

Challenge: White background × Simple subject

Nano Banana 2 prompt:
A single red apple on a pure white background, product photography, centered, studio lighting

For a background removal AI, this is the equivalent of morning stretches. If it fails here, it should file for retirement.

Result: ⭐⭐⭐⭐⭐ Flawless

The apple's edge, the stem, the leaf. Not a single pixel out of place. The shadow is gone without a trace.

Well, of course. If we were impressed by this, the article would be over in eight lines. Let's move on.


Lv.2 — The Everyday

Challenge: Gradient background × Person

Nano Banana 2 prompt:
A woman in a dark navy business suit standing in front of a soft blue-to-purple gradient background, professional headshot, upper body

The background upgrades from solid white to a gradient. Still, the subject is a person — the bread and butter of background removal AI. If it stumbles here, there's nothing but hell waiting ahead.

Result: ⭐⭐⭐⭐⭐ Flawless

The gradient background vanishes completely. The wave of her hair, the line of her shoulders, the thin chain of her necklace — all preserved with surgical precision.

I'd like to applaud, but this is still Lv.2. Praising the AI here is like telling a marathon runner "great form" at the 2km mark.


Lv.3 — Getting Serious

Challenge: Cluttered background × Subject

Nano Banana 2 prompt:
A tabby cat sitting on a wooden desk cluttered with books, pens, a coffee mug, and scattered papers, natural window lighting, realistic photo

Now we're talking. The background is full of objects. The cat is sitting directly on the desk. The real question: can the AI tell "background" from "foreground objects that aren't the main subject"?

Result: ⭐⭐⭐ An Unexpected Judgment Call

The cat survived. Good.

The problem is that the books and the coffee mug survived too.

The window, the desk surface, and the background wall are gone. But the objects surrounding the cat — a row of Orwell paperbacks, a mug labeled "STUDIO NOTES," scattered pens — linger on as semi-transparent ghosts.

The AI apparently decided: "This cat and these objects are a package deal."

The coffee mug was classified as the cat's ally. In fairness, the relationship between cats and mugs runs deep. In the history of humanity, the number of times a cat has pushed a mug off a desk likely reaches astronomical figures. One can understand why the AI refused to separate them.


Lv.4 — Camouflage

Challenge: Subject and background are the same color

Nano Banana 2 prompt:
A white Persian cat sleeping on a white fluffy blanket on a white sofa, soft natural lighting, realistic photograph, slightly overexposed

White on white on white. For a background removal AI, this is like fighting an enemy in active camouflage. Color data is almost useless. Can it identify the subject by shape alone?

Result: ⭐⭐⭐⭐ Better than expected — and fascinating

The sofa is gone. The cushions are gone.

But the blanket remains.

The cat and blanket were extracted as a single unit. The boundary between sofa and blanket was cleanly severed, but the boundary between cat and blanket was not.

To be fair, look at the original image again. Can you find the boundary between cat and blanket? The Persian cat's long white fur sinks into the white faux fur throw. Where the cat ends and the blanket begins is unclear even to the human eye.

The AI decided they couldn't be separated. And it's probably right. If it had tried, the cat's lower body would have vanished. The AI chose to rescue the cat by rescuing the blanket along with it — a remarkably pragmatic decision.

Or perhaps the cat has simply fused with the blanket into an entirely new life form. That possibility cannot be ruled out.


Lv.5 — The Hair Battle

Challenge: Complex edges (curly hair, backlighting)

Nano Banana 2 prompt:
A woman with extremely curly voluminous afro hair, standing in a lush green garden with trees and bushes, golden hour sunlight filtering through her hair, realistic portrait photography

The nemesis of background removal: hair. And not just any hair — backlit hair with sunlight leaking through every curl. At the pixel level, the boundary between hair and background simply does not exist.

Result: ⭐⭐⭐ A valiant effort, sabotaged by the sun

The person is extracted successfully. Body line, clothing, face — all fine.

But a golden halo lingers around the hair. The backlight that filtered through each individual strand was classified as "part of the hair" rather than "background."

Is sunlight background, or part of the hair?

In physics, it's photons that passed through from behind. Visually, it's the element that makes the hair glow. The AI chose "when in doubt, keep it." Better to preserve a glow than to shred the edges of the hair.

In practice, this works fine on a white or light background. Put it on a dark background, though, and a golden ghost will appear around the hair. A result that depends on its destination.


Lv.6 — The Threshold of Philosophy

Challenge: Transparent / semi-transparent subject

Nano Banana 2 prompt:
A clear glass wine glass half filled with white wine, sitting on a marble table with a colorful flower garden visible in the background, sharp focus, realistic product photography

What does it mean to "remove the background" of something transparent?

Is the garden visible through the glass part of the glass, or part of the background? Are the flowers refracted in the wine surface the subject, or the scenery? If the AI has an existential crisis at this point, no one can blame it.

Result: ⭐⭐⭐⭐ Surprisingly philosophical

The table disappeared. The napkin disappeared. The olive dish disappeared.

Only the glass remained. The thin stem survived. The delicate base survived.

And here's the most interesting part: the refracted image of the flower garden, seen through the glass, was preserved as part of the glass itself.

This might be a philosophically correct answer. The glass is made of glass, but the strongest proof of glass's existence is the distortion of what lies beyond it. The AI kept that distortion as an "attribute of the glass."

Of course, this means that if you composite this result onto another background, the flower garden will be trapped inside the glass for eternity. A miniature garden in a wine glass. Poetic, but not ideal for product photography.


Lv.7 — Playing Dirty

Challenge: Multiple layers, the definition of "subject" is unstable

Nano Banana 2 prompt:
A person standing behind a rain-covered glass window, their reflection partially visible, city lights blurred in the background, moody cinematic photography, shallow depth of field

Is the subject the person beyond the window? The window itself? The reflection on the glass? Three layers overlap. Even a human would spend 30 minutes in Photoshop on this one.

Result: ⭐⭐⭐ A Diplomatic Answer

The actual person (right side of the frame) is solidly preserved. The window frame is gone. The raindrops are gone. The blurred city lights are gone.

But the reflection lingers.

On the left side of the frame, a faint ghost — the reflection that was on the window — remains, hovering translucently.

Should the reflection be removed or kept? There is no correct answer. It's similar to asking whether a shadow should be removed.

The AI appears to have thought: "Removing it entirely doesn't feel right, but keeping it entirely doesn't feel right either." It arrived at the diplomatic solution of leaving it semi-transparent — like a joint statement at an international summit. No one is fully satisfied. No one can fully object.


Lv.8 — Collapse

Challenge: Subject and background are physically fused

Nano Banana 2 prompt:
A ghostly human silhouette barely visible, made entirely of thin wispy smoke, dissolving into a dense dark fog that fills the entire scene, no clear boundary between body and surrounding mist, very low contrast, volumetric fog, dark art photography

The subject is made of smoke. The background is also smoke. The boundary between subject and background literally does not exist.

This isn't background removal. This is asking the AI to cut out nothingness.

Result: ⭐ — Thank you for your service

The AI cut out something.

In the center of the frame floats a vague gray smudge. You could say it resembles a human silhouette. You could also say it resembles a ghost photograph. If someone told you it was a new entry in the Rorschach test catalog, that would be the most convincing explanation.

The dark background fog was removed. But what remains has no presence as a "subject." Smoke was cut from smoke, and smoke is what remained. Logically sound. Practically meaningless.

This is where the AI draws the line. When the boundary between subject and background does not physically exist, it cannot be processed.

Which is fair. Asking AI to do what humans can't is unreasonable.


Overall Results

Lv Challenge Rating One-liner
1 White bg × Apple ⭐⭐⭐⭐⭐ Retirement avoided
2 Gradient × Person ⭐⭐⭐⭐⭐ Even the necklace chain survived
3 Cluttered desk × Cat ⭐⭐⭐ The mug is apparently the cat's ally
4 White cat × White sofa ⭐⭐⭐⭐ Rescued the blanket to save the cat
5 Curly hair × Backlight ⭐⭐⭐ To keep the sunlight or not, that is the question
6 Wine glass × Garden ⭐⭐⭐⭐ An eternal garden inside the glass
7 Rain window × Reflection ⭐⭐⭐ A joint statement from the UN of pixels
8 Smoke person × Smoke bg New Rorschach test entry

Conclusion

Lv.1–2: flawless. Lv.3–4: usable. Lv.5–7: depends on context. Lv.8: impossible.

That's the state of browser-based AI background removal in 2026.

Honestly, Lv.4 and Lv.6 exceeded my expectations. I didn't think separating a white cat from a white blanket, or extracting a transparent wine glass, would work this well. Lv.3's decision to keep the books and mug was unexpected, but "rescue all foreground objects together" is actually a smart strategy.

On the other hand, the light halo in Lv.5 and the reflection ghost in Lv.7 are genuine limitations right now. When pixels sit in an optical gray zone, the AI leans toward "keep it." It prefers the risk of keeping something extra over the risk of destroying the subject. Conservative, but rational.

And Lv.8 — that's not a background removal problem. That's a "what is a subject" problem. When boundaries don't physically exist, neither AI nor humans can find them.


So, is it actually usable?

E-commerce product photos, social media icons, presentation materials — for everyday use cases, Lv.1–4 has you covered. The answer is yes.

And above all, it runs entirely in your browser. No server uploads. Your images never leave your computer.

For anyone who cares about privacy, that might matter more than performance.

Drop an image in. That's it. Everything happens in your browser.

Curious where your images fall on the scale? Give it a try.


Tools Used

  • Image generation: Nano Banana 2 (Google Gemini family image generation model)
  • Background removal: Image Tools (browser-based, free)

Top comments (0)