Free with an account · in your browser

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.

Template
Theme

Unsigned URLs work for everyone and show a small imageat badge. Signed URLs are free with an account.

OG image preview: How we cut our build time in half
Image URL
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+half

Copy-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

ParamValueNotes
templateblog | product | docs | event | quoteDefault blog.
themelime | ocean | sunset | violet | paperDefault lime.
titletext, max 120Font size adapts to length.
subtitletext, max 200Optional.
labeltext, max 48Category, price, section, date or quote author.
sitetext, max 60Your domain or brand.
image, logohttps URLPNG, JPEG or GIF, up to 4 MB, public host. Others are skipped.
k, sigkey id, HMACOptional. 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

  1. 01

    Pick a template and theme and type your title in the URL builder.

  2. 02

    Copy the image URL, or the Next.js, HTML, WordPress or Astro snippet that builds it per page.

  3. 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.

OG Image API FAQ

Set your page's og:image to https://imageat.com/api/og?template=blog&title=Your+title (URL-encode the values). Add twitter:card summary_large_image and twitter:image with the same URL so X shows a large card.

Related tools