Generate a social card image
generate_social_imageCreate an Open Graph image for shared links from a title and optional subtitle, site label, and logo; returns a seven-day link plus the image.
Instructions
Creates an Open Graph image, the card shown when a link is shared, from a title and an optional subtitle, site label and logo. Returns a link valid for seven days and the image itself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bg | No | Background colour as six hex digits, overriding the theme. | |
| font | No | `titillium`, `system` or `serif`. | titillium |
| logo | No | Public URL of a PNG, JPEG, WebP, GIF or SVG logo, up to 512 KB. | |
| site | No | Short label shown at the bottom, for example your domain, up to 60 characters. | |
| size | No | Pixel size. | 1200x630 |
| theme | No | `light` or `dark`. | light |
| title | Yes | Main text, up to 120 characters. | |
| accent | No | Accent colour as six hex digits. | ff6700 |
| format | No | `png` (default), `jpeg` or `webp`. | png |
| subtitle | No | Secondary line, up to 200 characters. | |
| template | No | `card` (accent bar and logo), `minimal` (centred) or `split` (text beside an accent panel). | card |