This workflow uses Muse Image 1.0 to edit an image with natural-language instructions while preserving the rest of the scene. Two LoadImage nodes supply inputs: one is the primary image you want to edit, and the second is a visual reference that guides the look (style, color palette, material cues) of the edit. The MetaMuseImageEditApi node sends both images plus your instruction to the hosted Muse Image 1.0 service and returns a single edited image. SaveImageAdvanced then writes the result to disk with your chosen filename and subfolder.
Technically, the graph is simple and reliable: LoadImage → MetaMuseImageEditApi → SaveImageAdvanced, with a MarkdownNote included to summarize usage. The API node interprets your instruction (e.g., "make the house red while keeping the desert sky unchanged") and applies targeted changes while maintaining scene layout and context. Example inputs included with the template—deep_blue_whale_swim_scene.png and desert_red_modern_house.png—let you try style- or color-guided edits immediately.
API
Utiliser ce workflow depuis le code
Chaque workflow Comfy est un graphe JSON. Le contenu ci-dessous est ce workflow, exactement comme ComfyUI l’exécute — récupérez-le depuis l’URL, gardez-le dans le contrôle de version, ou chargez-le dans ComfyUI et exécutez-le nœud par nœud.
Exécutez-le depuis TypeScript ou Python avec le Comfy SDK. Le même code cible Comfy Cloud ou un ComfyUI auto-hébergé — seule l’URL de base change.
// Install (beta)
npm i @comfyorg/sdk
// Run this workflow (TypeScript)
import { Comfy } from "@comfyorg/sdk";
const client = new Comfy({ apiKey: "comfyui-..." });
const wf = await client.workflows.fromFile("workflow_api.json");
const job = await client.run(wf);
await job.getOutputs("<output-node-id>")[0].toFile("output.png");Le SDK prend un workflow au format API : ouvrez ce workflow dans ComfyUI et utilisez Fichier → Exporter le workflow (API).
L’accès à l’API Comfy Cloud nécessite un forfait avec clé API.




















