About this endpoint
What it does
Generates an Open Graph image and returns it as a PNG download. You provide the card content and optional styling in the request body; the response is the binary image payload.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| title | String | Yes | Primary headline drawn on the card. |
| bgColor | String | No | Background color as #RRGGBB (default #111827). |
| subtitle | String | No | Optional secondary line drawn in the accent color. |
| textColor | String | No | Title text color as #RRGGBB (default #F9FAFB). |
| accentColor | String | No | Accent bar and subtitle color as #RRGGBB (default #3B82F6). |
| description | String | No | Optional body text, word-wrapped at about 55 characters per line. |
Response
Returns a binary string response containing the generated PNG image. The output schema is a single string with binary format, so there is no JSON wrapper or named response field to read.