[Integrations](https://spiral.ai/integrations) › [n8n](https://spiral.ai/integrations/n8n) › [Grok 4.5](https://spiral.ai/integrations/n8n/grok-4-5)

# How to Use Grok 4.5 in n8n

Grok 4.5 suits repository debugging, technical analysis, and tasks that require several tool calls. Its scope extends beyond coding to data science and business writing.

|  |  |
| --- | --- |
| Model | Grok 4.5 |
| 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, with a Spiral API key |

## Prompts to try with Grok 4.5 in n8n

- On each daily run, use Grok 4.5 with medium reasoning effort to compare the supplied service metrics with yesterday's values. Report significant changes and calculations supporting each finding.
- Every Monday, use Grok 4.5 to turn the supplied weekly results into a five-slide briefing outline. Include evidence for each claim and list unanswered questions.
- On each run, use Grok 4.5 to extract dates, organizations, and commitments from newly supplied text. Return consistent records with evidence excerpts and mark absent values as unknown.
- Each morning, use Grok 4.5 with high reasoning effort to analyze the supplied failure logs. Rank possible causes and propose a test that could confirm each one.
- Every Friday, use Grok 4.5 to compare the supplied technical updates with the previous report. Summarize changed assumptions, new evidence, and decisions needing review.

## How to set up Grok 4.5 in n8n

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

### Use the Spiral skill

1. **Send n8n 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 Spiral's MCP server

1. **Create a key**: Create a key under API keys in the console.

2. **Add an MCP Client node**: In a workflow, add an MCP Client node (or, under an AI Agent node, an MCP Client Tool) and set:

```text
https://api.spiral.ai/mcp
```

3. **Pick a tool**: The node lists Spiral's tools. In an MCP Client node pick one, such as `run`, and give it its arguments:

```json
{
  "provider": "fal",
  "model": "fal-ai/flux/schnell",
  "input": { "prompt": "a lighthouse at dawn" },
  "wait": true
}
```

4. **Run Grok 4.5 in a workflow step**: Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds Grok 4.5, prices it and runs it each time the step fires.

### 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 4.5**: 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-4.5",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

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

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

## Grok 4.5 tools and prices

- [SpaceXAI: Grok 4.5](https://spiral.ai/tools/openrouter/x-ai/grok-4.5) (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 |  | — |  |
| tools |  | — |  |
| top_p | … to 1 | — |  |
| reasoning |  | — | Reasoning effort; reasoning tokens count toward max_tokens. |
| max_tokens | 1 to 450000 | — | The most output tokens to generate. |
| temperature | 0 to 2 | — |  |

## What can you do with Grok 4.5 in n8n?

Turn each scheduled run's evidence into a consistent technical or business report with Grok 4.5. Define what to compare and what evidence each finding must include.

### Fix repository bugs

Ask Grok 4.5 to trace a failing behavior through the code, propose a patch, and verify it against a regression test.

### Debug Rust and C/C++

Give Grok 4.5 a compiler error and the relevant code. Request a correction that preserves the intended ownership rules or memory behavior.

### Build an application prototype

Turn a defined workflow into a working application with explicit acceptance criteria. Have Grok 4.5 check the main user path before reporting completion.

### Investigate data anomalies

Have Grok 4.5 compare reported figures, identify inconsistencies, and propose calculations that distinguish competing explanations.

### Extract document records

Turn supplied text into structured records with Grok 4.5. Specify required values, evidence excerpts, and how to mark missing information.

### Draft business presentations

Give Grok 4.5 the approved findings and ask for slide titles, supporting evidence, and speaker notes for a defined audience.

### Compare technical proposals

Ask Grok 4.5 to compare approaches against explicit engineering constraints, expose assumptions, and identify the tests needed to make a decision.

### Produce recurring analytical reports

Have Grok 4.5 turn each run's supplied observations into a consistent report of changes, evidence, unresolved questions, and next actions.

## Overview

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

## Grok 4.5 in other agents

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

## More n8n guides

- [Grok 4.3](https://spiral.ai/integrations/n8n/grok-4-3)
- [Grok 4.6](https://spiral.ai/integrations/n8n/grok-4-6)
- [Grok 4.20 Multi-Agent](https://spiral.ai/integrations/n8n/grok-4-20-multi-agent)
- [Grok 4.7](https://spiral.ai/integrations/n8n/grok-4-7)
- [Grok 4.20](https://spiral.ai/integrations/n8n/grok-4-20)
- [Grok Latest](https://spiral.ai/integrations/n8n/grok-latest)

## Questions about Grok 4.5 in n8n

**Can n8n use Grok 4.5?**

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

**How much does Grok 4.5 cost in n8n?**

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 n8n plan is separate.

**Do I need an OpenRouter account to use Grok 4.5 in n8n?**

You need no OpenRouter account. n8n uses one Spiral API key for every tool, and Spiral runs Grok 4.5 on its own OpenRouter account.

**How long does it take to set up Grok 4.5 in n8n?**

About two minutes: create a key, then add an MCP Client node, then pick a tool.

**Does n8n wait while Grok 4.5 runs?**

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

**What is Grok 4.5 best suited for?**

Use it for software engineering and analytical work that requires several steps, including debugging, data analysis, and comparing technical approaches. Give it a concrete deliverable and a way to check the result.

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

The maker lists a 500,000-token context window. For a large task, identify the relevant sections and the exact question you want answered.

**How should I choose the reasoning effort?**

Start with low for straightforward work, medium for analysis, and high for difficult debugging or mathematical problems. Grok 4.5 defaults to high and always uses reasoning.

**Can Grok 4.5 produce structured records?**

Yes. Document extraction and report generation are useful applications: define the record you need and tell it how to represent missing information.

**How do I prompt Grok 4.5 effectively?**

State the task, constraints, and desired output directly. For example, ask for a patch that preserves a public interface, includes a regression test, and explains the cause in three sentences.

