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
/api/ogExamples
API parameters
| Parameter | Description | Default |
|---|---|---|
| url | URL 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) |
| hide | URL mode only: comma-separated fields to skip when parsing, e.g. hide=badge,tags. | (none) |
| title | Main 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. |
| highlight | Substring of the title rendered in a yellow box. | Call You Back. |
| subtitle | Grey supporting line at the bottom. | (empty — not rendered) |
| badge | Yellow pill at the top. | (empty — not rendered) |
| tags | Comma-separated feature row. Empty string hides it. | Ringless Voicemail,SMS,BULK DELIVERY |
| logo | Absolute URL to a logo image. | (white besttext logo) |
| bg / accent / fg / muted / glow | Hex color overrides. | #0A0140 / #F8E16D / #FFFFFF / #9BA0B5 / #4E71D9 |
| width / height | Image dimensions in px. | 1200 / 630 |