SDXL Revision Text Prompts

The SDXL Revision Text Prompts workflow is designed to generate high-quality images by effectively transferring concepts from reference images using the SDXL model. This workflow leverages a series of nodes to process both textual and visual inputs, allowing for nuanced image creation based on specific prompts. At its core, it uses the CLIPTextEncode node to interpret text prompts and the CLIPVisionEncode node to analyze reference images. The KSampler node is crucial in synthesizing the final image by sampling from the latent space informed by both text and image inputs. The VAEDecode node then decodes this latent representation into a visible image, which can be saved using the SaveImage node. This workflow is particularly useful for artists and designers who wish to incorporate specific styles or elements from reference images into new creations, offering a seamless blend of textual and visual inspiration.

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/a2460ab23a60.json
Fetching 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 "SDXL Revision Text Prompts" (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("sdxl_revision_text_prompts_api.json")

asset = client.assets.from_file("input.png")
wf.set_input("34", "image", asset)  # LoadImage

wf.set_input("7", "text", "text, watermark")  # CLIPTextEncode

job = client.run(wf)
for output in job.get_outputs("9"):  # 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

Frequently Asked Questions

View all workflows
Character
Cinematic
Image to Video
Lip Sync
Multiple Angles
Portrait
Style Reference
Style Transfer
Text to Video
Video Generation
Video
Showing 30 of 30 templates