OpenAI
Image Tasks
These are the docs for Trigger.dev v2 which will be deprecated on January 31st, 2025. You probably want the v3 docs.
Given a prompt and/or an input image, the model will generate a new image. See the Image generation guide and the Official OpenAI docs.
create()
Creates an image given a prompt. Official OpenAI Docs
example.ts
backgroundCreate()
Creates a an image given a prompt, but runs the request in the background using io.backgroundFetch()
example.ts
edit()
Creates an edited or extended image given an original image and a prompt. Official OpenAI Docs
example.ts
createVariation()
Creates a variation of a given image. Official OpenAI Docs
example.ts