Shotfly

Comparison

Shotfly vs self-hosted Playwright

Self-hosted Playwright gives you full control and no per-screenshot fee, but you install, update and sandbox the browsers, protect your network from the URLs you capture, and handle cookie banners, bot challenges and blank pages yourself. Shotfly does that behind one HTTP request and doesn't charge for failed captures. Self-host for internal pages or an existing browser fleet; use an API for user-supplied URLs.

What does a self-hosted Playwright screenshot service need?

PartWith Playwright, youWith Shotfly
BrowserInstall the browsers and their system packages with npx playwright install --with-deps chromium, and run it again after each Playwright upgrade, since every version needs specific browser buildsNothing to install
ContainersBuild your own image: the official mcr.microsoft.com/playwright image is meant for testing and development, and Playwright advises against using it to visit untrusted websitesNothing to run
SandboxRun the browser as a non-root user with a seccomp profile; as root, the Chromium sandbox is offHandled
Untrusted URLsBlock private and internal addresses, at connect time and on every redirect, or a user-supplied URL can reach your networkRefused with url_not_allowed, including redirects during the render
Cookie bannersHide or reject them: hiding cookie bannersblock_cookie_banners, on by default
Bot challengesDetect them before saving: detecting bot challengestarget_blocked, not charged
Blank pagesWait for content and check the pixels: fixing blank screenshotsblank_page, not charged
Lazy contentScroll before a full-page capture: full-page captures of lazy pagesfull_page=true scrolls first
Storage and cachingStore, cache and serve the images; sign links you embedcache_ttl, one-hour links, signed URLs
ScalingSize servers for concurrent browsers, restart crashed ones, queue the overflowConcurrency per plan (2 to 25) and async jobs

Two more notes from Playwright's Docker documentation: start containers with --init to avoid zombie processes, and with --ipc=host, without which Chromium can run out of memory and crash. Alpine images are not supported.

What does the smallest version look like?

import { chromium } from 'playwright'

// One URL in, one PNG out. Everything in the table above is still left to build.
const url = process.argv[2]
const browser = await chromium.launch()
try {
  const page = await browser.newPage({ viewport: { width: 1280, height: 800 } })
  await page.goto(url, { waitUntil: 'load', timeout: 30_000 })
  await page.screenshot({ path: 'screenshot.png', fullPage: true })
} finally {
  await browser.close()
}

The Playwright version captures one page. It doesn't yet check where the URL points, survive a hung page, remove banners, or notice that it saved a challenge page.

What does self-hosting Playwright cost?

Playwright is free; running it as a service is not. Shotfly has found no authoritative public figure for that cost, because it depends on your volume, your cloud and your team, so this page doesn't invent one. Price these yourself:

On the Shotfly side, the price is the plan. Failed renders, bot challenges, blank pages and cache hits are not charged.

Shotfly planPriceScreenshots a monthPer 1,000
Free$0100Free
Starter$9 / month2,000$4.50
Growth$29 / month10,000$2.90
Pro$99 / month50,000$1.98

When is self-hosting Playwright the better choice?

When is an API the better choice?

How do Playwright options map to Shotfly parameters?

PlaywrightShotfly
browser.newPage({ viewport, deviceScaleFactor })viewport_width, viewport_height, device_scale_factor
devices["iPhone 15"]device=iphone_15
browser.newPage({ colorScheme: "dark" })dark_mode=true
page.screenshot({ fullPage: true })full_page=true
page.screenshot({ type, quality })format, quality
page.screenshot({ clip })clip_x, clip_y, clip_width, clip_height
locator.screenshot()selector
page.pdf()format=pdf
page.goto(url, { waitUntil: "networkidle" })wait_until=networkidle
page.waitForSelector(selector)wait_for_selector
browser.newContext({ userAgent, extraHTTPHeaders }), context.addCookies()user_agent, headers, cookies
page.addStyleTag(), page.evaluate()css, js

Sources: playwright.dev browsers, playwright.dev Docker, read 2026-12-01. Playwright is an open-source project; Shotfly is not affiliated with it.

Last updated 2026-12-01. Markdown version: /compare/playwright.md

Skip the browser fleet

100 free screenshots a month. Failed captures cost nothing.

Get a free API key