Skip to content

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?

FeatureBenefit
⚡ Blazing FastImages generated in under 150ms
🎨 10+ TemplatesProfessional designs for every use case
🔧 Fully ProgrammableComplete control via simple REST API
🌐 UniversalWorks with any language or framework
💰 Generous Free Tier25 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.png

This generates a professional 1200×630 pixel image ready for Twitter, Facebook, LinkedIn, Discord, and more.

Available Templates

TemplateBest ForKey Features
Title + SubtitleBlog posts, articlesClean, versatile layout
Blog PostContent marketingAuthor avatar, reading time
Product CardE-commerce, SaaSPrice, ratings, badges
Profile CardTeam pages, directoriesAvatar, role, social proof
Real EstateProperty listingsPhoto, price, specs
E-commerce GridCollections, catalogsMulti-product layout
Stats CardDashboards, reportsMetrics, trends
EventWebinars, conferencesDate, time, speakers
Social ShareViral contentCTA buttons, engagement
Meme GeneratorMarketing memesBold captions

Getting Started

  1. Create an account — Free tier available
  2. Get your API key — Delivered instantly
  3. Make your first request — See results in seconds

Start Building →

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

FormatDimensionsUse Case
Open Graph1200×630Twitter, Facebook, LinkedIn
Instagram Stories1080×1920Stories, vertical
Square1080×1080Instagram 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?

Generate stunning Open Graph images programmatically.