GrabShot

Generate OG Images Automatically via API

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 Docs

How It Works

Create 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'
  })
});

Why Developers Choose GrabShot for OG Images

Dynamic Templates

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.

Consistent 1200×630

Every social platform wants 1200×630. GrabShot captures at exactly the viewport you specify — no cropping, no guessing.

AI Cleanup

If you're screenshotting live pages for previews, the AI cleanup removes cookie banners and popups automatically (paid plans).

Fast & Reliable

Cached results, global CDN-ready responses. Generate once, serve everywhere. Average response time under 3 seconds.

Common OG Image Workflows

Pricing

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.

Start Generating OG Images in 5 Minutes

Free tier. No credit card. Just sign up, get your API key, and start building.

Get Your API Key →