Capture screenshots from Vercel Edge Functions with low latency. No headless browser, no cold starts -- just a fetch call to ShotLayer's API from the edge.
Set your ShotLayer API key as an environment variable in your Vercel project settings, or add it via the CLI:
Get a free API key at shotlayer.dev -- no credit card required.
Create an edge function that proxies screenshot requests to ShotLayer. The function accepts a url query parameter and returns a PNG image.
Deploy your project and test the edge function by passing any URL:
Edge functions run close to your users. Combined with ShotLayer's sub-2-second rendering and the 1-hour cache, most requests resolve in milliseconds after the first capture.
Get a free API key and deploy your first edge function in minutes.
Get API Key Free →