# Generate Open Graph Image **GET /og/{title}.png** Generates a custom Open Graph image (1200x630px) with the specified title and optional styling parameters. Perfect for social media previews. Note: The actual endpoint includes `.png` extension (e.g., `/og/My-Title.png`) ## Servers - Production: https://exelvi.xyz/api (Production) - Development: http://localhost:3000/api (Development) ## Parameters ### Path parameters - **title** (string) The main title text to display on the image (without .png extension) ### Query parameters - **theme** (string) Color theme for the image background - **fontSize** (string) Custom font size for the title (e.g., "120px"). If not specified, the font size is automatically calculated based on title length. - **caption** (string) Optional caption text displayed below the title - **captionFontSize** (string) Font size for the caption text - **images** (array[string(uri)]) URLs of images to embed in the OG image (max 180x180px each). Can be specified multiple times for multiple images. - **colors** (array[string]) Hex colors for the title gradient. Can be specified multiple times for multi-color gradients. Omit '#' prefix (e.g., "1d3a4d" not "#1d3a4d"). ## Responses ### 200 Successfully generated OG image #### Headers - **Content-Type** (string) - **Cache-Control** (string) Caching policy for the generated image #### Body: image/png (string(binary)) string(binary) ### 500 Internal Server Error #### Body: application/json (object) - **error** (string) Error message describing what went wrong [Powered by Bump.sh](https://bump.sh)