Comparison

Screenshotly vs Self-Hosted Puppeteer

Compare a managed screenshot API with running Puppeteer or Playwright on your own infrastructure. The trade-off is browser control and network access against the work of operating headless Chrome.

Quick summaryManaged screenshot API vs self-hosted Puppeteer or Playwright. Self-hosting wins on interaction, private-network access, and rendering control. A managed API removes browser operations. Cost depends on your volume and engineering time.

Screenshotly vs Self-Hosted Puppeteer: At a Glance

Puppeteer and Playwright are free libraries, but running them in production means paying for browsers, queues, upgrades, and on-call time. Whether a managed API is cheaper depends on your volume, concurrency, and engineering cost, so price both sides with your own numbers.

Feature Comparison: Screenshotly vs Self-Hosted Puppeteer

FeatureScreenshotlySelf-Hosted Puppeteer
PricingFrom $14/moOpen source; you pay for infrastructure and engineering time
What you operateAn API key and HTTP clientBrowsers, containers, queue, and workers
Browser upgradesManaged by ScreenshotlyYour responsibility
Multi-step interactions (forms, OAuth, clicks)❌ One page load per request✅ Full control
Custom JavaScript before capture⚠️ Growth+ (up to 5,000 characters)✅ Unlimited
Private or localhost URLs❌ Public addresses only✅ Anything your network can reach
PDF output⚠️ Basic+, fixed A4 with 1 cm margins✅ Full page.pdf() options
Cookie banners and overlays✅ blockAds on all plans; AI removal on Growth+⚠️ Your own selectors and scripts
Device mockup frames✅ 6 templates (Growth+)❌ Build it yourself
Throughput ceilingPlan rate limit: 5–200 requests/minuteYour hardware and concurrency
Cost model$0–$199/month by quotaInfrastructure plus engineering time
Cost shapeFixed per plan; only successful captures countMostly fixed (always-on workers), plus time that spikes during upgrades and incidents
Browser enginesChromiumPuppeteer: Chrome and Firefox; Playwright: Chromium, Firefox, WebKit

Why Choose Screenshotly?

One HTTPS request per capture: no browser binaries, containers, or worker pool to operate
Ad and common consent-banner blocking on every plan; AI element removal on Growth and Scale
Six device mockup templates on Growth and Scale
Durable async jobs with idempotency keys and webhooks (Basic+), plus batches of up to 20 captures (Growth+)
Fixed monthly plans; only successful captures count and there are no automatic overages

Where Self-Hosted Puppeteer Stands Out

Full browser automation: click, type, navigate, and run multi-step flows
Can reach private, internal, and localhost URLs inside your network
Complete control over PDF options, browser flags, and wait logic
No per-capture fee and no vendor in the request path

Self-Hosted Puppeteer Limitations

You run and patch the browser fleet, containers, and job queue
Memory use, crashed pages, and stuck browsers are yours to detect and recover
Chrome and library upgrades can change rendering and need regression checks
Rendering untrusted third-party URLs inside your network needs isolation work

When to Choose Which

Choose Screenshotly if…

  • Your workload is "public URL in, image or PDF out" and you would rather not operate headless Chrome
  • Your volume fits a plan quota (2,500, 12,000, or 50,000 successful captures a month)
  • You render third-party or user-submitted URLs and want the browser outside your network
  • You need consent-banner cleanup or device mockups without maintaining selectors and image code

Choose Self-Hosted Puppeteer if…

Keep Puppeteer or Playwright when the capture is a step inside browser automation: logging in through a form, clicking through a flow, or reading page state. Keep them for private, staging, or localhost targets a public API cannot reach, for PDF layouts other than A4, and when compliance requires all rendering to stay inside your network. At steady high volume with a team that already runs Chrome well, self-hosting can also cost less.

Screenshotly vs Self-Hosted Puppeteer: The Verdict

Choose a managed API when the job is capturing public pages and the browser fleet is overhead rather than product. Choose Puppeteer or Playwright when you need interaction, private-network access, or rendering control the API does not expose. Many teams run both: automation stays in their own code and plain captures go to the API.

