OG Image Generator

A reusable Open Graph image API for besttext.com. Call GET /api/og with query parameters to generate a branded 1200×630 image for any page.

Playground

Page URL (auto-fill from a live page)

Fetches the page and parses title, highlight, subtitle, badge & tags from its HTML. Fields you fill in below still override the parsed values.

Generated Open Graph preview/api/og

Examples

API parameters

ParameterDescriptionDefault
urlURL mode: fetches the page and parses title (hero h1), highlight (span.hi), subtitle (meta description), badge ($X in free credits offer) and tags (hero pill) from its HTML. Explicit params override parsed values.(none)
hideURL mode only: comma-separated fields to skip when parsing, e.g. hide=badge,tags.(none)
titleMain headline. Use | for a manual line break (e.g. Hello|World); long titles also auto-wrap.Ringless Voicemail & SMS|That Makes Leads|Call You Back.
highlightSubstring of the title rendered in a yellow box.Call You Back.
subtitleGrey supporting line at the bottom.(empty — not rendered)
badgeYellow pill at the top.(empty — not rendered)
tagsComma-separated feature row. Empty string hides it.Ringless Voicemail,SMS,BULK DELIVERY
logoAbsolute URL to a logo image.(white besttext logo)
bg / accent / fg / muted / glowHex color overrides.#0A0140 / #F8E16D / #FFFFFF / #9BA0B5 / #4E71D9
width / heightImage dimensions in px.1200 / 630