[Integrations](https://spiral.ai/integrations) › [Windsurf](https://spiral.ai/integrations/windsurf) › [Grok Latest](https://spiral.ai/integrations/windsurf/grok-latest)

# How to Use Grok Latest in Windsurf

Grok Latest suits coding, document analysis, and tasks that need several reasoning steps. Unlike Grok 4.7, it follows the newest Grok model, so behavior and limits can change as the alias updates.

|  |  |
| --- | --- |
| Model | Grok Latest |
| Available through | OpenRouter |
| Category | LLM |
| Price | Up to $0.03204 per run at the default inputs. $2.60 per 1M input tokens, $7.80 per 1M output tokens. |
| Returns | text, json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Grok Latest in Windsurf

- Use Grok Latest to investigate the failing tests in this repository. Trace the failure to its cause, make the smallest justified fix, and run the relevant tests. Report the cause, changed files, and verification results.
- Use Grok Latest to compare the current authentication code with the requirements in this project's documentation. List confirmed mismatches with file references, then propose fixes without changing public interfaces.
- Use Grok Latest to plan a refactor of duplicated validation logic in this repository. Compare two approaches, identify affected callers, and recommend one with acceptance criteria before editing.
- Use Grok Latest to review this branch for logic errors. Focus on boundary conditions and state transitions, cite the relevant code, and give a concrete failing example for each finding.
- Use Grok Latest to draft a migration guide from this project's old interface to its current interface. Read the implementation and examples, include before-and-after code, and flag any behavior you cannot verify.

## How to set up Grok Latest in Windsurf

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the server**: Open the Customize page from the Agents window and click MCPs. Under This computer, open the config file, or edit it directly: `~/.config/devin/mcp_config.json` on macOS and Linux, `%APPDATA%\devin\mcp_config.json` on Windows. Add this:

```json
{
  "mcpServers": {
    "spiral": {
      "url": "https://api.spiral.ai/mcp"
    }
  }
}
```

2. **Sign in**: Click Authenticate on the Spiral server in Customize › MCPs, or let the agent call Spiral once: your browser opens. Sign in to Spiral, pick the organization and click Authorize. No API key.

```bash
devin mcp login spiral
```

3. **Check it**: Spiral is listed under This computer in Customize › MCPs. From the terminal:

```bash
devin mcp list
```

### Use the Spiral skill

1. **Send Windsurf this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run Grok Latest**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "openrouter",
    "model": "~x-ai/grok-latest",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

Then paste one of the prompts above: Windsurf finds Grok Latest on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/windsurf

## Grok Latest tools and prices

- [xAI: Grok Latest](https://spiral.ai/tools/openrouter/~x-ai/grok-latest) (OpenRouter): Up to $0.03204 per run at the default inputs. $2.60 per 1M input tokens, $7.80 per 1M output tokens.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| seed |  | — |  |
| stop |  | — |  |
| tools |  | — |  |
| top_k | 0 to … | — |  |
| top_p | 0 to 1 | — |  |
| logprobs |  | — |  |

## What can you do with Grok Latest in Windsurf?

Grok Latest can help turn a repository issue into a proposed fix and verification plan. Give it the relevant files, reproduction steps, and acceptance criteria so its analysis has a concrete target.

### Fix bugs across a codebase

Have Grok Latest trace a reported failure through related functions, propose a focused patch, and verify it against the reproduction steps.

### Plan a refactor

Ask Grok Latest to compare implementation approaches, identify dependencies, and produce a migration plan with explicit acceptance criteria.

### Compare long technical proposals

Give Grok Latest the proposal text and decision criteria. Request a comparison that ties each recommendation to supporting passages.

### Draft a decision memo

Turn supplied research and meeting notes into a memo with a recommendation, supporting evidence, unresolved questions, and next actions.

### Outline a presentation

Ask Grok Latest to turn a technical brief into a slide-by-slide narrative with speaker notes and evidence for each central claim.

### Review quantitative reasoning

Provide a calculation, its assumptions, and the relevant data. Have Grok Latest check units, test boundary cases, and explain discrepancies.

### Synthesize recurring research updates

Compare newly supplied source excerpts with a previous summary. Ask Grok Latest to identify changed conclusions and explain which evidence caused each change.

## Overview

- [OpenRouter](https://spiral.ai/providers/openrouter)
- [All Windsurf guides](https://spiral.ai/integrations/windsurf)

## Grok Latest in other agents

- [Amp](https://spiral.ai/integrations/amp/grok-latest)
- [ChatGPT](https://spiral.ai/integrations/chatgpt/grok-latest)
- [Claude](https://spiral.ai/integrations/claude-desktop/grok-latest)
- [Claude Code](https://spiral.ai/integrations/claude-code/grok-latest)
- [Cline](https://spiral.ai/integrations/cline/grok-latest)
- [Codex](https://spiral.ai/integrations/codex/grok-latest)
- [Cursor](https://spiral.ai/integrations/cursor/grok-latest)
- [Devin](https://spiral.ai/integrations/devin/grok-latest)
- [dots](https://spiral.ai/integrations/dots/grok-latest)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/grok-latest)
- [Gemini](https://spiral.ai/integrations/gemini/grok-latest)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/grok-latest)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/grok-latest)
- [goose](https://spiral.ai/integrations/goose/grok-latest)
- [Grok](https://spiral.ai/integrations/grok/grok-latest)
- [Grok Build](https://spiral.ai/integrations/grok-build/grok-latest)
- [Hermes](https://spiral.ai/integrations/hermes/grok-latest)
- [Instinct](https://spiral.ai/integrations/instinct/grok-latest)
- [Manus](https://spiral.ai/integrations/manus/grok-latest)
- [Muse](https://spiral.ai/integrations/muse/grok-latest)
- [Muse Code](https://spiral.ai/integrations/muse-code/grok-latest)
- [n8n](https://spiral.ai/integrations/n8n/grok-latest)
- [Notion](https://spiral.ai/integrations/notion/grok-latest)
- [OpenClaw](https://spiral.ai/integrations/openclaw/grok-latest)
- [opencode](https://spiral.ai/integrations/opencode/grok-latest)
- [Perplexity](https://spiral.ai/integrations/perplexity/grok-latest)
- [Raycast](https://spiral.ai/integrations/raycast/grok-latest)
- [VS Code](https://spiral.ai/integrations/vscode/grok-latest)
- [Zapier](https://spiral.ai/integrations/zapier/grok-latest)

## More Windsurf guides

- [Grok 4.7](https://spiral.ai/integrations/windsurf/grok-4-7)
- [Hermes 4 405B](https://spiral.ai/integrations/windsurf/hermes-4-405b)
- [Grok 4.6](https://spiral.ai/integrations/windsurf/grok-4-6)
- [Hy-MT2-1.8B](https://spiral.ai/integrations/windsurf/hy-mt2-1-8b)
- [Grok 4.5](https://spiral.ai/integrations/windsurf/grok-4-5)
- [Hy-MT2-30B-A3B](https://spiral.ai/integrations/windsurf/hy-mt2-30b-a3b)

## Questions about Grok Latest in Windsurf

**Can Windsurf use Grok Latest?**

Yes. Add Spiral to Windsurf as an MCP server, and Windsurf can find and run Grok Latest like any built-in tool.

**How much does Grok Latest cost in Windsurf?**

Up to $0.03204 per run at the default inputs. $2.60 per 1M input tokens, $7.80 per 1M output tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Windsurf plan is separate.

**Do I need an OpenRouter account to use Grok Latest in Windsurf?**

No. Spiral runs Grok Latest on its own OpenRouter account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Grok Latest in Windsurf?**

About two minutes: add the server, then sign in, then check it.

**Does Windsurf wait while Grok Latest runs?**

Grok Latest runs in the background. Windsurf starts the run, checks on it and gives you the text, json when it's ready.

**Is Grok Latest a fixed model?**

Grok Latest follows the newest Grok model and currently points to Grok 4.7. Treat behavior and limits as subject to change when the alias updates.

**What is Grok Latest good at?**

Its current target, Grok 4.7, is designed for coding, agent tasks, and knowledge work. Practical uses include debugging, comparing technical approaches, and drafting documents from supplied evidence.

**How much context can Grok Latest handle?**

The alias currently offers context windows up to 500,000 tokens. The available context belongs to the model serving the request, so that number is not a permanent limit for the alias.

**How should I prompt Grok Latest?**

State the task, constraints, and output format directly. For example, ask for a recommendation supported by supplied evidence, specify what must stay unchanged, and set a word limit.

**Can I turn off reasoning?**

The current target, Grok 4.7, always uses reasoning and defaults to high effort. Choose the effort deliberately for the task rather than assuming the default will suit every request.