Deep Dive: What This Trade-off Actually Looks Like

Puppeteer and Playwright cost nothing to download. Running them in production is a different bill: workers sized for peak concurrency, a queue that retries failed jobs, monitoring that notices stuck or crashed browsers, and the engineering hours spent upgrading browsers and checking that captures still look right afterwards. Those costs vary widely between teams, so this page gives you a model to fill in rather than a single break-even number.

The capability gap matters as much as cost. Screenshotly loads one public URL per request, with optional waits, headers, cookies, and, on Growth and above, up to 5,000 characters of JavaScript before capture. It cannot click through a login flow, reach localhost or private addresses, or produce PDFs other than A4 with 1 cm margins. If your workflow depends on any of those, keep Puppeteer or Playwright for that part.

The Self-Hosted Cost Inputs

A production Puppeteer or Playwright service needs more than a script that works on a laptop. Price each item for your own environment.

  1. Compute per concurrent browser. Headless browsers are memory-hungry, and full-page captures of long pages use far more than viewport captures. Measure peak memory on your real URLs, then size for the concurrency your peak traffic needs, not the average.
  2. Queue and retry layer. Something has to absorb bursts, retry transient failures, and stop one slow page from blocking everything behind it. That usually means a queue (Redis, SQS, RabbitMQ), a worker pool, and dead-letter handling.
  3. Process hygiene. Crashed tabs, orphaned browser processes, and memory that grows over a worker's lifetime need watchdogs and periodic recycling.
  4. Observability. Latency, failure rate by cause, worker memory, and queue depth. Without these, you hear about breakage from users.
  5. Browser and library upgrades. Puppeteer releases target specific Chrome versions, and each Playwright version needs specific browser builds installed with npx playwright install. APIs change between major versions, so every upgrade needs a regression run on your capture set.
  6. Fonts and rendering environment. Container images need the right fonts (CJK, emoji) and locale settings, or captures render differently from a desktop browser.
  7. Security isolation. If any captured URL comes from a user or the open web, the browser needs egress controls that block private and metadata IP ranges for the page and every subresource. Otherwise it is a server-side request forgery (SSRF) path into your network.
  8. On-call and incidents. Someone gets paged when the pool wedges or a browser update breaks rendering.

Items 1 and 2 show up on a cloud invoice. Items 3 to 8 are mostly engineering hours, which is why they tend to be underestimated.

A Cost Model You Fill In

Price one month on each side.

  • compute: browser workers sized for peak concurrency
  • supporting_services: queue, object storage, logging and metrics, network egress
  • maintenance_hours: upgrades, regression checks, tuning, and dependency bumps, as a monthly average
  • incident_hours: debugging stuck pools, crashes, and rendering regressions, as a monthly average
Self-hosted monthly cost
self_hosted = compute + supporting_services
            + (maintenance_hours × loaded_hourly_rate)
            + (incident_hours × loaded_hourly_rate)
Managed monthly cost (Screenshotly)
managed = price of the smallest plan where
          quota ≥ successful captures per month
          AND rate limit ≥ peak requests per minute
          AND the plan includes every feature you need

Run the comparison twice: once for a normal month and once for a month with a browser upgrade or an incident. Self-hosted cost is uneven, and the expensive months are the ones that decide whether it was worth it.

Assumptions Behind the Model

The model only holds if its inputs match how you would actually run each side. These are the assumptions it makes.

  • Workers are sized for peak, not average. Always-on workers cost the same whether they capture 10 pages or 10,000, so self-hosted compute is mostly a fixed monthly cost. Autoscaling lowers it but adds cold starts and more moving parts.
  • Memory per browser comes from your own URLs. Script-heavy pages and long full-page captures can need several times the memory of a simple page. Measure, don't guess.
  • Supporting services are priced separately from the workers: queue, storage for results, logs and metrics, and egress.
  • Engineering time uses a loaded hourly rate, including overhead rather than salary alone, averaged across the year and split between routine maintenance and incidents.
  • No cloud list prices are built in. Instance and container prices vary by provider, region, and commitment discount, so use your provider's pricing calculator with your measured memory and concurrency.
  • Managed prices are list prices, monthly or yearly, for successful captures only. Screenshotly has no automatic overage, so headroom has to be bought as a larger plan.
  • Above 50,000 captures a month there is no published Screenshotly plan. Treat that range as unpriced until you have a volume quote.

