# 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](https://openai.com/index/dall-e-3/) from OpenAI&#x20;

<figure><img src="/files/VLgR3z6UI6D1q90duI2W" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
\=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](https://support.google.com/docs/answer/3093333?hl=en\&sjid=17638008653091531930-EU#null))

You can **retrieve** the generated image [**in your Google Drive** "Generated images" folder](https://drive.google.com/drive/search?ths=true\&q=gpt%20workspace%20generated%20images%20type:folder)
{% endhint %}

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

<figure><img src="/files/9sDiXQonlGsNrozoGrLr" alt=""><figcaption></figcaption></figure>

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

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

<table><thead><tr><th width="191">Parameter</th><th width="396">Description</th><th>Default</th></tr></thead><tbody><tr><td><code>prompt</code></td><td><p>the prompt describing the image you want to generate. (ex: "a cute dog wearing a baseball hat") </p><p><strong>required</strong></p></td><td>""</td></tr><tr><td><code>seed</code></td><td>Repeated requests with the same seed and parameters should return the same result</td><td>null</td></tr><tr><td><code>quality</code></td><td><code>standard</code> , <code>hd</code></td><td><code>standard</code></td></tr><tr><td><code>size</code></td><td><code>1024x1024</code> , <code>1792x1024</code> , <code>1024x1792</code></td><td><code>1024x1024</code></td></tr><tr><td><code>style</code></td><td><code>vivid</code> , <code>natural</code></td><td><code>vivid</code></td></tr><tr><td><code>bypassCache</code></td><td>Bypass the cache and query OpenAI again. The results will be differents than before.</td><td>false</td></tr></tbody></table>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://support.gpt.space/products/gpt-for-google-sheets/formulas/gpt_image-formula.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
