Unfurlkit Quickstart

Unfurlkit turns a URL into a 1200×630 social preview image. There's no SDK and nothing to install, so the steps below take about a minute.

1. Make an image

Open this in your browser:

https://unfurlkit.com/v1/basic.png?title=Hello%20world

You'll get a 1200×630 PNG with your title on it. title is required and can't be empty.

Now customize it. All of these are optional:

https://unfurlkit.com/v1/basic.png?title=Hello%20world&subtitle=unfurlkit.com&theme=light&accent=0ea5e9
Param What it does
title Required. Up to 120 characters (longer text is cut).
subtitle Up to 160 characters.
theme dark (default) or light.
accent 6-digit hex without #. Default 7c3aed.

Encode values in the URL (spaces as %20 or +). Unknown or invalid params return a 400 naming the param. The full list is in the API reference.

2. Add the meta tags

Put the URL in your page's <head>:

<meta property="og:image" content="https://unfurlkit.com/v1/basic.png?title=Hello%20world&subtitle=unfurlkit.com" />
<meta property="og:image:width" content="1200" />
<meta property="og:image:height" content="630" />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:image" content="https://unfurlkit.com/v1/basic.png?title=Hello%20world&subtitle=unfurlkit.com" />

On a real site, build the URL from each page's title in your template. In JavaScript:

const ogImage =
  'https://unfurlkit.com/v1/basic.png?' +
  new URLSearchParams({ title: page.title || 'My Site', theme: 'dark' }).toString();

Always keep a fallback so title is never empty. Framework guides: Next.js, Nuxt, Remix / React Router, Astro, SvelteKit, Gatsby, Docusaurus, Hugo, Eleventy, WordPress, Ghost.

3. Check it

Deploy, then paste your page URL into the Free OG Image Checker. It shows how the page will preview on X, LinkedIn, Facebook, WhatsApp, Slack, Discord and iMessage, and lists any missing tags. We don't store the URLs you check.

If a platform still shows an old image, it has cached your page. See OG image not showing.

4. Go Pro: sign your URLs

Every image URL needs your key, and Free keys carry a small "unfurlkit" watermark. With Pro ($9/mo or $90/yr: 10,000 renders a month, no watermark, custom fonts (Inter, Roboto, Playfair Display, JetBrains Mono) and logo), you sign URLs on your server so only you can make images on your account:

  1. Get your public key (pk_…) and secret key. After checkout, the success page (/checkout/success) shows your public key and secret key once. If you lose the secret, go to /account/recover, enter your email, and use the sign-in link (single use, expires in 15 minutes) to rotate your key and reveal a new secret once.
  2. Store the secret in an environment variable on your server or in CI. Never put it in browser code.
  3. Add k=<public key> and a signature s to each URL. Here's the Node version:
import { createHmac } from 'node:crypto';
const enc = (s) => encodeURIComponent(s).replace(/[!'()*]/g, (c) => '%' + c.charCodeAt(0).toString(16).toUpperCase());

export function signedOgUrl(params, publicKey, secretKey, path = '/v1/basic.png') {
  const query = Object.entries({ ...params, k: publicKey })
    .sort(([a, av], [b, bv]) => (a < b ? -1 : a > b ? 1 : av < bv ? -1 : av > bv ? 1 : 0))
    .map(([k, v]) => `${enc(k)}=${enc(String(v))}`)
    .join('&');
  const s = createHmac('sha256', secretKey).update(`${path}?${query}`).digest('base64url').slice(0, 16);
  return `https://unfurlkit.com${path}?${query}&s=${s}`;
}

// signedOgUrl({ title: 'Hello world', theme: 'dark' }, process.env.UNFURLKIT_PUBLIC_KEY, process.env.UNFURLKIT_SECRET_KEY)

A signature that doesn't verify still returns an image, not an error. A bad or missing signature gets the sign-up placeholder, not a watermarked unsigned render. A signature made with a rotated-out secret still renders with the watermark. Python and PHP versions are in Signing Pro URLs.

What counts, and limits

  • A render is counted only when a unique image is generated and wasn't already cached. Shares and cache hits don't count.
  • Every image URL needs your key. Get a free one at unfurlkit.com/signin; no card is needed.
  • Signed Free keys get 10 renders in total (no monthly reset). Over the limit, new images still render as a plain basic card with the small mark (not counted) (the free allowance doesn't reset).
  • Pro is 10,000 renders a month, resetting on your billing date. Past that there's no hard stop and no overage charge, and we may contact you about your usage.
  • Upgrade to Pro to remove watermarks from all your images. See pricing.

Right-to-left scripts such as Arabic and Hebrew aren't supported yet at launch.

See it rendered

Each picture below is made live by the link under it. Change the words in the link, open it in your browser, and you'll get a new image.

Dark preview image reading “Hello world”.
Your first image: just a title.
Image link
https://unfurlkit.com/v1/basic.png?title=Hello%20world
Dark preview image reading “Hello world”, with unfurlkit.com underneath.
Add a subtitle, like your site's name.
Image link
https://unfurlkit.com/v1/basic.png?title=Hello%20world&subtitle=unfurlkit.com
Light preview image with a teal accent bar, reading “Hello world”, with unfurlkit.com underneath.
Light theme with your own accent colour.
Image link
https://unfurlkit.com/v1/basic.png?title=Hello%20world&subtitle=unfurlkit.com&theme=light&accent=0d9488

Updated 2026-10-21

Try it freePricing