🎉 Free & unlimited — no credit card needed!  Get your API key free →
✦ Free & unlimited — no card needed

Dynamic OG Image API
for Developers

Stop losing clicks to blank link previews. Imago API generates perfect social cards for every page — automatically. Works with any framework.

Start Free — No Card Needed See it work →

✓ Free forever · ✓ No credit card · ✓ Unlimited images · ✓ Images in <300ms

Used by developers building with Next.js · Gatsby · Express · Rails · Django · FastAPI

< 300ms
avg generation time
29 templates
minimal · gradient · branded
1 line
curl request to OG image
1200×630
pixel-perfect output
Browse all 29 templates →
Live Preview

This is what your users see when they share your links on Twitter, Slack, or LinkedIn. One API call. Zero design work.

imagoapi.com/api/og/generate — POST with title, template, api_key
WHAT'S NEW
Introducing v2.0 — Faster,
smarter OG image generation
The fastest OG image API on the planet. Generate beautiful social cards in under 300ms. Trusted by developers worldwide.

Dead simple.
One request. Done.

No SDKs required. No auth flows. Just pass your content as query params and get back a ready-to-use image URL. Works with any language, any framework.

  • Pass title, description, and template as params
  • Get back a permanent image URL
  • Embed directly in your <meta og:image> tag
  • Works in Next.js, Express, Django, Rails — anything
  • CDN-cached for lightning-fast delivery
bash — curl
# Generate an OG image in one call
curl -X POST "https://imagoapi.com/api/og/generate" \
  -d 'title=My Awesome Product' \
  -d 'description=The best tool for indie hackers' \
  -d 'template=gradient' \
  -H 'Authorization: Bearer YOUR_API_KEY'

# Response:
{
  "id": "img_k7x9p2mq",
  "url": "https://imagoapi.com/api/images/img_k7x9p2mq",
  "width": 1200,
  "height": 630,
  "template": "gradient",
  "createdAt": "2026-03-07T09:00:00Z"
}
javascript — Next.js
// pages/api/og.js — Next.js meta tag
// Pre-generate via POST /api/og/generate, then embed the returned URL
const imageUrl = `https://imagoapi.com/api/images/YOUR_IMAGE_ID.png`
  + new URLSearchParams({
      title: 'My Blog Post Title',
      description: 'A short description',
      template: 'minimal'
    });

// Use directly in your <Head>
<meta property="og:image" content={imageUrl} />

Up and running in 2 minutes

No design tools. No puppeteer setup. No headaches.

1

Get your API key

Sign up and instantly receive your API key. No credit card required. Free & unlimited.

2

Make a request

Call POST /api/og/generate with your title, description and template. That's it.

3

Embed the image

Use the returned URL in your og:image meta tag. Perfect cards every time.

29 templates. All ready to ship.

Pick the vibe that matches your brand — 29 templates and counting.

minimalist
Clean, readable,
no-nonsense.
Perfect for blogs, docs, and anything where content is king.
Minimal template=minimal
🚀
Bold and vibrant.
Built to stand out.
Stops the scroll on any timeline. Emoji supported.
Gradient template=gradient
✦ YOUR BRAND
Dark, polished,
professional.
Developer-focused aesthetic with subtle glow effects.
Branded template=branded

Everything you need.
Nothing you don't.

Batch Generation

Generate up to 10 OG images in a single API call. Perfect for bulk content pipelines and scheduled jobs.

POST /api/og/batch
🔔

Webhooks

Get notified the moment an image is generated. HMAC-SHA256 signed payloads so you know it's really us.

POST /api/webhook
📊

API History

Every call logged. Track usage, debug failed requests, and monitor generation times — all from your dashboard.

GET /api/history
View full API docs →

Your brand.
Your templates.

Don't want to use our presets? Build your own. Define the layout, colors, fonts, and placeholders — then generate images via the same API. Your template, your rules.

  • Visual template builder — no code needed
  • Save and reuse across all your projects
  • Use via API just like built-in templates
  • Available on all paid plans
Open Template Builder →
// Use your custom template
const image = await fetch('https://imagoapi.com/api/og/generate', {
method: 'POST',
body: JSON.stringify({
api_key: 'your_key',
template: 'my-brand-template', // your custom one
title: 'Launch Day 🚀',
description: 'We just shipped something big'
})
})
"Imago API saved us hours every sprint. We went from hand-crafting Figma exports to shipping OG images in 20 minutes flat. It's stupid simple."
🧑‍💻
Mark D.
Indie Hacker
"Finally an API that does exactly what it says and nothing more. No config hell. No puppeteer nightmares. Just beautiful OG images on demand."
👩‍💼
Sarah K.
SaaS Founder
"Integrated this into our Next.js blog in under 5 minutes. The gradient template looks insanely good on Twitter. My co-founder thought I hired a designer."
🦄
Alex F.
Frontend Dev
"We used to skip OG images because it was too much work. Now we generate them automatically per post. Our social click-through went up noticeably."
📈
Tom V.
Growth Engineer
"I've tried building this in-house with puppeteer. Absolute nightmare. Imago API just works, handles all the hard parts, and costs less than a coffee a month."
Dan O.
Platform Engineer
"Set up in 5 minutes. Our link previews went from blank tiles to branded cards. Works perfectly."
🚀
Priya M.
Solo Developer
"Imago API saved us hours every sprint. We went from hand-crafting Figma exports to shipping OG images in 20 minutes flat. It's stupid simple."
🧑‍💻
Mark D.
Indie Hacker
"Finally an API that does exactly what it says and nothing more. No config hell. No puppeteer nightmares. Just beautiful OG images on demand."
👩‍💼
Sarah K.
SaaS Founder
"Integrated this into our Next.js blog in under 5 minutes. The gradient template looks insanely good on Twitter. My co-founder thought I hired a designer."
🦄
Alex F.
Frontend Dev
"We used to skip OG images because it was too much work. Now we generate them automatically per post. Our social click-through went up noticeably."
📈
Tom V.
Growth Engineer
"I've tried building this in-house with puppeteer. Absolute nightmare. Imago API just works, handles all the hard parts, and costs less than a coffee a month."
Dan O.
Platform Engineer
"Set up in 5 minutes. Our link previews went from blank tiles to branded cards. Works perfectly."
🚀
Priya M.
Solo Developer

Simple pricing

Free forever. No plans, no tiers, no credit card.

Get your free API key →
Used For

OG imagesSocial cardsTwitter cardsLinkedIn previewsDiscord embedsSlack link previews

FAQ

Frequently Asked Questions

An Open Graph image (og:image) is the preview image shown when you share a link on Twitter, LinkedIn, Slack, or Discord. Dynamic OG images change per page — showing the actual title, description, and branding of each page rather than a static fallback.
Send a POST request with your title, description, and template choice. We render a 1200×630px image and return a URL. Drop that URL into your og:image meta tag. That's it.
Yes — completely free, unlimited image generation. No credit card required, no hidden limits.
Bannerbear starts at $49/mo. Imago API is completely free — no monthly fee. Both generate dynamic images via API. Imago is purpose-built for OG images and social cards with a simpler setup.
Any framework that can make an HTTP request — Next.js, Nuxt, SvelteKit, plain HTML, Python, PHP, Ruby, etc. See the docs for framework-specific examples.
Get Started Today

Your links deserve better
than a grey box.

Every shared link without an OG image is a click you didn't get. Fix it in 5 minutes — free, no card needed.

Start Free — No Card Needed Check your site first →

✓ Free forever · ✓ Unlimited images · ✓ No credit card