Guide
Astro Open Graph images
In Astro, set openGraph.images (or raw meta) to a generated URL. Proxy through your own endpoint so the API key stays server-side.
---
const title = Astro.props.title;
const img = new URL("https://ogstamp.com/api/og");
img.searchParams.set("title", title);
img.searchParams.set("theme", "forest");
---
For production volume, call OG Stamp from an Astro server endpoint with Authorization: Bearer ogs_…. Credits: pricing. Also see vs Vercel OG.