Krea-2: Text to Image

This workflow turns text prompts into images using Krea-2 Turbo, a distilled text-to-image model designed for speed and expressive, stylized results. It includes a ResolutionSelector so you can switch aspect ratios without touching width/height by hand, optional style LoRAs for creative control, and a SaveImage node that writes finished renders to your ComfyUI/output folder. A MarkdownNote in the graph links to the official Krea-2 model and LoRA resources so you can install the exact files the graph expects.

Technically, your prompt flows into the Krea‑2 Turbo inference node (b0e5ca93-2731-42b9-8e0a-d28ea851ff81), which loads a diffusion checkpoint such as krea2_turbo_fp8_scaled.safetensors. If you select one or more LoRAs from ComfyUI/models/loras, those adapters are applied during sampling to steer style. The ResolutionSelector subgraph outputs a matched width/height pair to the Krea‑2 node so you can generate at common sizes reliably. The image tensor then routes to SaveImage, which saves numbered files and embeds metadata for reproducibility. The graph is grouped into a compact subgraph so you can work from a single control surface instead of hunting through nodes.

It’s especially useful for concept art and visual brainstorming: start with a general idea, toggle a style LoRA to explore different looks, iterate seeds, and lock a resolution preset for downstream design work. For best control, include any LoRA trigger words in your prompt and start with a moderate LoRA weight (around 0.6), then fine‑tune from there. See the linked Krea‑2 and LoRA docs for model variants and style lists.

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/11657ed32877.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 this workflow (Python)
from comfy_sdk import Comfy

client = Comfy(api_key="comfyui-...")
wf = client.workflows.from_file("workflow_api.json")
job = client.run(wf)
for output in job.get_outputs("<output-node-id>"):
    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