Screenshotly’s Side of the Equation

  • Only successful (2xx) captures use quota. Failed renders, validation errors, and timeouts don't count. Async jobs count once, when they succeed.
  • No automatic overage. At the quota, requests return 429 until the next period. There is no surprise bill, but you need headroom. You can also set a lower hard limit in account settings.
  • Feature gates are part of the price. PDF and HTML output, authenticated headers and cookies, async jobs, and webhooks need Basic or higher. Custom JavaScript, selector hiding, AI element removal, device mockups, and batches of up to 20 captures need Growth or higher. Regional proxies and WebM video need Scale. If you need custom JavaScript, the comparison starts at $59, not $14.
PlanMonthly priceYearly priceSuccessful capturesRequests / minute
Free$0—100 total (not monthly)5
Basic$14$1342,500 / month40
Growth$59$56612,000 / month80
Scale$199$1,91050,000 / month200

Effective cost per capture at full utilisation

This is arithmetic, not a benchmark, and it only holds if you use the whole quota. If you use half, the real per-capture cost doubles, so compare monthly totals rather than per-capture rates.

PlanMonthly billingYearly billing (per month)
Basic$14 ÷ 2,500 ≈ $0.0056$134 ÷ 12 ÷ 2,500 ≈ $0.0045
Growth$59 ÷ 12,000 ≈ $0.0049$566 ÷ 12 ÷ 12,000 ≈ $0.0039
Scale$199 ÷ 50,000 ≈ $0.0040$1,910 ÷ 12 ÷ 50,000 ≈ $0.0032

Engineering time that equals one plan

Engineering time dominates the self-hosted side, so it helps to ask how many hours a month equal the plan price. The hourly rates are example inputs. Substitute your own loaded cost.

PlanAt $50 / hourAt $100 / hourAt $150 / hour
Basic ($14)~17 minutes~8 minutes~6 minutes
Growth ($59)~71 minutes~35 minutes~24 minutes
Scale ($199)~4 hours~2 hours~80 minutes

If your team already spends more than that each month keeping the capture service running, before compute, the managed plan is cheaper on direct cost. If the service runs for months untouched and the compute is already paid for, self-hosting may well be cheaper. Both outcomes are real.

Does This Apply to Playwright?

Yes, for the cost side. Playwright drives a real browser that you host, so the cost inputs, the model, and the assumptions above apply unchanged. Its Docker documentation even recommends running Chromium containers with --ipc=host, because without it Chromium can run out of memory and crash. That is the same operational work Puppeteer needs.

The capability side differs in a few ways that can decide the comparison:

Playwright capabilityScreenshotly equivalentWhat it means for the decision
Chromium, Firefox, and WebKit enginesChromium onlyIf you must check rendering in Safari’s engine or Firefox, keep Playwright for that.
Playwright Test expect(page).toHaveScreenshot() visual comparisonCapture only; no diffingVisual regression suites that rely on built-in diffing stay in Playwright. An API can still supply images to your own diff step.
Saved login state with storageStatecookies and headers per request (Basic+)If you can express the session as cookies or a token, an API can capture it. Interactive logins stay in Playwright.
page.screenshot() with fullPage, clip, and PNG, JPEG, or WebPfullPage, clip, and format (all plans)Straight mapping.
mask, animations: 'disabled', and omitBackgroundhideSelectors (Growth+); no animation or transparency switchMasking maps to hiding selectors. Transparent backgrounds and paused animations have no direct equivalent.
Context options: viewport, deviceScaleFactor, colorScheme, timezoneId, userAgent, extraHTTPHeaderswidth/height, deviceScaleFactor (1–3), darkMode, timezone, userAgent, headersStraight mapping. Device presets set the viewport only; they don’t enable isMobile or hasTouch.
waitUntil: 'networkidle'waitForNetworkIdle: truePlaywright marks networkidle as discouraged for tests. For capture, Screenshotly’s waitForSelector is usually the more reliable readiness signal.

