# =GPT() Formula Reference for Google Sheets

> Syntax, parameters, and examples for the GPT Mate =GPT(prompt, input, model) formula, which returns a single AI response in one spreadsheet cell.

- Source: https://www.8apps.co/docs/gpt-mate/using-gptmate/gpt
- Markdown: https://www.8apps.co/docs/gpt-mate/using-gptmate/gpt.md
- Language: en

---
# GPT

The `GPT()` function generates a single AI-powered response in a single cell.
It’s ideal for summaries, messages, explanations, short answers, or any quick one-off prompt.

## Formula Syntax

=GPT(prompt, [input], [model])

- **prompt(required)** : The instruction or question you want the AI to respond to. (e.g., "Create a weekly workout schedule" or "Summarise the benefits of meditation.")
- **input(optional)**: A cell or range used to provide extra context.
- **model(optional)** : AI model like `gpt-5`, `gemini-2.5-flash`, or `claude-sonnet-4-6`. Defaults to your settings if not provided.

## Example(s)

### Summarise a concept

```plaintext
=GPT("Summarise the benefits of meditation.")
```

### Personalised email using input cell

```plaintext
=GPT("Write a thank you note for the customer below.", A2)
```

### Custom model with dynamic input

```plaintext
=GPT("Suggest a motivational quote based on the theme below.", B2, "gpt-4o")
```

:::tip
Perfect for short-form generation tasks like emails, answers, and summaries. For lists or tables, use GPTLIST() or GPTTABLE() instead.
:::
