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.
GET https://comfy.org/workflows/download/c046d6c94bd1.jsonFetching workflow JSON…
Run it from Python or TypeScript with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.
# Install (beta)
pip install comfy-sdk # Python
npm i @comfyorg/sdk # TypeScript
# Run "Generate Realistic Variations" (Python)
from comfy_sdk import Comfy
client = Comfy(api_key="comfyui-...")
# This workflow, exported in API format (see note below)
wf = client.workflows.from_file("templates_rob_realistic_2k_images_quick_variations.app_api.json")
asset = client.assets.from_file("input.png")
wf.set_input("77", "image", asset) # LoadImage
job = client.run(wf)
for output in job.get_outputs("103"): # SaveImage
output.to_file(output.name)The SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API). API access requires a Comfy Cloud plan with an API key. SDK docs · Get an API key
FAQ














