Dynamic OG
Image API
Point og:image at a URL and every page gets its own branded 1200×630 link preview. No design tool, no build step, no account needed to start.
Unsigned URLs work for everyone and show a small imageat badge. Signed URLs are free with an account.
https://imageat.com/api/og?label=Engineering&site=yoursite.com&subtitle=Caching%2C+parallel+jobs+and+one+boring+config+change.&template=blog&theme=lime&title=How+we+cut+our+build+time+in+halfCopy-paste snippets
// app/blog/[slug]/page.tsx (Next.js App Router)
import type { Metadata } from "next"
export async function generateMetadata({ params }: { params: Promise<{ slug: string }> }): Promise<Metadata> {
const { slug } = await params
const post = await getPost(slug)
const og = new URL("https://imageat.com/api/og")
og.searchParams.set("template", "blog")
og.searchParams.set("title", post.title)
og.searchParams.set("subtitle", post.excerpt)
og.searchParams.set("site", "yoursite.com")
return {
title: post.title,
openGraph: { images: [{ url: og.toString(), width: 1200, height: 630 }] },
twitter: { card: "summary_large_image", images: [og.toString()] },
}
}Template gallery
Parameters
| Param | Value | Notes |
|---|---|---|
| template | blog | product | docs | event | quote | Default blog. |
| theme | lime | ocean | sunset | violet | paper | Default lime. |
| title | text, max 120 | Font size adapts to length. |
| subtitle | text, max 200 | Optional. |
| label | text, max 48 | Category, price, section, date or quote author. |
| site | text, max 60 | Your domain or brand. |
| image, logo | https URL | PNG, JPEG or GIF, up to 4 MB, public host. Others are skipped. |
| k, sig | key id, HMAC | Optional. Valid signature removes the badge. |
OG Image API: The imageat OG Image API returns a 1200×630 PNG Open Graph image for any GET request to https://imageat.com/api/og with template, title, subtitle, label, site, theme, image and logo query parameters. Images are cached by URL on the CDN. Unsigned URLs show a small imageat badge; URLs signed with an HMAC-SHA256 key from a free imageat account render without it.
How it works
- 01
Pick a template and theme and type your title in the URL builder.
- 02
Copy the image URL, or the Next.js, HTML, WordPress or Astro snippet that builds it per page.
- 03
Set it as og:image and twitter:image. Sign the URL with your free key to remove the badge.
Built for every page
Blogs
One og:image URL template per post, built from the post title and excerpt.
Product pages
Name, tagline, price badge and product photo in a consistent card.
Docs sites
Section and page title on every docs page, readable in Slack and Discord.
Events and quotes
Date and place on event cards; shareable quote cards with an avatar.