OpenAI Models in SheetAI
Use GPT-4o, GPT-3.5 Turbo, and other OpenAI models directly in Google Sheets with the SHEETAI function. Pass a model shorthand to switch between models instantly.
Available OpenAI Models
"4o"→GPT-4oPopular"4o-m"→GPT-4o MiniFast & Cheap"4"→GPT-4"t"→GPT-3.5 TurboDefault"t-16k"→GPT-3.5 Turbo 16K"o1-p"→o1-preview"o1-m"→o1-miniFormula Examples
A
1
=SHEETAI("Write a tagline for a coffee shop", 200, 0.7, "4o")
2
Brewed to perfection, served with soul.
A
1
=SHEETAI("Classify this review as positive or negative: " & B1, 50, 0, "4o-m")
2
Positive
A
1
=SHEETAI_TABLE("Top 5 programming languages by popularity", 1000, 0.4, "4")
2
Python | JavaScript | Java | C++ | Go ...
A
1
=SHEETAI("Translate to Spanish: " & A5, 500, 0.3, "t")
2
Bienvenido a nuestra tienda en linea.
A
1
=SHEETAI("Summarize this long article: " & A10, 2000, 0.5, "t-16k")
2
The article discusses three key trends in AI...
Which OpenAI model should I use?
Pick the right model based on your task and budget.
| Use case | Model | Why |
|---|---|---|
| Best quality output | GPT-4o "4o" | Latest flagship, highest quality across all tasks |
| Bulk processing (1000+ rows) | GPT-4o Mini "4o-m" | Fast, cheap, and still very capable |
| Complex reasoning & analysis | GPT-4 "4" | Strong reasoning, great for multi-step tasks |
| Cheapest option | GPT-3.5 Turbo "t" | Default model, lowest cost per token |
| Long documents | GPT-3.5 Turbo 16K "t-16k" | Handles longer context windows |
| Advanced reasoning | o1-preview "o1-p" | Chain-of-thought reasoning for hard problems |
Setup in 3 Steps
- Get your OpenAI API key
Go to platform.openai.com/api-keys and create a new secret key. See our step-by-step guide.
- Open the SheetAI sidebar
In Google Sheets, go to Extensions → SheetAI → Open Sidebar.
- Paste your API key
Click the gear icon in the sidebar, paste your OpenAI API key, and save.
Tip: Use =SHEETAI_MODELS() in any cell to see all available OpenAI models and their shorthand codes.