An edge is a directed wire from one node to another. The downstream node receives the upstream node’s output as part of its prompt context.
Think of it like attaching an image or file to a message in an AI chat — when you connect one node to another, Melius appends the upstream node’s data (its text, image, video, or audio) to the end of the downstream node’s input. The downstream model sees your prompt plus whatever the upstream node produced.
Edge data types
Edges are typed. The type matches the upstream output:
text — written output from a text node or the literal content of a custom_text node.
image — a generated or uploaded image.
video — a generated or uploaded video clip.
audio — a generated or uploaded audio clip.
file — an uploaded image asset.
Downstream nodes accept the input types supported by their selected model. A text-to-image model accepts a text prompt; using an image reference requires a model with image inputs.
When you switch an image or video node’s model, its prompt reference strip shows connections to inputs the selected model accepts. Other connections stay saved and reappear when you switch back to a compatible model. Saved @mentions remain in your prompt, with a warning when the model skips their inputs. You can still run the node with its supported inputs.
Creating edges
- By dragging — drag from a source node’s output handle to a target node’s input handle.
- By @-mention — type
@ inside a prompt and pick a node. Melius creates an input edge automatically.
- Programmatically — see
edge_create.
Open a prompt reference
Click an inline reference tag in a canvas node’s prompt to select the whole tag. Press Backspace or Delete to remove it from the prompt, or click the selected tag again to select and center its source on the canvas. Removing the tag keeps its input edge connected.
References to outputs inside a template take you to the template box.
Connect one source to several nodes
- Hold
Shift and click each destination node to select it.
- Drag the source node’s output to a matching input on any selected destination.
- Check the preview wires, then release to connect all compatible selected destinations.
For example, select your image and video nodes, then drag a text node’s output to one selected node’s Text input. Every compatible selected node receives the shared text alongside its own prompt.
You can mix destination types and select individual nodes inside groups. Unselected siblings are not connected. Destinations that cannot accept the input are labeled in the preview, and existing connections are skipped. One undo removes the connections created by the gesture.
Dropping onto an unselected node creates a single connection. Dragging from an input back to an output keeps the existing behavior for that direction.
To feed the same set of inputs to many nodes and keep adding to it later, wire the inputs into a Router instead.
Connect several sources at once
- Hold
Shift and click each source node to select it.
- Drag the output of any selected source to the destination input.
- Check that a preview wire leaves every selected source, then release.
The selected sources must all produce the same type of output, such as images and uploaded image files. This includes nodes inside a group, whether you select them one by one or drag a selection box around the group. If any selected source produces a different output, only the node you dragged from connects.
When a group and all its nodes are selected, use the group’s output to connect them together. Matching unused outputs on its individual nodes hide until you select those nodes individually. Existing connection anchors and outputs unique to a node remain available. If you also select compatible nodes outside the group, dragging from either the group or an outside node connects the whole selection. One undo removes that gesture’s connections.
Removing edges
Click an edge to select it, then press Delete. Removing the edge does not affect either node’s existing versions — only the next run will reflect the change.
To cut several edges, press X for the Scissor tool, then click an edge or drag across edges to cut every one the stroke crosses. Press X again or Esc to go back to Select. Last modified on November 20, 2026