In short, Playwright users who mainly test across engines or rely on built-in visual diffs have more reason to keep self-hosting than Puppeteer users who only capture Chromium screenshots. For option-by-option code conversion, see the migration guide.

Migrating from Puppeteer or Playwright to a screenshot API · Visual regression testing guide

Limits to Check Before Switching

If any of these rule out your workload, keep Puppeteer or Playwright for it.

  • One public URL per request. Screenshotly rejects localhost, .local and .internal hostnames, private and link-local ranges, and other reserved addresses, and blocks subresources the page tries to load from them.
  • No multi-step interaction. It can inject cookies and headers (Basic+) or run up to 5,000 characters of javascript before capture (Growth+), but it is not a browser-automation runtime.
  • PDF is fixed at A4 with 1 cm margins and printed backgrounds. There is no Letter size, custom paper, header or footer template, or page-range option.
  • Navigation times out at 30 seconds. Pages that take longer to load won’t capture.
  • `waitForSelector` waits up to 10 seconds, then captures anyway with a logged warning rather than failing. If you need a hard failure when an element never appears, enforce it in your own code.
  • Fixed waits are capped at 10 seconds (delay ≤ 10,000 ms).
  • No custom browser flags, extensions, or arbitrary DevTools Protocol commands.

Where a Managed API Wins

  • The workload is "URL in, image out": thumbnails, link previews, documentation captures, archiving, monitoring snapshots, and PDF exports of public pages.
  • Your maintenance hours exceed the plan price. Use the engineering-time table above.
  • Traffic is bursty. You pay a flat plan instead of sizing workers for the peak, as long as the peak fits the plan’s requests-per-minute limit.
  • You capture third-party or user-submitted URLs. The SSRF exposure stays outside your network.
  • You want features that take time to build well: async jobs with idempotency keys and retries (Basic+), batches of up to 20 captures (Growth+), signed webhooks, retained delivery, device mockups, and AI element removal are request fields, not projects.

It doesn’t have to be all or nothing. A common split keeps Puppeteer or Playwright for flows that need interaction or private-network access and sends plain captures to the API. Each workload goes where it fits, and the self-hosted fleet shrinks to the work only it can do.

Decision Framework

Work through these in order.

1. Does the capture need multi-step interaction, a private network,
   in-perimeter rendering, or a non-Chromium engine?
   └── Yes → Self-host that workload. (Other workloads can still use an API.)

2. Does it need an output or wait the API can't provide?
   (custom PDF size or margins, loads over 30 s, hard-fail selector waits)
   └── Yes → Self-host that workload.

3. Fill in the cost model.
   Is self_hosted (normal month AND upgrade/incident month) < managed?
   ├── Yes, clearly → Self-hosting is a reasonable choice. Revisit at the next major upgrade.
   └── No, or it's close → Use the managed API; keep self-hosting only where steps 1–2 require it.

4. Does peak traffic fit the plan's requests-per-minute limit,
   and is monthly volume ≤ 50,000?
   └── No → Ask about volume, or keep a self-hosted fallback for the overflow.

Before filling in the numbers, run your top 20 URLs through the playground to check the output matches what you get today.

Try the playground · Plan limits and feature gates · Step-by-step migration guide

What You Are Comparing at Each Volume

Screenshotly prices are list prices for successful captures. Self-hosted costs depend on your concurrency, cloud provider, and engineering rate, so the right-hand columns list what to price rather than a guessed number.

