OG Image Generator
A stateless, URL-driven endpoint that renders 1200×630 Open Graph images on demand. Drop the URL into your <meta property="og:image"> tag and the server handles rendering, caching, and delivery — no build step, no asset pipeline. Tune the title, author, avatar, and site label, then pick one of five presets.
AI instructions — paste into Claude / Cursor / ChatGPT
URL template — replace the highlighted tokens
https://anhtu.dev/tool/og-image-generate?title=YOUR_TITLE&author=&avatar=IMAGE_URL&websiteUrl=WEBSITE_URL&theme=THEME_NAME
YOUR_TITLE— required, URL-encoded string, up to 200 charsAUTHOR_NAME— optional, up to 80 charsIMAGE_URL— optional, absolute https URL to an image (≤ 2 MB)WEBSITE_URL— optional, shown top-left (host only, uppercased)THEME_NAME— one ofDark,Light,Gradient,Minimal,Hero
Meta tag (for <head>)
HTML <img>
Markdown