GPT_IMAGE formula

Generate images with =GPT_IMAGE

With GPT_IMAGE, generate thousands of AI images in one click with the Dall-E 3 image generation model from OpenAI

=GPT_IMAGE formula returns the link to the image not the image itself.

To display the image in Google Sheets, use the =IMAGE(...) formula (documented here)

You can retrieve the generated image in your Google Drive "Generated images" folder

You will need to Allow access to let =IMAGE formula fetch and display the image in your sheet

To get started, select a cell and input then use the following formula

=GPT_IMAGE(prompt, value, temperature, model, cache)

Parameter
Description
Default

prompt

the prompt describing the image you want to generate. (ex: "a cute dog wearing a baseball hat")

required

""

seed

Repeated requests with the same seed and parameters should return the same result

null

quality

standard , hd

standard

size

1024x1024 , 1792x1024 , 1024x1792

1024x1024

style

vivid , natural

vivid

bypassCache

Bypass the cache and query OpenAI again. The results will be differents than before.

false

Last updated