Flux.1 Dev USO Reference Image Generation - After
Flux.1 Dev USO Reference Image Generation - Before

The 'Flux.1 Dev USO Reference Image Generation' workflow in ComfyUI is a powerful tool for artists and designers looking to blend specific styles with particular subjects in their digital creations. This workflow leverages reference images to maintain the integrity of a subject's features while seamlessly applying different artistic styles. By using models like Flux and Flux.1, this workflow ensures high-quality transformations that respect both the style and the subject of the reference image. Key nodes such as SaveImage and LoadImage facilitate the input and output processes, while the MarkdownNote and specific node types like db9e0685-d161-4026-b52c-d0cd40ff7381 and ee9a1c5a-924e-4fbb-8aaf-f3153e83bb50 handle the intricate processing required to achieve these artistic transformations.

Technically, this workflow operates by first loading a reference image using the LoadImage node. The image is then processed through a series of transformations dictated by the selected Flux models, which are renowned for their ability to retain subject details while altering stylistic elements. The workflow's flexibility allows users to either maintain the original character's face while changing the artistic style or apply new artistic styles to entirely different scenes. This makes it a versatile tool for creating consistent character designs across various artistic contexts or for experimenting with new visual aesthetics in digital art projects.

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.

flux1_dev_uso_reference_image_gen.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 "Flux.1 Dev USO Reference Image Generation" (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("flux1_dev_uso_reference_image_gen_api.json");

const asset = client.assets.fromFile("input.png");
wf.setInput("47", "image", asset); // LoadImage

const job = await client.run(wf);
await job.getOutputs("9")[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