Open Graph API · Free tier

Beautiful link previews
from one URL

Drop a Cardstock URL into your <meta> tag. Get a polished, on-brand social preview — rendered on the fly, no headless browser, no design work required.

Get your API key →GitHub

Try it live

Type anything below and see your OG image update in real-time.

Loading…
Copy this into your HTML
<meta property="og:image" content="https://cardstock.dev/v1/og?title=Beautiful+link+previews+from+one+URL&subtitle=One+API+call.+No+headless+browser.+Ships+in+minutes.&theme=light&key=YOUR_API_KEY" />
Get your API key →

Up and running in 5 minutes

1

Get an API key

Sign up free. No credit card required. The free tier covers 500 images/month.

2

Add the URL

Replace your og:image with a Cardstock URL. Pass title, subtitle, and theme as query params.

3

Ship it

Images are cached at the CDN edge. p95 under 150ms on repeat requests.

One line of HTML

<meta property="og:image"
      content="https://cardstock.dev/v1/og
        ?title=My+awesome+post
        &subtitle=A+short+description
        &theme=dark
        &key=YOUR_API_KEY" />