Nodes/ComfyUI StabilityAI Suite/StabilityAI Suite - Search and Replace
ComfyUI Node

StabilityAI Suite - Search and Replace

Edit images from a sentence — 'find the red car, make it a blue bicycle' — no mask required

By florestefano1975·Created 2 years ago·Updated about a year ago· 5
StabilityAI Suite - Search and Replace
  • image
  • IMAGE
search_prompt
prompt
negative_prompt
seed0
api_key_override
output_format

Search and Replace is the modern way to swap an object in an image. No mask, no paint-over: you describe what's currently there, describe what you want instead, and the model figures out the rest. It's the same move that made instruction-editing models displace a chunk of masked inpainting through 2025–2026 - and here it's hosted, so it runs with zero local setup.

How it works

The node posts your image plus two prompts to stable-image/edit/search-and-replace. search_prompt tells the model what to find ("red car in the driveway"), prompt tells it what to put there instead ("blue delivery van"). Stability's edit model locates the subject and re-renders that region. One POST, one image back, no polling.

Inputs that matter

  • image - what you're editing.
  • search_prompt - the object as it currently appears. Be literal and specific: the model is matching pixels to a description, and "the car" finds a different thing than "the red station wagon on the left."
  • prompt - the replacement. It can be wildly different ("a garden shed"), which is the fun part.

negative_prompt, seed, output_format (png/webp/jpeg), and api_key_override fill out the rest. Output is an IMAGE.

Install

Standard for the pack. ComfyUI Manager → search "ComfyUI StabilityAI Suite", or:

cd ComfyUI/custom_nodes
git clone https://github.com/florestefano1975/ComfyUI-StabilityAI-Suite

Restart, set the API key (env var, sai_platform_key.txt, or the node field). No model downloads, no extra pip dependencies - thin API wrapper, like everything else in the suite.

Gotchas

  • Cost. Every edit is a paid call. Great for one-off fixes; it adds up fast if you iterate.
  • Precision lives in search_prompt. Vague descriptions get vague results - the whole quality of the edit depends on how exactly you name what's in the image.
  • The model preserves the region around the swap, but this is an edit model, not masked inpainting - expect surrounding pixels to shift slightly. If you need bit-identical surroundings, the suite's Inpainting node with a mask is the correct tool.

Reach for this when the object you want to change is obvious in the frame and you'd rather write a sentence than paint a mask. It's the zero-effort edit.

CategoryAI WizArt/Stability AI Suite

Inputs (7)

NameTypeDefaultDescription
imageIMAGE
search_promptSTRING
promptSTRING
negative_promptoptSTRING
seedoptINT00–4294967294
api_key_overrideoptSTRING
output_formatoptCOMBO3 options: png, webp, jpeg

Outputs (1)

NameTypeDescription
IMAGEIMAGE