Skip to content

GPT_IMAGE formula

With GPT_IMAGE, generate thousands of AI images in one click by selecting from several image generation models.

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)

ParameterDescriptionDefault
prompt

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

required

""
seedRepeated requests with the same seed and parameters should return the same resultnull
modelThe image model to use, see table belowgemini
qualityauto , high , medium , low (Gemini models only support auto)auto
sizeauto , 1024x1024 , 1536x1024 , 1024x1536auto
bypassCacheBypass the cache and query the image model again. The results will be differents than before.false

There is no style parameter.

model valueModelRelative costPlans
gemini (default)Gemini 3.1 Flash Lite Image (nano banana)lowestAll plans
gptGPT Image 1 minilowAll plans
openai/gpt-image-2GPT Image 2highPaid plans only
google/gemini-3-pro-imageGemini 3 Pro ImagehighestPaid plans only

Credits are charged at each model’s actual cost, so the premium models consume considerably more per image than the default.