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
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/8f90aec3d12c.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 "Realistic 2k Images - Quick 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("template_rob_realistic_2k_images_quick_variations_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
















