NewIncluded on every plan

Clean screenshots of messy pages

Some pages still come out wrong after ad and popup blocking. Add aiCleanup: true to the request and the leftover popups, repeated sticky bars and empty ad boxes are removed. Below are six pages we captured both ways.

25 AI cleanup checks a month on the Free plan. No credit card.

The same homepage with the popup and overlay removed.A news homepage covered by an ad-blocker popup and a dark overlay.BeforeWith AI cleanup

Drag the handle. Same page, same request, with and without aiCleanup.

Popups and floating players

We captured each page twice with the same request, once with aiCleanup: true and once without.

Floating player

A video player on top of the content

Kotaku's video player floats over the Latest column and hides some of the headlines. On the right it's gone and you can read them.

The same homepage with the video player removed and the article list fully visible.A news homepage with a floating video player covering the latest-articles list.BeforeWith AI cleanup
Repeated popup

The same popup, over and over

AG1's discount popup stays on screen while the page scrolls, so a full-page capture has a copy over every section. All of them are removed.

The same full-page capture with no popups.A full-page capture of a store homepage with the same discount popup repeated over each section.BeforeWith AI cleanup

Full-page captures

Sticky elements do the most damage on long pages. Each pair scrolls together.

Repeated header

A sticky header in every section

The navigation bar follows the scroll and lands on top of the content again and again. We didn't want to delete a site's header, so it's kept once, at the top.

Before
A full-page capture of a recipe site where the navigation bar is repeated over the content.
With AI cleanup
The same capture with the navigation bar shown once at the top.
Sticky bar

A search bar that cuts through photos

Reformation has a sticky search bar that leaves grey strips across the product photos. The photos on the right are whole.

Before
A full-page capture of a fashion store with a grey search bar repeated across product photos.
With AI cleanup
The same capture with clean, uninterrupted product photos.
Empty ad slots

Blank boxes where the ads were

Time's homepage keeps a tall blank box wherever an ad was blocked. Once those close up, the same height of page shows a lot more of the homepage.

Before
A section of a news homepage with large empty ad placeholder boxes between content blocks.
With AI cleanup
The same section with the empty boxes removed and more content visible.

What gets removed and what stays

Removed

  • Elements repeated down a full-page capture: floating video or ad players, sticky headers, footers and bars, chat bubbles
  • Popups, modals, newsletter and app prompts, and the dimming behind them
  • Pages that lock scrolling while a popup is open
  • Ad slots, including empty placeholder boxes

Left alone

  • Article images and product media
  • Videos that are part of the page
  • Navigation that appears once
  • The site header. If it repeats, one copy stays at the top

Three ways to get a clean capture

How AI cleanup compares with the default blocking and with writing your own hideSelectors.

ComparisonDefault blockingYour own hideSelectorsAI cleanup
SetupNone. On by defaultFind and maintain selectors for each siteOne option: aiCleanup: true
Cookie banners and common adsHandledIf you write a selectorHandled. Runs on top of blocking
Popups on sites you have never seenCommon patternsNot until you add a selectorUsually handled
Sticky elements repeated down a full pageCommon casesIf you write a selectorUsually handled. A header is kept once
Empty boxes left after ads are blockedCan remainIf you write a selectorRemoved
When a site redesignsNothing to updateSelectors breakNothing to update
Added timeNoneNoneAbout 5 s on a clean page, 10–20 s when something is fixed
UsageEvery captureEvery captureMonthly allowance on every plan

It misses things sometimes. When it can't safely fix a page you get the normal capture back, and the response header says so.

How to turn it on

It's one field on the screenshot request. There are no selectors to write.

curl -X POST https://api.allscreenshots.com/v1/screenshots \ -H "X-API-Key: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "url": "https://example.com/article", "fullPage": true, "aiCleanup": true }' \ --output capture.webp
X-AI-Cleanup: repaired; issues=2; removed=3

How to tell what it did

The X-AI-Cleanup header carries one of these outcomes. Turning the option on can't make a capture fail. If something goes wrong you get the normal capture back.

repaired
Problems found and fixed. You get the cleaned capture.
clean
Nothing to fix. The capture is unchanged.
nothing_to_hide
Problems found, but nothing could be safely removed. The capture is unchanged.
rejected
A fix would have damaged the page, so you get the original capture.
blocked
The page itself is a bot check or an error page.

Questions

How is AI cleanup different from ad, cookie banner and popup blocking?

Blocking is on by default and runs on every capture. AI cleanup is something you switch on for the pages where blocking wasn't enough, like a popup on a site we've never seen or a sticky bar repeated down a full-page capture.

Can it remove real content by mistake?

It can, though we've worked to make that rare. Article images, product photos, in-page videos and navigation that appears once are left in place. If a fix would damage the page, we return the original capture and report the outcome as rejected.

How much slower is a capture with AI cleanup?

About 5 seconds on a page that turns out to be clean, and about 10–20 seconds when something is fixed. Raise the timeout if you capture very long pages.

What does it cost?

Nothing extra. Every plan has a monthly number of checks: 25 on Free, 250 on Starter, 1,500 on Pro, 10,000 on Business, 25,000 on Scale and unlimited on Enterprise. You use a check when a capture has been looked at, even if nothing was removed. A check also counts as a normal screenshot, and cached results are free.

How do I know what happened to a capture?

The response has an X-AI-Cleanup header, for example "repaired; issues=2; removed=3". Async jobs return the same value in metadata.aiCleanup.

Where does it work?

On sync and async screenshots, viewport or full page, in the dashboard Playground and through the MCP server. You can't combine it with stealth mode, PDF output, element capture with a selector, or multiple outputs. Bulk, scheduled and composed captures don't have it yet.

Does it get past bot checks or paywalls?

No. If the page is a bot check or an error page, the outcome is blocked. Stealth mode is the tool for bot checks.

What data is processed?

With aiCleanup on, the capture and basic page structure are sent to our AI provider, Anthropic. Nothing is sent when aiCleanup is off.

Try it on your worst page

You probably have a URL that never comes out right. Switch on AI cleanup in the Playground and capture that one first. The Free plan has 25 checks a month.