> For the complete documentation index, see [llms.txt](https://support.gpt.space/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://support.gpt.space/products/gpt-for-google-sheets/formulas/gpt-formula.md).

# GPT formula

## Using the =GPT() Formula

With GPT for Sheets, you can effortlessly craft attention-grabbing ad copy, taglines, and subject lines that perfectly align with your brand, captivating and retaining your customers' interest.

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

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

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

<table><thead><tr><th width="191">Parameter</th><th width="446">Description</th><th>Default</th></tr></thead><tbody><tr><td><code>prompt</code></td><td>the prompt describing the data you want to generate. (ex: "write a tagline for a waterproof t-shirt brand")</td><td>""</td></tr><tr><td><code>value</code></td><td>The cell you are referring to in your prompt (ex: A1)</td><td>null</td></tr><tr><td><code>temperature</code></td><td>Between 0 (not creative) and 2 (very creative)</td><td>0</td></tr><tr><td><code>model</code></td><td><code>standard</code> or <code>advanced</code> (gpt-4o-mini or gpt-4o)</td><td><code>standard</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>
