merge_models
Merge two stable diffusion checkpoints into a new model by selecting a method (linear, slerp, additive, subtract) and adjusting alpha blend strength.
Instructions
Merge two model checkpoints. Submits the job and waits for completion.
Args:
model_type: Model architecture — "sd15" or "sdxl"
base_model: Base model checkpoint filename
target_model: Target model checkpoint filename
output_name: Output checkpoint filename for the merged model
method: Merge method — "linear", "slerp", "additive", or "subtract"
alpha: Merge strength (0.0-1.0)
preserve_metadata: Whether to preserve model metadata
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model_type": "<model_type>",
"base_model": "<base_model>",
"target_model": "<target_model>",
"output_name": "<output_name>"
},
"name": "merge_models"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| alpha | No | ||
| method | No | linear | |
| base_model | Yes | ||
| model_type | Yes | ||
| output_name | Yes | ||
| target_model | Yes | ||
| preserve_metadata | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |