This ComfyUI workflow, titled '2.3 Creator: Image Upscale & Analysis,' is designed to enhance image resolution while simultaneously generating a detailed prompt from the image using the Z Image Turbo model. The workflow employs a combination of nodes, including LoadImage, SaveImage, and Florence2Run, to effectively upscale an image and analyze its content. The Florence2Run node uses the Florence-2 multimodal model to extract detailed information from the image, such as object attributes, spatial relationships, and scene context, which are then used to create a comprehensive prompt. This dual approach not only improves the visual quality of the image but also enriches the metadata associated with it, making it particularly useful for applications that require both high-quality visuals and detailed descriptive data.
The upscaling process is achieved through diffusion techniques that increase the image's resolution by adding denoised pixels, thereby preserving the original content and structure while enhancing clarity. The workflow uses a low denoise value in the Z Image Turbo model to ensure that the upscaled image retains its original details. This makes it an excellent tool for applications where image quality is paramount, such as digital art, photography, and media production. By combining image upscaling with automatic image analysis, this workflow offers a comprehensive solution for enhancing and understanding visual content.
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 this workflow (TypeScript)
import { Comfy } from "@comfyorg/sdk";
const client = new Comfy({ apiKey: "comfyui-..." });
const wf = await client.workflows.fromFile("workflow_api.json");
const job = await client.run(wf);
await job.getOutputs("<output-node-id>")[0].toFile("output.png");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















