OG Image Generator API — Create Social Media Preview Images
Generate Open Graph (OG) social media preview images with custom title, description, and branding. Perfect for social sharing cards. Free API.
What is OG Image Generation?
Open Graph images are the preview images shown when a link is shared on social media platforms like Facebook, Twitter/X, LinkedIn, and Slack. The OG image generator creates professional social cards with customizable title, description, and branding. The generated image can be served dynamically from the og:image meta tag.
How to Use It
Call GET /api/v1/og-image?title=My+Site&description=Hello. Returns a PNG image with content-type image/png. Use the endpoint URL directly in your og:image meta tags for dynamic social cards.
Try it live
Test this endpoint in the interactive console
Open Console →
Frequently Asked Questions
What are the image dimensions?
Default is 1200×630 pixels, the recommended size for Open Graph images across all major social platforms.