Stop manually creating Open Graph images. Use GrabShot's screenshot API to generate social media preview images from any URL or HTML template — dynamically, at scale.
Get Free API Key View DocsCreate an HTML template for your OG images, host it anywhere, and call GrabShot to screenshot it. Dynamic content? Pass variables via query parameters. Need 1,000 OG images? Batch them through the API.
// Generate an OG image from an HTML template
const response = await fetch('https://grabshot.dev/api/screenshot', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-API-Key': 'your-api-key'
},
body: JSON.stringify({
url: 'https://your-site.com/og-template?title=My+Blog+Post&author=Jane',
width: 1200,
height: 630,
format: 'png'
})
});
Design your OG template in HTML/CSS (the tools you already know), pass dynamic content via query params, and get a pixel-perfect image back.
Every social platform wants 1200×630. GrabShot captures at exactly the viewport you specify — no cropping, no guessing.
If you're screenshotting live pages for previews, the AI cleanup removes cookie banners and popups automatically (paid plans).
Cached results, global CDN-ready responses. Generate once, serve everywhere. Average response time under 3 seconds.
GrabShot's free tier gives you 25 screenshots per month — enough to test your OG image pipeline. Paid plans start at $9/month with AI cleanup and higher limits.
Free tier. No credit card. Just sign up, get your API key, and start building.
Get Your API Key →