How to Use Morph V3 Fast in Factory Droid
Morph V3 Fast merges proposed code changes into an existing file and returns the complete updated code. It favors quick edits; Morph V3 Large is intended for complex refactors across multiple scopes.
Prompts to try with Morph V3 Fast in Factory Droid
Copy an example into Factory Droid, or ask in your own words.
Read the project's session creation code and prepare a null-user guard before a session is created. Use Morph V3 Fast to merge the edit into the complete original file, then inspect the diff and run the relevant tests.
Find the project's response parsing function and prepare an explicit error for an unsuccessful response. Use Morph V3 Fast to merge that focused change, marking unchanged sections for preservation.
Read the project's date formatting tests and prepare one assertion for the existing empty-input behavior. Use Morph V3 Fast to merge it into the current test file and run that test.
Add explicit return types to the exported functions in the project's formatting utility. Prepare the changed signatures, use Morph V3 Fast to merge them into the original code, and check the diff for changes to function bodies.
Prepare the correction agreed in the latest code review for the project's pagination function. Use Morph V3 Fast to apply it to the complete current file, preserving unrelated sections, then run the relevant checks.
How to set up Morph V3 Fast in Factory Droid
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the server
Droid saves it to your user config, ~/.factory/mcp.json, so it works in every project.
droid mcp add spiral https://api.spiral.ai/mcp --type http
- Sign in
Start droid, type /mcp, select spiral and authenticate it. Sign in to Spiral in the browser and click Authorize. No API key.
- Check it
Spiral shows as connected. needs authentication means the sign-in did not finish: run /mcp again.
droid mcp list
Use the Spiral skill
- Send Factory Droid this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- 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
- Create an API key
In the console, under API keys.
- Run Morph V3 Fast
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-fast", "input": { "messages": [ { "role": "system" } ] } }'
Then paste one of the prompts above: Factory Droid finds Morph V3 Fast on Spiral, shows the price and runs it.
Morph V3 Fast providers and prices
Spiral runs Morph V3 Fast through OpenRouter. Open a card for today's price, with every fee included.
Up to $0.006428 per run at the default inputs. $1.04 per 1M input tokens, $1.56 per 1M output tokens.
Settings you can ask for
Ask Factory Droid for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| Logprobs | on or off | ||
| Max tokens | 1 to 131072 | The most output tokens to generate. | |
| Temperature | 0 to 2 | ||
| Top logprobs | 0 to 20 |
Every API field of Morph: Morph V3 Fast is on its tool page: open its card above.
What can you do with Morph V3 Fast in Factory Droid?
Apply focused changes to existing project files while your coding agent handles the reasoning and tests. Morph V3 Fast merges the prepared edits and returns complete updated code for review.
Apply a bug fix
Merge a proposed guard or corrected condition into existing code, then review the complete result.
Add error handling
Apply a prepared error-handling snippet around an existing operation while marking surrounding code for preservation.
Update a function signature
Merge proposed parameter or return-type changes into an existing function without asking the planning agent to reproduce the whole file.
Revise an existing test
Apply prepared assertions or test cases to existing test code and inspect the resulting diff.
Apply review feedback
Turn an agreed code review correction into a focused edit snippet and merge it into the original code.
Update a code example
Merge a proposed correction into an existing standalone code example and return the complete revised example.
More on Morph V3 Fast and Factory Droid
Morph V3 Fast in other agents
Questions about Morph V3 Fast in Factory Droid
Can Factory Droid use Morph V3 Fast?
Yes. Add Spiral to Factory Droid as an MCP server, and Factory Droid can find and run Morph V3 Fast like any built-in tool.
How much does Morph V3 Fast cost in Factory Droid?
Up to $0.006428 per run at the default inputs. $1.04 per 1M input tokens, $1.56 per 1M output tokens. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Factory Droid plan is separate.
Do I need an OpenRouter account to use Morph V3 Fast in Factory Droid?
No. Spiral runs Morph V3 Fast 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 in Factory Droid?
About two minutes: add the server, then sign in, then check it.
Does Factory Droid wait while Morph V3 Fast runs?
Morph V3 Fast runs in the background. Factory Droid starts the run, checks on it and gives you the text, json when it's ready.
What is Morph V3 good at?
Applying proposed code changes to existing code. Give it the original file and an edit snippet, and it returns the complete updated file.
How should I format a Morph V3 prompt?
Put the change description in <instruction>, the complete original code in <code>, and the proposed changes in <update>. Include enough surrounding code to identify where each change belongs.
Why does Morph V3 sometimes remove code I wanted to keep?
Unchanged sections need explicit preservation markers such as // ... existing code .... Omitting those markers can cause deletions, so inspect the resulting diff.
How large can a Morph V3 Fast result be?
Morph V3 Fast supports up to 131,072 output tokens and has a 262,144-token context window. Allow room for the complete updated file, even when the requested change is small.
How does Morph V3 Fast differ from Morph V3 Large?
Morph V3 Fast favors quick code edits. Morph V3 Large is intended for more difficult edits, including complex refactors across multiple scopes.
Start using Morph V3 Fast in Factory Droid
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Factory Droid:
set up https://spiral.ai/SKILL.md