Monthly volumeScreenshotlySelf-Hosted PuppeteerWhat decides it
Up to 100 total$0 (free allowance)A machine that can run Chrome, plus setup timeFor evaluation, the free allowance avoids any setup
Up to 2,500 / month$14 / month (Basic)At least one always-available worker, plus upgradesCompare $14 with the worker cost plus a few engineering hours a month
Up to 12,000 / month$59 / month (Growth)Workers for peak concurrency, a queue, retries, and monitoringDepends on how bursty captures are and who handles failures
Up to 50,000 / month$199 / month (Scale)A worker pool with autoscaling and on-callA team that already runs Chrome well may self-host for less
Over 50,000 / monthContact for volumeA tuned clusterSelf-hosting gets more competitive as volume grows and stays steady

Migration Walkthrough

Move capture-only code first and keep browser automation where it is. For code conversion, shadow mode, and rollout, see the step-by-step migration guide linked below.

  1. 1

    Find capture-only code paths

    Search for page.screenshot( and page.pdf( calls that only load a URL, wait, and capture. Flows that click, type, or log in stay on Puppeteer or Playwright.

  2. 2

    Replace the browser call with one HTTP request

    Map setViewport to width and height, fullPage to fullPage, and waitUntil: "networkidle0" to waitForNetworkIdle. The response body is the image.

    const res = await fetch('https://screenshotly.app/api/screenshot', {
      method: 'POST',
      headers: { 'x-api-key': process.env.SCREENSHOTLY_API_KEY, 'content-type': 'application/json' },
      body: JSON.stringify({ url, width: 1280, height: 800, fullPage: true, waitForNetworkIdle: true }),
    });
    if (!res.ok) throw new Error(`Capture failed: ${res.status}`);
    const png = Buffer.from(await res.arrayBuffer());
  3. 3

    Run both paths side by side

    Capture a sample of real URLs with both implementations and compare output before switching traffic.

  4. 4

    Retire the browser workers you no longer need

    Once capture-only traffic has moved, scale down the Chrome workers and queue that served it. Keep any that still run automation.

When Self-Hosted Puppeteer is actually the right call

Every tool has legitimate fits. Be honest with yourself — if any of these apply, stay with Self-Hosted Puppeteer.

  • Your capture is a step in browser automation: forms, OAuth, multi-page flows, or reading page state.
  • You need to capture localhost, staging, or other private-network URLs.
  • You need PDF page sizes, margins, or headers and footers other than A4 with 1 cm margins.
  • Compliance requires all rendering inside your own network.
  • You have steady, high volume and a team that already operates headless Chrome reliably.

Frequently Asked Questions

At what volume does self-hosting become cheaper than a managed API?

There is no universal crossover. Add up your monthly infrastructure cost (browser workers sized for peak concurrency, queue, storage, monitoring) and the engineering hours spent on upgrades, failures, and on-call, multiplied by your loaded hourly rate. Compare that total with the plan that covers your successful captures: $14 for 2,500, $59 for 12,000, or $199 for 50,000 a month.

Does this comparison also apply to Playwright?

Yes, for cost: Playwright also drives browsers you host, so the same cost inputs and model apply, and each Playwright version needs its own browser builds installed. On capability, Playwright adds Firefox and WebKit engines and Playwright Test’s toHaveScreenshot() visual comparison. If you rely on either, keep Playwright for that work; Screenshotly renders with Chromium and does not diff images.

Can I migrate incrementally?

Yes. Move capture-only code paths (thumbnails, link previews, reports of public pages) first and keep Puppeteer or Playwright for flows that need interaction. The two can coexist indefinitely.

Is it safer to render pages in my own VPC?

For first-party URLs you control, rendering in your own network is straightforward. For third-party or user-submitted URLs, a browser inside your network can be pointed at internal services, so you need egress controls and isolation. Screenshotly resolves each target and refuses private, loopback, and link-local addresses before rendering.

Which Puppeteer features have no Screenshotly equivalent?

Multi-step interaction, arbitrary page.evaluate() logic beyond the 5,000-character javascript field (Growth+), custom PDF page sizes and margins, private-network targets, and non-Chromium engines. Viewport size, device presets, full-page capture, selector and clip capture, wait conditions, headers, cookies, dark mode, user agent, and timezone are request fields.

Ready to switch to Screenshotly?

Every account includes 100 free captures. Paid plans start at $14 a month.

Related Reading

Other Comparisons