Capture screenshots from Cloudflare Workers with a single fetch call. No Puppeteer, no Browser Rendering API quota, no headless browser dependencies.
Scaffold a new Cloudflare Worker project using the Wrangler CLI:
Store your ShotLayer API key as a Cloudflare secret so it's available at runtime:
Get a free API key at shotlayer.dev -- no credit card required.
Replace the default worker code with a screenshot proxy that calls ShotLayer:
src/index.tsMake sure your wrangler.toml is set up with the correct settings:
Deploy your Worker and test it with a simple curl command:
Cloudflare's Browser Rendering API requires a paid Workers plan and has limited concurrency. ShotLayer works on any plan, handles the browser infrastructure for you, and scales automatically.
Get a free API key and deploy your Worker in under 5 minutes.
Get API Key Free →