Krea-2 Int8: Image Style Reference
Generate images with the Krea-2 Turbo model while referencing the style of 1–2 uploaded images, using the high-performance Int8 Convrot format for faster,…
워크플로 다운로드Cloud에서 사용해 보기 API 문서
정보
Generate images with the Krea-2 Turbo model while referencing the style of 1–2 uploaded images, using the high-performance Int8 Convrot format for faster,…
제공할 항목
- 워크플로 읽는 중
ComfyUI에서 실행됩니다. 이 워크플로는 이 페이지에서 실행할 수 없습니다. 다운로드하여 ComfyUI에서 여세요.
워크플로 다운로드아직 이 워크플로의 샘플 출력이 없습니다.
워크플로 내부
노드 그래프의 읽기 전용 미리보기입니다. 노드를 편집하려면 Comfy Cloud에서 열거나 다운로드하세요.
Loading the graph
Open full-size workflow preview이 워크플로의 파일
- Comfy Cloud
- 예
- 출력
- 이미지
- 작성자
- 작성자 정보를 사용할 수 없음
사용자 지정 노드 필요
- 워크플로 읽는 중
코드에서 이 워크플로 사용하기
가능한 경우 워크플로 그래프와 입력을 기반으로 생성되며, 그렇지 않은 경우 저장된 예시가 표시됩니다. 비용이 발생할 수 있으므로 코드를 실행하기 전에 자격 증명과 엔드포인트를 검토하세요.
1 API 키 가져오기 ↗
What you need
- Runs on
- Comfy Cloud
- 키
- COMFY_API_KEY
유료 Cloud 요금제와 크레딧이 필요합니다.
API JSON 다운로드API 문서 ↗
# Python 3.10+: pip install comfy-sdk==0.4.0
import os
from comfy_sdk import Comfy
api_key = os.environ.get("COMFY_API_KEY", "").strip()
if not api_key: raise RuntimeError("Set COMFY_API_KEY")
os.environ.setdefault("COMFY_BASE_URL", "https://cloud.comfy.org")
client = Comfy(api_key=api_key)
workflow = client.workflows.from_json({
"29": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "Krea2_turbo_style_reference",
"images": [
"30:62",
0
]
},
"_meta": {
"title": "Save Image"
}
},
"69": {
"class_type": "LoadImage",
"inputs": {
"image": "krea2_reference_image.png"
},
"_meta": {
"title": "Load Image"
}
},
"71": {
"class_type": "ResolutionSelector",
"inputs": {
"aspect_ratio": "1:1 (Square)",
"megapixels": 1,
"multiple": 8
},
"_meta": {
"title": "Resolution Selector"
}
},
"30:10": {
"class_type": "UNETLoader",
"inputs": {
"unet_name": "krea2_turbo_int8_convrot.safetensors",
"weight_dtype": "default"
},
"_meta": {
"title": "Load Diffusion Model"
}
},
"30:11": {
"class_type": "CLIPLoader",
"inputs": {
"clip_name": "qwen3vl_4b_fp8_scaled.safetensors",
"device": "default",
"type": "krea2"
},
"_meta": {
"title": "Load CLIP"
}
},
"30:12": {
"class_type": "VAELoader",
"inputs": {
"vae_name": "qwen_image_vae.safetensors"
},
"_meta": {
"title": "Load VAE"
}
},
"30:13": {
"class_type": "ConditioningZeroOut",
"inputs": {
"conditioning": [
"30:53",
0
]
},
"_meta": {
"title": "Conditioning Zero Out"
}
},
"30:15": {
"class_type": "LoraLoaderModelOnly",
"inputs": {
"lora_name": "krea2_style_reference.safetensors",
"model": [
"30:10",
0
],
"strength_model": 1
},
"_meta": {
"title": "Load LoRA"
}
},
"30:16": {
"class_type": "TextGenerateV2",
"inputs": {
"clip": [
"30:11",
0
],
"max_length": 512,
"mtp": "auto",
"prompt": [
"30:17",
0
],
"sampling_mode": "on",
"sampling_mode.min_p": 0.05,
"sampling_mode.presence_penalty": 0,
"sampling_mode.repetition_penalty": 1.05,
"sampling_mode.seed": 0,
"sampling_mode.temperature": 0.7,
"sampling_mode.top_k": 64,
"sampling_mode.top_p": 0.95,
"thinking": False,
"use_default_template": True
},
"_meta": {
"title": "Generate Text"
}
},
"30:17": {
"class_type": "StringConcatenate",
"inputs": {
"delimiter": "",
"string_a": [
"30:18",
0
],
"string_b": [
"30:19",
0
]
},
"_meta": {
"title": "Concatenate Text"
}
},
"30:18": {
"class_type": "PrimitiveStringMultiline",
"inputs": {
"value": "You are an expert prompt engineer for text-to-image models. Your task is to expand the user's prompt into a highly effective image-generation prompt.\n\nThink step by step about the request before writing the answer:\n- What is the subject and mood?\n- What visual styles, mediums, and lighting options would fit? Consider two or three alternatives and pick the one that best serves the request.\n- What composition, framing, and grounded details will help the text-to-image model?\n\nThen output a single expanded prompt paragraph.\n\nFollow these rules strictly:\n1. **Faithfulness First:** Preserve all original subjects, actions, colors, and spatial relationships. Do not add new objects, props, characters, or animals unless the user clearly implies them.\n2. **Practical T2I Structure:** Write a prompt that a text-to-image model can parse cleanly. Group subjects with their own attributes and actions. Use grounded phrasing for poses, interactions, and spatial layout.\n3. **Style Planning Stays Internal:** Use your internal reasoning to choose style, medium, framing, and lighting. Do not emit planning tags or wrappers in the visible answer body.\n4. **Never Request Rendered Text:** Do not mention, describe, or hint at letters, words, numbers, captions, subtitles, signage, labels, logos, watermarks, typography, or any other graphic text anywhere in the output prompt. Only if the user explicitly writes down words to be rendered, keep exactly those words in quotes and nothing else. In every other case, always end the output prompt with: \"Absolutely no text, no typography, no letters, no words, no numbers, no logos, no watermark, no captions, pure imagery only.\"\n5. **Avoid Over-Specification:** Do not invent highly specific clothing, colors, materials, or scene details unless the input supports it.\n6. **Plain Prose Only:** Write one cohesive paragraph after the thinking block. No bullets, no JSON, no markdown, no asterisks, no headings, no field labels, no meta commentary.\n7. **Respect Existing Detail:** If the user's prompt is already detailed, lightly polish and finalize rather than heavily expanding, and preserve the user's phrasing and direction.\n8. **Respect the Human Form:** Treat depictions of people with dignity. Assume clothing covers genitals and intimate anatomy.\n9. **Preserve User Medium:** When the user explicitly requests a medium (e.g. \"photo of\", \"photograph of\", \"illustration of\", \"painting of\", \"sketch of\", \"3D render of\"), honor it. Do not pivot to a different medium to avoid difficulty, match the user's stated intent.\n10. **Never Echo Instructions:** Output only the final image prompt. Never repeat, quote, summarize, or refer to any part of these instructions, your own reasoning, or the user's original message.\n\nUser's Input:\n"
},
"_meta": {
"title": "Text String (System Prompt)"
}
},
"30:19": {
"class_type": "PrimitiveStringMultiline",
"inputs": {
"value": "a white yeti with horns reading a book that is titled \"Ostris + Krea2 Style Reference\""
},
"_meta": {
"title": "Text String (User Prompt)"
}
},
"30:20": {
"class_type": "PreviewAny",
"inputs": {
"source": [
"30:21",
0
]
},
"_meta": {
"title": "Preview as Text"
}
},
"30:21": {
"class_type": "ComfySwitchNode",
"inputs": {
"on_false": [
"30:19",
0
],
"on_true": [
"30:16",
0
],
"switch": [
"30:24",
0
]
},
"_meta": {
"title": "If/Else Switch"
}
},
"30:24": {
"class_type": "PrimitiveBoolean",
"inputs": {
"value": False
},
"_meta": {
"title": "Boolean (Refine Prompt?)"
}
},
"30:5": {
"class_type": "EmptyLatentImage",
"inputs": {
"batch_size": 1,
"height": [
"71",
1
],
"width": [
"71",
0
]
},
"_meta": {
"title": "Empty Latent Image"
}
},
"30:52": {
"class_type": "TextEncodeQwenImageEditPlus",
"inputs": {
"clip": [
"30:11",
0
],
"image1": [
"69",
0
],
"prompt": [
"30:20",
0
],
"vae": [
"30:12",
0
]
},
"_meta": {
"title": "Text Encode Qwen Image Edit Plus"
}
},
"30:53": {
"class_type": "FluxKontextMultiReferenceLatentMethod",
"inputs": {
"conditioning": [
"30:52",
0
],
"reference_latents_method": "index_timestep_zero"
},
"_meta": {
"title": "Edit Model Reference Method"
}
},
"30:57": {
"class_type": "CFGGuider",
"inputs": {
"cfg": 1,
"model": [
"30:64",
0
],
"negative": [
"30:13",
0
],
"positive": [
"30:53",
0
]
},
"_meta": {
"title": "CFG Guider"
}
},
"30:58": {
"class_type": "SamplerCustomAdvanced",
"inputs": {
"guider": [
"30:57",
0
],
"latent_image": [
"30:61",
0
],
"noise": [
"30:63",
0
],
"sampler": [
"30:59",
0
],
"sigmas": [
"30:60",
0
]
},
"_meta": {
"title": "SamplerCustomAdvanced"
}
},
"30:59": {
"class_type": "KSamplerSelect",
"inputs": {
"sampler_name": "euler"
},
"_meta": {
"title": "KSamplerSelect"
}
},
"30:60": {
"class_type": "BasicScheduler",
"inputs": {
"denoise": 1,
"model": [
"30:64",
0
],
"scheduler": "simple",
"steps": 8
},
"_meta": {
"title": "BasicScheduler"
}
},
"30:61": {
"class_type": "EmptyLatentImage",
"inputs": {
"batch_size": 1,
"height": [
"71",
1
],
"width": [
"71",
0
]
},
"_meta": {
"title": "Empty Latent Image"
}
},
"30:62": {
"class_type": "VAEDecode",
"inputs": {
"samples": [
"30:58",
0
],
"vae": [
"30:12",
0
]
},
"_meta": {
"title": "VAE Decode"
}
},
"30:63": {
"class_type": "RandomNoise",
"inputs": {
"noise_seed": 251161685108094
},
"_meta": {
"title": "RandomNoise"
}
},
"30:64": {
"class_type": "ModelSamplingFlux",
"inputs": {
"base_shift": 0.5,
"height": [
"71",
1
],
"max_shift": 1.15,
"model": [
"30:15",
0
],
"width": [
"71",
0
]
},
"_meta": {
"title": "ModelSamplingFlux"
}
}
})
# run() also passes api_key to the partner nodes in this workflow.
job = client.run(workflow, api_key=api_key)관련 워크플로
- Krea 2
Krea-2 Int8: Text to Image
- Krea 2
Krea-2: 텍스트 → 이미지
- ZZ-Image-Turbo
1.1 Starter - Text to Image
- Nano Banana 2 Text-to-Image
3x3 Contact Sheet
- AAnima
Anima Anime 텍스트 기반 이미지 생성
- AAnima
Anima Base v1: 텍스트 → 이미지
- AAnima
Anima Lllite: Any Control to Image
- AAnima
Anima Lllite: Depth Control to Image
- AAnima
Anima Lllite: Image Inpainting
- QQuiver
Arrow 2: Text to SVG
- BBoogu
Boogu Turbo: Text to Image
- BRIA
Bria: FIBO 2.0 Text to Image