Fast Apply
Fast Apply takes original code and an edit snippet and merges them. 10,500 tokens/sec, 98% accuracy. It’s the same concept Cursor uses for instant apply. The alternative is search-and-replace, which requires a separate tool call for each edit chunk and fails on whitespace, reordering, and ambiguous matches. Or full-file rewrites, which are slow and expensive. Fast Apply handles all edits to a file in a single call. The speed comes from a 7B model trained specifically on code merging, served on custom CUDA kernels with speculative decoding that exploits code’s syntactic predictability (70% hit rate).Try the API Playground
Test Fast Apply with live examples
Models
| Model | Speed | Accuracy | Best For |
|---|---|---|---|
| morph-v3-fast | 10,500+ tok/sec | 96% | Real-time edits |
| morph-v3-large | 2500+ tok/sec | 98% | Complex multi-edit changes |
| auto | Variable | ~98% | Automatic selection |
Quick Start
Best Practices
Update Snippets: Use// ... existing code ... for unchanged sections:
- ✅ “I will add async/await error handling”
- ❌ “Change this function”
Next Steps
API Reference
Complete technical reference and error handling
Build AI Tools
Integration guide for AI agents