Skip to main content
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