Appearance
OG Image API
Generate stunning Open Graph images programmatically with a simple API call.
OG Image API is the developer-first service for creating professional social share images. Perfect for blogs, SaaS products, e-commerce sites, marketplaces, and any platform needing dynamic, branded preview images.
Why Choose OG Image API?
| Feature | Benefit |
|---|---|
| ⚡ Blazing Fast | Images generated in under 150ms |
| 🎨 10+ Templates | Professional designs for every use case |
| 🔧 Fully Programmable | Complete control via simple REST API |
| 🌐 Universal | Works with any language or framework |
| 💰 Generous Free Tier | 25 images/month free forever |
Quick Example
bash
curl -X POST https://ogimageapi.io/api/generate \
-H "Content-Type: application/json" \
-H "X-API-Key: og_your_api_key_here" \
-d '{
"title": "How to Build a SaaS in 2024",
"subtitle": "A complete guide for indie hackers",
"author_name": "Jane Developer",
"template": "blog",
"theme": "dark"
}' \
--output my-og-image.pngThis generates a professional 1200×630 pixel image ready for Twitter, Facebook, LinkedIn, Discord, and more.
Available Templates
| Template | Best For | Key Features |
|---|---|---|
| Title + Subtitle | Blog posts, articles | Clean, versatile layout |
| Blog Post | Content marketing | Author avatar, reading time |
| Product Card | E-commerce, SaaS | Price, ratings, badges |
| Profile Card | Team pages, directories | Avatar, role, social proof |
| Real Estate | Property listings | Photo, price, specs |
| E-commerce Grid | Collections, catalogs | Multi-product layout |
| Stats Card | Dashboards, reports | Metrics, trends |
| Event | Webinars, conferences | Date, time, speakers |
| Social Share | Viral content | CTA buttons, engagement |
| Meme Generator | Marketing memes | Bold captions |
Getting Started
- Create an account — Free tier available
- Get your API key — Delivered instantly
- Make your first request — See results in seconds
Use Cases
Content Platforms
Automatically generate preview images for every blog post, article, or page. No more manual design work.
E-commerce
Dynamic product cards that update with real-time pricing, stock status, and promotional badges.
SaaS Applications
Shareable dashboards, user profiles, and achievement cards that look great when shared.
Real Estate
Property listings with photos, prices, and key details optimized for social sharing.
Events & Marketing
Promotional images for webinars, product launches, and marketing campaigns.
Supported Output Formats
| Format | Dimensions | Use Case |
|---|---|---|
| Open Graph | 1200×630 | Twitter, Facebook, LinkedIn |
| Instagram Stories | 1080×1920 | Stories, vertical |
| Square | 1080×1080 | Instagram posts |
API Features
- POST JSON → Get PNG — Simple request/response
- Dynamic text — Auto-wrapping, smart sizing
- Remote images — Load from any URL
- Custom fonts — Pro plan feature
- Signed URLs — Direct image access
- Template IDs — Save custom configurations
Need Help?
- 📖 API Reference — Complete endpoint documentation
- 💻 Code Examples — Copy-paste examples for your stack
- 🎨 Templates Guide — Visual guide to all templates
- ❓ FAQ — Common questions answered
- 📧 Support — We're here to help