This ComfyUI workflow, titled 'Generate Realistic Variations,' is designed to take a reference image, analyze it using the Grok model, and produce realistic variations with enhanced details. The workflow begins with the 'LoadImage' node, where users upload their reference image. The GrokImageNode then captions the image, providing semantic understanding that guides the generation of variations. This process is further refined by the 'ImageCompare' node, which ensures the variations maintain a high degree of similarity to the original image while introducing creative differences. Finally, the 'Z-Image-Turbo' model is employed to upscale the image variations by 2x, adding finer details and improving overall resolution. The workflow concludes with the 'SaveImage' node, allowing users to easily store the enhanced images.
Technically, this workflow leverages the Grok model's ability to generate descriptive captions that inform the variation process, ensuring that the new images are both creative and contextually relevant. The integration of the 'Z-Image-Turbo' model for upscaling is particularly useful for applications requiring high-resolution outputs, such as print media or detailed digital presentations. By combining these advanced nodes and models, the workflow provides a powerful tool for artists, designers, and content creators who need to generate multiple high-quality image variations quickly.
API
Use this workflow from code
Every Comfy workflow is a JSON graph. The payload below is this workflow, exactly as ComfyUI runs it — fetch it from the URL, keep it in version control, or load it in ComfyUI and run it node by node.
Run it from TypeScript or Python with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.
// Install (beta)
npm i @comfyorg/sdk
// Run "Generate Realistic Variations" (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("templates_rob_realistic_2k_images_quick_variations.app_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"); // SaveImageThe SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API).
Comfy Cloud API access requires a plan with an API key.
FAQ














