[Integrations](https://spiral.ai/integrations) › [Grok](https://spiral.ai/integrations/grok) › [Morph V3 Fast Batch](https://spiral.ai/integrations/grok/morph-v3-fast-batch)

# How to Use Morph V3 Fast Batch in Grok

Morph V3 Fast Batch merges proposed code edits into complete source code, making it useful for routine fixes and refactors. Morph lists Morph V3 Large for trickier edits.

|  |  |
| --- | --- |
| Model | Morph V3 Fast Batch |
| Available through | OpenRouter |
| Category | LLM |
| Price | Up to $0.003214 per run at the default inputs. $0.52 per 1M input tokens, $0.78 per 1M output tokens. |
| Returns | text, json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with Morph V3 Fast Batch in Grok

- Use Morph V3 Fast Batch to merge the original Python code and approved error-handling edit above. Return the complete updated code.
- Merge the proposed TypeScript return-type change into the original code above using Morph V3 Fast Batch. Mark unchanged sections to keep.
- Use Morph V3 Fast Batch to apply the approved Java method rename to the pasted original code. Keep the request limited to that change.
- Combine the two approved JavaScript edits above into one update for Morph V3 Fast Batch. Return the complete merged code for review.
- Apply the proposed deletion to the pasted Go code with Morph V3 Fast Batch. Show context around the deletion and mark all sections that should remain.

## How to set up Morph V3 Fast Batch in Grok

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

### Use the Grok connector

1. **Add a custom connector**: In Grok open Settings › Connect Apps, then Add a custom connector. Name it Spiral, paste this URL, leave Headers empty and click Add MCP.

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

2. **Sign in to Spiral and approve**: Grok opens Spiral: sign in, pick the organization and click Authorize. Spiral gives the connection its own API key; Grok never sees it, and you can remove the connection under Settings › Connected apps.

3. **Check that it is connected**: Connect Apps › Custom shows Spiral as Connected. It works in every Grok chat and Grok bot.

### Use the Spiral skill

1. **Send Grok 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 Morph V3 Fast Batch**: 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": "morph/morph-v3-fast:batch",
    "input": {
      "messages": [
        {
          "role": "system"
        }
      ]
    }
  }'
```

Then paste one of the prompts above: Grok finds Morph V3 Fast Batch on Spiral, shows the price and runs it.

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

## Morph V3 Fast Batch tools and prices

- [Morph: Morph V3 Fast (batch)](https://spiral.ai/tools/openrouter/morph/morph-v3-fast%3Abatch) (OpenRouter): Up to $0.003214 per run at the default inputs. $0.52 per 1M input tokens, $0.78 per 1M output tokens.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| stop |  | — |  |
| max_tokens | 1 to 38000 | — | The most output tokens to generate. On a reasoning model the reasoning tokens count toward it: a cap too low for the effort can end with no answer (finish_reason length). |
| temperature | 0 to 2 | — |  |

## What can you do with Morph V3 Fast Batch in Grok?

Turn pasted original code and a proposed edit into complete updated code with Morph V3 Fast. A chat app can present the merged result for review.

### Apply reviewed bug fixes

Merge a proposed null check or error-handling fix into the original code.

### Complete small refactors

Apply an agreed function refactor while marking surrounding code to keep.

### Update API call sites

Merge prepared replacements for changed method names or arguments.

### Insert approved tests

Merge proposed test cases into existing test code without replacing the whole suite in the edit snippet.

### Remove obsolete code

Apply a planned deletion, showing surrounding context and marking the sections to retain.

### Combine review corrections

Apply several approved edits to the same source file in one merge request.

## Overview

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

## Morph V3 Fast Batch in other agents

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

## More Grok guides

- [Morph V3 Fast](https://spiral.ai/integrations/grok/morph-v3-fast)
- [Morph V3 Large](https://spiral.ai/integrations/grok/morph-v3-large)
- [Moondream 3.1](https://spiral.ai/integrations/grok/moondream-3-1)
- [Morph V3 Large (batch)](https://spiral.ai/integrations/grok/morph-v3-large-batch)
- [Moondream 3 Preview](https://spiral.ai/integrations/grok/moondream-3-preview)
- [Motif 3](https://spiral.ai/integrations/grok/motif-3)

## Questions about Morph V3 Fast Batch in Grok

**Can Grok use Morph V3 Fast Batch?**

Yes. Add Spiral to Grok as an MCP server, and Grok can find and run Morph V3 Fast Batch like any built-in tool.

**How much does Morph V3 Fast Batch cost in Grok?**

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

**Do I need an OpenRouter account to use Morph V3 Fast Batch in Grok?**

No. Spiral runs Morph V3 Fast Batch on its own OpenRouter account. You sign in to Spiral once and never paste a key.

**How long does it take to set up Morph V3 Fast Batch in Grok?**

About two minutes: add a custom connector, then sign in to Spiral and approve, then check that it is connected.

**Does Grok wait while Morph V3 Fast Batch runs?**

Morph V3 Fast Batch runs in the background. Grok starts the run, checks on it and gives you the text, json when it's ready.

**What is Morph V3 Fast best used for?**

Use it to apply an already planned code change. Give it the original code and an edit snippet, and it returns the merged code.

**How should I format a code-edit request?**

Separate the change description, complete original code, and proposed update with <instruction>, <code>, and <update> tags. Use // ... existing code ... inside the update to mark sections you want to keep.

**Why did a merge remove code I wanted to keep?**

Check the update snippet for missing existing-code markers. Morph warns that omitting these markers can cause deletions.

**Which programming languages does Morph V3 Fast support?**

Morph documents Python, TypeScript, JavaScript, Go, Rust, Java, C++, Ruby, PHP, Swift, and Kotlin among its supported programming languages.

**How much code can Morph V3 Fast Batch return?**

The batch model supports up to 38,000 output tokens within an 81,920-token context window. Budget for the complete merged code, including unchanged sections.

