Realistic 2k Images - Quick Variations - After
Realistic 2k Images - Quick Variations - Before

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.

template_rob_realistic_2k_images_quick_variations.json
Fetching workflow JSON…

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 "Realistic 2k Images - Quick 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("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"); // SaveImage

The 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

Frequently Asked Questions

View all workflows
Showing 30 of 30 templates