Logo Krea2 Txt2img

Krea2 Txt2img

Cộng đồng
artokun
krea2-txt2img

Tạo quy trình txt2img cho Krea 2 Turbo bằng CLIPLoader krea2 gốc, bộ mã hóa Qwen3-VL, VAE ảnh Qwen, thiết lập turbo 8 bước và cách tạo prompt JSON kiểu Ideogram

Add to TypingMind

Tổng quan

Nhà phát hànhartokun
Kho mãcomfyui-mcp
Tên kỹ năngkrea2-txt2img
Sao
811
Bản fork
137
Tệp đi kèm
Chỉ có hướng dẫn
Giấy phépMIT
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • Hướng dẫn có đủ mọi thứ cần thiết

    Mọi thứ mô hình cần đều nằm trong hướng dẫn — không có tệp bổ sung cần đồng bộ.

  • Mã nguồn mở

    Được artokun công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Krea2 Txt2img trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/artokun/comfyui-mcp/tree/main/plugin/skills/krea2-txt2img
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/artokun/comfyui-mcp.git /tmp/comfyui-mcp
mkdir -p .claude/skills
cp -r /tmp/comfyui-mcp/plugin/skills/krea2-txt2img .claude/skills/krea2-txt2img
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Krea2 Txt2img trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Krea2 Txt2img ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Krea2 Txt2img với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

Krea 2 Text-to-Image Workflows

Overview

Krea 2 is a 12B-parameter Diffusion Transformer from Krea.ai (released June 2026, weights open-sourced under the Krea 2 Community License, free commercial use up to 50 seats). Two variants:

  1. Krea 2 Raw is the base checkpoint before extra post-training. For fine-tuning / maximum fidelity, more steps.
  2. Krea 2 Turbo is post-trained and distilled; it generates in ~8 steps at cfg 1. This is what the krea2 txt2img packs ship.

Three packs (V2 — no group toggles)

Sliced from the KREA2 ULTRA V2 monolith into standalone single-pipeline packs. Pick by how you prompt and what you want:

  • krea2-txt2img-manual: plain prose prompt (the MANUAL PROMPT node).
  • krea2-txt2img-json: Ideogram-4-style structured JSON / area prompting (Ideogram4PromptBuilderKJ).
  • krea2-combo: two-pass detail boost, a first pass then a low-denoise refine (denoise 0.3), with the krea2 turbo LoRA @0.2 on both passes plus the optional IdeoKrea LoRA. JSON/Ideogram-style prompting; saves both passes to compare.

Each pack's one prompt source is active (no prompt-mode bypass to flip). ImageSharpenKJ runs before SaveImage. V2 adds the Krea2T-Enhancer MODEL detail-boost patch (ships active) and drops v1's ConditioningKrea2Rebalance. RBG_Smart_Seed_Variance ships bypassed (optional, see below).

Krea 2 has native ComfyUI support (comfy/text_encoders/krea2.py, ComfyUI ≥ v0.26.0). The CLIPLoader uses type=krea2, with a Qwen3-VL 4B text encoder and the Qwen image VAE. The Qwen3-VL encoder drives strong prompt adherence and structured-JSON prompts.

Models (all from the Aitrepreneur/FLX mirror; official: krea/Krea-2-Turbo)

SlotFileNotes
diffusion_models/krea2_turbo_fp8.safetensors12B Turbo, fp8 — RTX 4000/3000/2000
diffusion_models/krea2_turbo_mxfp8.safetensorsRTX 5000 (Blackwell) native fp8
text_encoders/qwen3vl_4b_fp8_scaled.safetensorsQwen3-VL 4B encoder
vae/qwen_image_vae.safetensorsQwen image VAE
loras/krea2_turbo_lora_rank_64_bf16.safetensorsturbo LoRA — combo only, @0.2 both passes
loras/IdeoKrea-test.safetensorsOPTIONAL Ideogram-style LoRA (Aitrepreneur/IdeoKrea) — combo add-in

Node stack

  • core: UNETLoader (krea2_turbo) → CLIPLoader (type=krea2) → VAELoader (qwen_image_vae), wired via KJNodes SetNode/GetNode buses into a subgraph (CLIPTextEncode → KSampler → VAEDecode). An rgthree Any Switch sits in front of the encoder; in each pack only that pack's prompt source is wired to it (manual node in -manual, JSON builder in -json).
  • rgthree-comfy: Power Lora Loader, Any Switch, Label, Fast Groups.
  • ComfyUI-KJNodes: Set/Get, Ideogram4PromptBuilderKJ, ImageSharpenKJ, INTConstant.
  • ComfyUI-Krea2T-Enhancer (capitan01R): Krea2T-Enhancer, the V2 MODEL→MODEL detail-boost patch, wired in the model path (PowerLora → Krea2T-Enhancer → sampler). Ships active; bypass to compare against the un-boosted result.
  • ComfyUI-RBG-SmartSeedVariance: RBG_Smart_Seed_Variance, optional, ships bypassed in the positive-conditioning loop.
  • ComfyUI_essentials (cubiq): ImageResize+, combo only (the two-pass VAE-roundtrip resize).

