SheetAI

xAI Grok Models in SheetAI

Use Grok 3 and Grok Beta directly in Google Sheets with the SHEETAI function. Grok models are built by xAI and offer strong performance across a variety of tasks.

Available xAI Models

"grok-3"→Grok 3Latest
"grok-beta"→Grok Beta / Grok 2

Formula Examples

A
1
=SHEETAI("Best practices for SEO in 2024", 1000, 0.4, "grok-3")
2
1. Focus on user intent 2. Optimize page speed 3. Build quality backlinks...
A
1
=SHEETAI("Write a product description for: " & A2, 300, 0.7, "grok-3")
2
Introducing the sleek, all-new wireless earbuds designed for...
A
1
=SHEETAI("Classify this sentiment: " & B5, 50, 0, "grok-beta")
2
Positive

Which Grok model should I use?

Pick based on your needs.

Use caseModelWhy
Best quality & latest featuresGrok 3 "grok-3"Latest model, strongest performance
General tasks & cost savingsGrok Beta "grok-beta"Solid performance, more affordable

Setup in 3 Steps

  1. Get your xAI API key

    Go to console.x.ai and generate an API key from your dashboard.

  2. Open the SheetAI sidebar

    In Google Sheets, go to Extensions → SheetAI → Open Sidebar.

  3. Paste your API key

    Click the gear icon in the sidebar, paste your xAI API key, and save.

Tip: Use =SHEETAI_MODELS() in any cell to see all available models including Grok and their shorthand codes.