This ComfyUI workflow is designed to create quick and realistic variations of an existing image by leveraging advanced AI models. The process begins with the 'LoadImage' node, where you upload the image you wish to modify. The workflow then uses a captioning node (c19ae9b8-d43c-40d3-8ae7-eea7d345a587) to generate a descriptive caption of the input image, which serves as a textual guide for the generation process. Next, the 'GrokImageNode' comes into play, utilizing the Grok model to generate new image variations based on the caption. This model is known for its ability to maintain the essence of the original image while introducing creative elements. Finally, the 'Z-Image-Turbo' model is employed through the '010af74f-5a21-43f4-b520-14374608c312' node to upscale the image, enhancing its resolution and adding realistic textures. The workflow concludes with the 'PreviewAny' and 'SaveImage' nodes, allowing you to compare the results and save the final output.
API
코드에서 이 워크플로우 사용하기
모든 Comfy 워크플로우는 JSON 그래프입니다. 아래 페이로드는 이 워크플로우 그 자체로, ComfyUI에서 실행되는 것과 동일합니다 — URL에서 가져오거나, 버전 관리에 보관하거나, ComfyUI에서 불러와 노드별로 실행할 수 있습니다.
Comfy SDK로 TypeScript 또는 Python에서 실행하세요. 동일한 코드는 Comfy Cloud 또는 직접 호스팅하는 ComfyUI 모두에 적용됩니다 — 기본 URL만 다릅니다.
// Install (beta)
npm i @comfyorg/sdk
// Run "리얼한 2K 이미지 - 빠른 변형" (TypeScript)
import { Comfy } from "@comfyorg/sdk";
const client = new Comfy({ apiKey: "comfyui-..." });
// This workflow, exported in API format (see note below)
const wf = await client.workflows.fromFile("template_rob_realistic_2k_images_quick_variations_api.json");
const asset = client.assets.fromFile("input.png");
wf.setInput("77", "image", asset); // LoadImage
const job = await client.run(wf);
await job.getOutputs("103")[0].toFile("output.png"); // SaveImageSDK는 API 형식의 워크플로우를 사용합니다: 이 워크플로우를 ComfyUI에서 열고 파일 → 워크플로우 내보내기(API)를 사용하세요.
FAQ