Settings that matter

  • steps 8, cfg 1. Turbo is distilled; more steps or higher cfg over-cooks it.
  • sampler er_sde, scheduler simple are the verified defaults.
  • 1920×1080 default; Krea 2 handles a wide aspect range.
  • The prompt source is fixed per pack (manual node vs JSON builder). There is no prompt-mode bypass to flip.

V2 detail boost (Krea2T-Enhancer) + combo

  • Krea2T-Enhancer is a MODEL→MODEL patch (the V2 "massive detail boost"). It sits inline in the model path and ships active in all three packs. Widgets are [on, strength, …]; bypass it (or toggle on) to A/B the boost.
  • krea2-combo is the full demonstration of the boost, a two-pass refine: FIRST PASS (8 steps, er_sde, denoise 1) → VAE roundtrip → SECOND PASS (4 steps, euler, denoise 0.3), with the turbo LoRA @0.2 on both passes. It SAVES BOTH passes so you can see the boost. The IdeoKrea LoRA is downloaded but NOT wired by default. Drop it into the Power Lora Loader's empty slot (start ~0.5 to 1.0; it's a test LoRA) for the turbo + IdeoKrea Ideogram-style combo.

Optional post-proc (ships bypassed — un-bypass to use)

All packs leave RBG_Smart_Seed_Variance in the positive-conditioning loop bypassed (passthrough). Un-bypass on the live canvas with panel_set_node_mode (or in the UI) for controlled variations of the same prompt without changing the composition. Set its seed mode to randomize and tune the variance mode (e.g. 🌿 Balanced) / strength widgets. Leave bypassed for a deterministic result.

JSON / area prompting

Like Ideogram 4, Krea 2's Qwen3-VL encoder reads structured prompts (per-region desc + bounding boxes + palettes). For structured prompting use the krea2-txt2img-json pack; its Ideogram4PromptBuilderKJ drives the encoder directly (no bypass to flip). After the render, VERIFY the image matches the JSON you set (view it) BEFORE continuing; if it doesn't, a field is probably stale. Fix and rerun. Gotchas learned the hard way:

  • Set ALL the builder fields, not only the prompt/boxes: background, technical, style, lighting (widgets 3/5/6/7). Leaving stale values leaks content (a leftover celebrity portrait bled into a tea still-life).
  • Keep palettes minimal or empty. A top-level palette with many colors can render as a literal color-swatch strip down the edge of the image. Empty palette: [] (top-level and per-box) gives a clean full-frame result.
  • Add "no people / single full-frame photograph" to style for object/landscape scenes. Krea 2 follows it well.

Verification status

  • v1 (-manual / -json core graph): render-verified, crisp 1920×1080 / 8 steps / cfg 1 / er_sde (snow-leopard prose + tea-still-life JSON with each object in its bbox).
  • V2 additions (the Krea2T-Enhancer active patch + the krea2-combo two-pass) are statically validated (clean slice + structural lint) but not yet live-rendered. They need the ComfyUI-Krea2T-Enhancer node, the turbo/IdeoKrea LoRAs installed, and a healthy ComfyUI. Re-run scripts/verify-render.mjs once those are present.
  • Note: the ImageSharpenKJ (rcas 0.55) before SaveImage is active. Bypassing it drops the image link (a converter gap: bypass-passthrough doesn't cross a subgraph IMAGE output), and the contrast-adaptive sharpen suits Krea 2's crisp look anyway.

Gotchas

  • CLIPLoader: 'krea2' not in list → ComfyUI too old; update to ≥ v0.26.0.
  • Torch not compiled with CUDA enabled → reinstall torch for your CUDA tag (--index-url https://download.pytorch.org/whl/cu128).

Sources

  • Official: none found.
  • Empirical: sampler values, wiring, and prompt notes from working graphs in packs/ and observed renders; not a vendor prompting guide.

Câu hỏi thường gặp

Kỹ năng AI Krea2 Txt2img làm được gì?

Tạo quy trình txt2img cho Krea 2 Turbo bằng CLIPLoader krea2 gốc, bộ mã hóa Qwen3-VL, VAE ảnh Qwen, thiết lập turbo 8 bước và cách tạo prompt JSON kiểu Ideogram

Vì sao nên dùng Krea2 Txt2img trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Krea2 Txt2img là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Krea2 Txt2img trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/artokun/comfyui-mcp/tree/main/plugin/skills/krea2-txt2img. TypingMind đọc tệp SKILL.md rồi cài đặt kỹ năng để bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Krea2 Txt2img?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Krea2 Txt2img với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Krea2 Txt2img với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Krea2 Txt2img có miễn phí không?

Có. Kỹ năng này được artokun phát hành trên GitHub theo giấy phép MIT. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