Skip to main content

Overview

This example demonstrates how to use Trigger.dev to generate dynamic Open Graph (OG) images using Vercel’s Satori. The task takes a title and image URL as input and generates a beautiful OG image with text overlay. This can be customized and extended however you like, full list of options can be found here.

Task code

trigger/generateOgImage.ts

Image example

This image was generated using the above task. OG Image

Testing your task

To test this task in the dashboard, you can use the following payload: