Spiral gives your agent every tool with one account. Browse the tools →

Grok · LLM

How to Use Morph V3 Large (batch) in Grok

Morph V3 Large merges prepared code edits into complete source files, including changes across several functions. Compared with Morph V3 Fast, it targets complex changes where merge accuracy matters most.

Prompts to try with Morph V3 Large (batch) in Grok

Copy an example into Grok, or ask in your own words.

Use Morph V3 Large to merge the original JavaScript source and reviewed update pasted above. Apply only the division-by-zero check, preserve every section marked as existing code, and return the complete merged source.

Morph V3 Large (batch)Grok
Try asking
  • Use Morph V3 Large to apply the prepared TypeScript update above, which adds a null check before session creation. Include the complete original source in the merge and return the full result.

  • Use Morph V3 Large to merge the helper rename and caller changes pasted above. Keep the other functions intact and return the complete revised code listing.

  • Use Morph V3 Large to apply the reviewed deletion above. Use the surrounding function names to locate the obsolete code and preserve all sections marked as existing code.

  • Use Morph V3 Large to merge the prepared error-handling changes into the source pasted above. Choose temperature zero and allow enough output to return the complete merged code.

How to set up Morph V3 Large (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.

    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.

    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 Large (batch)

    One request; the result comes back by polling or a webhook.

    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-large:batch",
        "input": {
          "messages": [
            {
              "role": "system"
            }
          ]
        }
      }'

Then paste one of the prompts above: Grok finds Morph V3 Large (batch) on Spiral, shows the price and runs it.

Morph V3 Large (batch) providers and prices

Spiral runs Morph V3 Large (batch) through OpenRouter. Open a card for today's price, with every fee included.

OpenRouterLLM
Morph: Morph V3 Large (batch)
morph/morph-v3-large:batch

Settings you can ask for

Ask Grok for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Logprobson or off
Max tokens1 to 131072

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).

Temperature0 to 2
Top logprobs0 to 20

Every API field of Morph: Morph V3 Large (batch) is on its tool page: open its card above.

What can you do with Morph V3 Large (batch) in Grok?

Turn pasted source and a prepared update into a complete revised code listing with Morph V3 Large. Keep the instruction specific and clearly mark the sections that should remain.

Apply a reviewed bug fix

Merge an approved correction into existing source, then inspect the resulting diff for unrelated changes.

Update several functions together

Apply a prepared refactor that changes a helper and its callers in the same source file.

Add error handling

Merge prepared checks and error branches into existing request handlers while marking untouched sections for preservation.

Apply a dependency migration

Merge reviewed import changes and replacement method calls into the current source.

Remove obsolete code

Apply a prepared deletion with surrounding context that identifies the obsolete function and the code to retain.

Merge changes into repetitive code

Supply the complete source and enough local context to distinguish the intended handler from similar handlers.

Questions about Morph V3 Large (batch) in Grok

Can Grok use Morph V3 Large (batch)?

Yes. Add Spiral to Grok as an MCP server, and Grok can find and run Morph V3 Large (batch) like any built-in tool.

How much does Morph V3 Large (batch) cost in Grok?

Up to $0.00508 per run at the default inputs. $0.585 per 1M input tokens, $1.235 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 Large (batch) in Grok?

No. Spiral runs Morph V3 Large (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 Large (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 Large (batch) runs?

Morph V3 Large (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 Large good at?

It applies prepared changes to existing source code and returns the complete merged result. Its intended work includes complex edits across several functions or scopes.

How does Morph V3 Large differ from Morph V3 Fast?

Morph positions Large for complex changes and highest merge accuracy. Fast targets quick edits.

Can Morph V3 Large plan a feature from scratch?

Its documented role is applying edits after a planning model decides what to change. Use a planning model to design the feature, then supply the original source and prepared update.

How much code can Morph V3 Large handle?

The listed batch model has a 262,144-token context window and supports up to 131,072 output tokens. Budget for the complete merged source when choosing an output limit.

How do I keep unchanged code from being deleted?

Place `// ... existing code ...` markers wherever an update skips code that should remain. Include enough surrounding source to identify the intended edit location.

Get started

Start using Morph V3 Large (batch) in Grok

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into Grok:

Set up Grok

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options