Developer API

OpenGraph Dynamic Image API

Generate high-DPI (1200×630) social preview images programmatically whenever links are shared on X, LinkedIn, Discord, or Slack.

GET /api/ogHigh-DPI 1200x630 Output
// Example: Fetch dynamic OpenGraph social preview image
const ogUrl = "https://milestonegenerator.com/api/og?title=" + encodeURIComponent("$50,000 ARR Reached!") + "&badge=" + encodeURIComponent("INDIE LAUNCH");

// Use in HTML head tag
<meta property="og:image" content={ogUrl} />

Query Parameters

title(string)
Main headline text displayed on card.
subtitle(string)
Subtitle or description line.
badge(string)
Upper badge pill text (e.g. "SaaS WIN").
value(string)
Target metric value (e.g. "$10,000 MRR").