Generate branded social cards for every Hugo post automatically. No JavaScript required.
Get StartedWorks natively with Hugo's Go templating—no JavaScript or external dependencies.
Use Hugo variables like .Title directly in your image generation.
Compatible with GitHub Pages, Netlify, Cloudflare, and self-hosted deployments.
{{/* layouts/partials/og-image.html */}}
{{ $title := .Title | urlquery }}
{{ $key := getenv "IMAGO_API_KEY" }}
{{ $ogUrl := printf "https://imagoapi.com/api/og/generate?title=%s&template=modern&api_key=%s" $title $key }}
<meta property="og:image" content="{{ $ogUrl }}" />
<meta name="twitter:image" content="{{ $ogUrl }}" />
<meta name="twitter:card" content="summary_large_image" />
Join thousands of developers using Imago API for stunning OG images.
Start Building Free