Quickstart
Switch to instruction-guided editing with 98% accuracy in 3 steps.Prerequisites
- Enterprise API key from your Morph account
- Access to
https://api.morphllm.com/v1/
| Model | Speed | Accuracy | Input Limit | Output Limit |
|---|---|---|---|---|
| morph-v3-fast | 10,500+ tok/sec | 96% | 16k tokens | 16k tokens |
| morph-v3-large | 5000+ tok/sec | 98% | 16k tokens | 16k tokens |
| auto | 5000-10,500tok/sec | 98% | 16k tokens | 16k tokens |
1. Configure Your Edit Tool
Set up your AI agent to generate the proper instructions guided format for the highest accuracy editing.- XML Tool
- JSON Tool (Simple)
Edit File Tool Description:Parameters:
target_filepath(string, required): The path of the target file to modifyinstructions(string, required): A single sentence written in the first person describing what you’re changing. Used to help disambiguate uncertainty in the edit.code_edit(string, required): Specify ONLY the precise lines of code that you wish to edit. Use// ... existing code ...for unchanged sections.
2. Send to Morph Enterprise API
3. Handle the Response
Extract the merged code from the enterprise API response. Response Format:Enterprise Features
Perfect Accuracy
Instruction-guided editing achieves 98% accuracy on complex code changes
44k Input Tokens
Handle entire large files, complete modules, and complex codebases
36k Output Tokens
Generate complete implementations, full refactors, and comprehensive updates
Enterprise API requires an
<instruction> field but maintains backward compatibility with existing <update> patterns.