Templates Gallery
OG Engine ships with twelve built-in templates. Each template defines the visual structure, typography placement, and decorative elements. You choose the template once per request; it combines with your format, content, and style settings to produce the final image.
default
Section titled “default”The flagship template and the one used when template is omitted. Features a bold visual identity designed to look great on any social platform.
Layout elements:
- Subtle grid dot pattern background (adds depth without distraction)
- Gradient background from
style.gradient - Colored accent bar in the upper-left, driven by
style.accent - Tag rendered as a pill badge below the title
- Author line in the lower-left corner
- Supports
left,center, andbottomlayouts
Best for: Blog posts, documentation pages, SaaS marketing, any general-purpose OG card.
Works best with: og, linkedin, twitter formats.
{ "format": "og", "template": "default", "title": "Why TypeScript Makes Refactoring Painless", "description": "How the type system catches errors before they ship.", "tag": "Engineering", "author": "Jane Smith", "style": { "accent": "#38ef7d", "gradient": "void" }}social-card
Section titled “social-card”A minimal template that puts the text front and center. No grid, no decorative elements — just a bold headline that reads instantly at thumbnail scale in a social media feed.
Layout elements:
- Clean gradient background
- Title dominates the canvas at large size, horizontally centered
- Description rendered below in a muted color
- Thin accent-colored horizontal divider between title and description
- No author or tag elements
Best for: Social shares, product announcements, quote cards, tweet-to-image screenshots.
Works best with: twitter, square formats.
{ "format": "twitter", "template": "social-card", "title": "OG Engine 1.0 is live", "description": "Generate images in ~22ms. No browser required.", "style": { "accent": "#f59e0b", "layout": "center" }}blog-hero
Section titled “blog-hero”Designed for use with background images. Composites your photograph or illustration with a text overlay anchored to the lower portion of the canvas — the way editorial images work in modern publishing.
Layout elements:
- Background image fills the canvas (cover-crop)
- Dark overlay (controlled by
style.overlayOpacity) for text legibility - Text in the lower third of the canvas
- Tag pill above the title
- Author in a bottom-left position
- Grid pattern suppressed (image provides visual texture)
Best for: Articles with cover images, editorial content, newsletters with photography.
Works best with: og, twitter formats.
{ "format": "og", "template": "blog-hero", "title": "The Hidden Cost of Microservices", "description": "When monoliths are actually the right answer.", "tag": "Architecture", "author": "Jane Smith", "style": { "overlayOpacity": 0.65 }}When no background image is provided, blog-hero falls back to the style.gradient background with the text still anchored to the lower portion.
email-banner
Section titled “email-banner”A horizontal, CTA-oriented layout designed for email headers and newsletter banners. Uses the available horizontal space efficiently to present a title and a clear call-to-action element.
Layout elements:
- Title positioned on the left half of the canvas
- Accent-colored tag/CTA element on the right
- Author rendered as a small “from” label beneath the title
- Compact vertical profile — the design is optimized for horizontal formats
- Gradient background with high-contrast text
Best for: Email headers, newsletters, transactional emails, event invitations.
Works best with: og, linkedin formats (wide canvases).
{ "format": "og", "template": "email-banner", "title": "Your Weekly Engineering Digest", "description": "Top posts from the past 7 days.", "tag": "Read Now", "author": "The Pragmatic Engineer"}product-card
Section titled “product-card”An e-commerce-focused template for showcasing products with price, badge, and brand identity. Designed to work with a product image supplied via the images field.
Layout elements:
- Product image on the right half of the canvas
- Brand name and product title on the left
- Price displayed prominently in the accent color
- Optional badge (e.g. “New”, “Sale”) rendered as a pill in the top-left
- Dark gradient overlay on the image side for visual separation
Best for: E-commerce product shares, catalogue cards, promotional social posts.
Works best with: og, twitter formats.
Variables used: price, badge, brand
curl -X POST https://og-engine.com/render \ -H "Authorization: Bearer oge_sk_YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{ "format": "og", "template": "product-card", "title": "Minimal Leather Wallet", "description": "Hand-stitched full-grain leather. Made to last.", "variables": { "price": "$79", "badge": "New Arrival", "brand": "Nomad" }, "style": { "accent": "#f59e0b" } }' --output product.pngA conference and event template surfacing date, location, and speaker information alongside the event title.
Layout elements:
- Large event title at the top
- Date and location rendered as structured metadata below the title
- Speaker name and role in a dedicated block
- Accent-colored vertical bar on the left edge
- Clean dark background that works with or without a background image
Best for: Conferences, meetups, webinars, workshop announcements.
Works best with: og, linkedin formats.
Variables used: date, location, speaker, speakerRole
curl -X POST https://og-engine.com/render \ -H "Authorization: Bearer oge_sk_YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{ "format": "og", "template": "event", "title": "TypeScript Conf 2026", "description": "The premier TypeScript developer conference.", "variables": { "date": "October 3–4, 2026", "location": "Seattle, WA", "speaker": "Anders Hejlsberg", "speakerRole": "Creator of TypeScript" }, "style": { "accent": "#3b82f6" } }' --output event.pngtestimonial
Section titled “testimonial”A quote-focused template for social proof cards. Renders the quote prominently, with attribution (name, role, company) and an optional avatar image.
Layout elements:
- Large typographic opening quotation mark in the accent color
- Quote text at a readable but prominent size
- Attribution block at the bottom: name, role, company
- Avatar image (if provided via
images.avatar) rendered as a circle on the left of the attribution line - Subtle gradient background
Best for: Review cards, customer testimonials, pull-quote social posts.
Works best with: square, twitter formats.
Variables used: name, role, company
curl -X POST https://og-engine.com/render \ -H "Authorization: Bearer oge_sk_YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{ "format": "square", "template": "testimonial", "title": "OG Engine cut our image generation time from 660ms to 22ms. It was a drop-in replacement.", "variables": { "name": "Sarah Chen", "role": "Head of Engineering", "company": "Vercel" }, "style": { "accent": "#8b5cf6" } }' --output testimonial.pnggithub-repo
Section titled “github-repo”A developer-tool template modelled after GitHub repository cards. Displays owner, star count, primary language, and an optional avatar/logo image.
Layout elements:
- Repository name (from
title) as the headline - Description text below
- Owner name, star count, and language rendered as a metadata row with icons
- Avatar image (if provided via
images.avatar) in the top-left - Dark theme with monospace-style accent on the language badge
Best for: Open source project announcements, developer portfolio cards, “star this repo” social posts.
Works best with: og, twitter formats.
Variables used: owner, stars, language
curl -X POST https://og-engine.com/render \ -H "Authorization: Bearer oge_sk_YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{ "format": "og", "template": "github-repo", "title": "og-engine", "description": "Server-side image generation at ~22ms. No browser dependencies.", "variables": { "owner": "atypical-consulting", "stars": "4.2k", "language": "TypeScript" }, "style": { "accent": "#38ef7d" } }' --output repo.pngnews-article
Section titled “news-article”A media-oriented template styled after editorial news cards. Supports a category badge, publication date, and source name alongside a background image.
Layout elements:
- Background image fills the canvas with a strong dark overlay for legibility
- Category badge rendered in the accent color at the top
- Headline in a large, bold serif-adjacent weight
- Source and date as a small metadata line beneath the headline
- Bottom-anchored text layout so the image headline area is visible
Best for: News articles, editorial content, media publications, press release cards.
Works best with: og, twitter formats.
Variables used: source, date, category
curl -X POST https://og-engine.com/render \ -H "Authorization: Bearer oge_sk_YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{ "format": "og", "template": "news-article", "title": "EU Passes Open-Source AI Transparency Act", "description": "New regulation mandates disclosure of training data sources for AI systems deployed in Europe.", "variables": { "source": "The Register", "date": "April 10, 2026", "category": "Policy" }, "style": { "accent": "#ef4444", "overlayOpacity": 0.7 } }' --output news.pngpricing
Section titled “pricing”A SaaS pricing-card template designed to communicate plan value at a glance. Features a plan name, price, billing period, feature list, and a CTA label.
Layout elements:
- Plan name rendered as a pill badge at the top
- Price displayed in a very large size, with the billing period beside it in muted text
- Feature list (newline-separated string) rendered as checkmark bullet points
- CTA label in an accent-colored button at the bottom
- Clean light or dark background depending on
style.gradient
Best for: Pricing page social shares, upgrade prompts, plan comparison cards.
Works best with: og, square formats.
Variables used: plan, price, period, features, cta
curl -X POST https://og-engine.com/render \ -H "Authorization: Bearer oge_sk_YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{ "format": "og", "template": "pricing", "title": "Everything you need to ship faster.", "variables": { "plan": "Pro", "price": "€39", "period": "/ month", "features": "50,000 renders/mo\nWebP output\nBatch API\nPriority support", "cta": "Start free trial" }, "style": { "accent": "#38ef7d", "gradient": "void" } }' --output pricing.pngprofile-card
Section titled “profile-card”A personal or professional profile template. Combines name, role, company, and a short bio with an optional avatar image.
Layout elements:
- Avatar image (if provided via
images.avatar) as a large circle on the left - Name as the primary headline on the right
- Role and company rendered as a secondary line in the accent color
- Bio text below in a readable size
- Subtle gradient background with a soft decorative element
Best for: Speaker cards, author bios, team member spotlights, LinkedIn profile shares.
Works best with: twitter, square formats.
Variables used: role, company, bio
curl -X POST https://og-engine.com/render \ -H "Authorization: Bearer oge_sk_YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{ "format": "twitter", "template": "profile-card", "title": "Philippe Matray", "variables": { "role": "Founder", "company": "Atypical Consulting", "bio": "Building OG Engine — server-side image generation without a browser." }, "style": { "accent": "#38ef7d" } }' --output profile.pngannouncement
Section titled “announcement”A launch-oriented template for product releases, feature announcements, and milestones. Pairs a bold headline with a subtitle and optional CTA.
Layout elements:
- Full-canvas background image or gradient (when
images.backgroundis provided) - Dark overlay to ensure text legibility over background images
- Large centered headline
- Subtitle in a lighter weight below
- CTA label rendered in an accent-colored button at the bottom-center
- “Announcement” label or custom tag in the top-center
Best for: Product launches, feature releases, milestone announcements, waitlist pages.
Works best with: og, twitter, story formats.
Variables used: subtitle, cta
curl -X POST https://og-engine.com/render \ -H "Authorization: Bearer oge_sk_YOUR_KEY" \ -H "Content-Type: application/json" \ -d '{ "format": "og", "template": "announcement", "title": "OG Engine 1.0 is live", "tag": "Launch", "variables": { "subtitle": "Generate social images in ~22ms. No headless browser required.", "cta": "Read the announcement" }, "style": { "accent": "#38ef7d", "gradient": "aurora" } }' --output announcement.pngCompare Templates Side by Side
Section titled “Compare Templates Side by Side”Select a template in the playground below and see how the same content looks across different designs:
Next Steps
Section titled “Next Steps”- Formats & Templates Guide — format dimensions and which combinations work best
- Customizing Styles — accent, gradient, font, and layout options
- Background Images — compositing with the
blog-herotemplate