This ComfyUI workflow is designed to facilitate style transfer in text-to-image generation using the Recraft model. By uploading 1-5 style reference images, users can create a unique style ID, which is then used to generate images that maintain a consistent aesthetic. The workflow leverages several key nodes, including LoadImage for importing style references, RecraftCreateStyleNode for generating the style ID, and RecraftTextToImageNode for the final image generation. This setup is particularly useful for creators looking to produce on-brand visual content efficiently. The ability to reuse a style ID across multiple projects ensures that the visual output remains consistent, making it ideal for branding and marketing purposes.
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/947be2b6d997.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 "Style Transfer - Recraft Text-to-Image" (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-recraft_create_style_api.json")
asset = client.assets.from_file("input.png")
wf.set_input("23", "image", asset) # LoadImage
job = client.run(wf)
for output in job.get_outputs("37"): # 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














