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 valueModelCredits / tokenPlans
gemini (default)Gemini 3.1 Flash Lite Image (nano banana)6All plans
gptGPT Image 1 mini5All plans
openai/gpt-image-2GPT Image 215Paid plans only
google/gemini-3-pro-imageGemini 3 Pro Image30Paid plans only