--- name: krea2-prompting description: >- Set up ComfyUI for Krea 2, download its checkpoints, LoRAs and VAE, then render images end to end: write or debug the prompt, pick size and sampler settings, build and queue the API graph, fetch the frame and judge it. Use when the user asks for an image (Krea 2 is assumed when no model is named), an image prompt, a render, a batch or seed sweep, a masked edit, a LoRA or model install, a first-time ComfyUI setup, a broken workflow, or asks about reference images, character consistency, pose or style blocks, speech bubbles, Krea 2 settings, or NSFW/18+ images. license: CC-BY-SA-4.0. Full text in LICENSE. compatibility: >- Writing prompts and settings needs file reads only. Rendering needs python3 and a reachable ComfyUI (default http://127.0.0.1:8188, or $COMFY_URL) with the Krea 2 files installed; Pillow for the image helpers, and the Ultralytics detector pack for `scripts/mask.py --detect`. Hosted clients with content filters may block references/adult.md, which is 18+. metadata: version: "2.0.1" author: rakshazi source: https://github.com/rakshazi/krea2-prompting tested-on: >- ComfyUI 0.45.4 and 0.46.3; Krea 2 Turbo fp8_scaled and Turbo finetunes; qwen3vl_4b_fp8_scaled; qwen_image_vae; 8 steps, CFG 1.0, euler; reference images, LoRA stacks and masked edits --- # Krea 2 Turbo Prompting Turn a visual brief, reference image, or scene idea into a copy-ready Krea 2 Turbo prompt plus ComfyUI settings, and render it when a ComfyUI server is reachable. Describe what is visible, where it sits, how light hits materials, and what camera would capture it. ## Mental model Krea 2's text encoder is **Qwen3-VL, a language model** (the same family as a chat LLM, where older image models use CLIP or T5). It parses full sentences. Four consequences drive everything below: - **Write natural-language prose.** Tag soup (comma keyword piles) still functions but leaves capability on the table. Long detailed prompts yield the best results; 5 to 20 words is fine for exploration. - **Order carries emphasis.** Whatever comes first reads as the subject. Lead with the thing that matters most. - **Realism comes from a photographic setup.** The model is trained against the plastic "AI look", so name the camera, lens, light and material. Stacking `ultra realistic, 8k, masterpiece` does little. - **A reference image outranks adjectives.** The encoder is also a vision model: an attached picture supplies identity, outfit and proportions directly, and the prompt is spent on scene and style. ## Settings Krea 2 Turbo in ComfyUI. Recommend these as defaults. | Setting | Value | Note | |---|---|---| | Steps | `8` | Turbo is distilled to 8. More steps grow noisier (tested: 50 steps + CFG 2.5 shredded texture). | | CFG | **`1.0`** | The official CLI says `0.0`; in a ComfyUI KSampler literal `0.0` is pure unconditional output and breaks the image. Above ~1.5 it oversaturates and distorts. | | Sampler | `euler` | Holds across every combination tested. | | Scheduler | `beta` for illustration, either for photography | `beta` adds the small stuff: garment folds, jacket lining, hair strands, fur. `simple` gives flatter fills and plainer shapes, and at shift 4.0 it can leave speckle in flat backgrounds. On photoreal frames the two land close, so texture decides there. | | Shift (mu) | `1.15` compact and grainy, `4.0` smooth and slim | A style dial, independent of the scheduler. `1.15` reads denser and bolder with compact, stockier proportions and grainier skin with more visible surface defects. `4.0` reads cleaner and smoother with taller, slimmer proportions. | | Recommended | `4.0` + `beta` for illustration | Cleanest linework with the most small detail. Swap to `1.15` + `beta` when the brief wants a compact, denser-ink build, and to `simple` when it wants flat poster-like fills. | | Resolution | Native `2048`; minimum `1024`; dims divisible by 16 | Trained at 2048. Generate native; avoid gen-at-1024-then-upscale. Panoramic ratios widen the long edge past it. | | Text encoder | `qwen3vl_4b` | fp8_scaled (lighter) or bf16 (higher precision, more VRAM). Keep the stock build: an abliterated "heretic" build renders flatter and follows the prompt less, `references/adult.md`, "Checkpoint and encoder". | | VAE | `qwen_image_vae` | If colours or fine texture look subtly off, check this first. | Aspect ratio follows the composition: `1:1` product/portrait, `16:9` cinematic/hero, `2.35:1` panoramic (a 21:9 ask lands here), `4:5` or `2:3` or `9:16` poster/phone, `4:3` broad environment. Pixel sizes per ratio are in `references/krea2-core.md`, "Resolution table". A community finetune may ship its own text encoder, VAE, shift and sampler: take those from its model card. The CFG value and everything about prompting still apply. ## Prompt architecture Write one or two coherent paragraphs in this order, adjusting to the task: ``` [medium / restrained quality] + [subject and identity] + [appearance, pose, action, expression] + [composition and camera] + [environment and spatial relations] + [lighting and colour] + [materials and micro-detail] + [aesthetic and mood] + [restrictions] ``` A reliable sentence frame: > A [medium/style] of [subject], [appearance and action], set in [environment]. The composition uses [shot, angle, lens], placing [subject] relative to [frame and other elements]. Light comes from [direction/source] with [shadow and palette]. [Materials and micro-detail] stay visible, creating a [mood] atmosphere. [Restrictions]. Make spatial relationships grammatical and explicit (left/right thirds, foreground/midground/background, contact with surfaces, what extends beyond the frame). Name a concrete medium (`editorial fashion photography`, `documentary photograph`, `architectural photography`) where a weaker prompt says `beautiful` or `nice`. ## End to end One ask covers the whole chain: install, files, prompt, render, verdict. Walk it in this order, and skip to the step the brief actually needs. 1. **Check the server.** `python3 scripts/comfy.py` prints its version, or one line naming the fix. When ComfyUI is unreachable, answer with the prompt, the settings and the command to run, and say the render did not happen. That is a complete answer. 2. **Get the files in place.** A first install, a missing loader file, a LoRA to add: `references/comfyui-install.md` has the install routes, the folder map, the download recipes and the verify step. 3. **Write the prompt.** Workflow below: classify, read one route reference, lock the composition, draft in the sentence frame, check every line of "Every prompt". 4. **Render.** `references/rendering.md` holds the graph, a scenes batch, a seed sweep and the failure table, and lists the scripts: `render.py`, `inpaint.py`, `mask.py`, `compose.py`, `cutout.py`, `contact_sheet.py`, plus the `comfy.py` health check. 5. **Look at the frame.** Read the webp the render wrote and judge it against the brief before reporting. A path with no look is not a verdict. 6. **Report** with the closing shape below: path, settings, and what the frame shows. The server is optional. Without one, the skill still writes prompts and settings, and says plainly that nothing was rendered. Never invent a file path or a render you did not run. ## Workflow 1. **Classify the brief.** Pick the route (photoreal, style, pose, adult, giant-scale) and pull out the hard constraints: text to render, aspect, register, number of people, what must stay fixed. Ask only when a missing detail changes the picture; otherwise state the assumption and proceed. 2. **Read one reference by route** (Routes, below). Add a second only when the brief spans two routes. 3. **Lock composition before writing.** One shot size, one angle, one crop, one aspect ratio. Wardrobe and decoration come after and must leave the framing alone. 4. **Draft in the sentence frame.** Subject first, then action, camera, environment, light, materials, mood, in full sentences. 5. **Check the draft** against every line of "Every prompt", then against each row of "When the brief contains" that matches. Fix what fails. 6. **Emit in the output shape** at the end of this file. ## Every prompt - **State what IS present.** Negation is near-inert at CFG 1.0, in the negative field and in prose alike. `no people` becomes `an empty street`; `no plastic skin` becomes `skin with visible pores`. A negated noun can backfire: the encoder may reinforce the thing you tried to ban. A short negative prompt earns its place only to suppress one specific recurring artifact. - **Cut the quality stack.** `8k, masterpiece, best quality, ultra detailed` buys nothing and makes the image look generic. Scan the draft for it and spend those words on camera, lens, light and material. - **Rendered text goes in double quotes, five words at most, on a flat surface facing the camera:** `a neon sign reading "OPEN LATE"`. A banner, a box or a plate letters cleanly; a curved can label or a rolled scroll comes back with invented strokes or reversed letters. - **Count anything that must appear once.** An uncounted label or prop gets duplicated. Name the one instance, then say what the frame's other lettering is: `exactly one small brass plate on the counter's front edge reads "OMP", and the neon sign is the only other lettering in the scene`. For a person, "the only figure in the frame" is a weak hint: with a long prop list she still cloned herself, so keep the list short and re-roll. Counting is not enough by itself: a counted object described in two clauses still comes back as two objects, and a character whose position is stated twice comes back as two characters. One clause per object, one placement per character: `references/krea2-core.md`, "Staged props and deliberate artifacts". - **Dress a character top to bottom.** Name the lower garment and the hosiery in the same clause as the top, every time, including for a character you think is fully described. A clause that stops at the hoodie renders nothing below the waist. - **Emphasis goes in words.** `oxblood` beats `(red:1.4)`: on the stock encoder a weight shoves the whole conditioning and the image falls apart past ~1.2. - **Sort a defect before rewording: prompt or seed.** Render the prompt on four seeds. A defect on three or four is the prompt's, so delete the element that causes it; on one or two, keep a clean seed. Then change one field per iteration on a held seed, since several changes at once hide which one did what. A defect that arrives as a different wrong object every seed is a third bucket: the model has no concept of that object, so swap in a familiar object that does the same job, or add the real one in post. Receipts: `references/krea2-core.md`, "Sorting a defect: prompt or seed" and "When the object itself is missing". ## When the brief contains Each row is a tested failure with its fix. The reference holds the exact wording. | In the brief | Do this | Wording and receipts | |---|---|---| | "Make me this image" rather than a prompt | Write the prompt, then render it: graph, scripts and failures are in `references/rendering.md`. Read the webp before you reply, and report what the frame actually shows. | `references/rendering.md` | | A LoRA or checkpoint the server does not list | Install it and prove the loader sees it before queuing anything. | `references/comfyui-install.md`, "Verify before you render" | | A line longer than five words, or a speech bubble | Generate one blank bubble and typeset the line after the render. Ask for the bubble up front, or the head fills the top of the frame. | `references/krea2-core.md`, "Text and lettering" | | A screen: chart, chat window, terminal or dashboard | Generate the screen area empty and paste a real screenshot over it. Rewording never fixes a whole interface. | `references/krea2-core.md`, "Text and lettering" | | A hand holding an object | An open palm presenting it, or a cuff, handle or stick for the fist to wrap. Name the contact. A closed fist on a bare object breaks, and a cup at chest height swallows the fingers behind it. | `references/poses.md`, "Hands and held objects" | | A figure at or behind a table, desk, counter or bench | Delete the furniture and put its props in her hands or on the floor. A bench that stays in the prompt is drawn across her on half the seeds, and depth wording does nothing. | `references/krea2-core.md`, "Figures and furniture" | | A detached or uncanny prop, or a deliberate anatomy joke | Give it a material the character cannot share, and state a visible gap between prop and body. | `references/krea2-core.md`, "Staged props" | | A named instrument the model may not know (a historical, professional or branded tool) | Name a familiar object that does the same job in the same place, or render the scene bare and add the real tool in post. A different wrong object every seed says the concept is absent, and rewording only changes which wrong shape appears. | `references/krea2-core.md`, "When the object itself is missing" | | A doorway or a window in the background | Build the door out of its frame, panel, knob and step, and fill the window with a flat pane and one mullion. A bare opening reads as a wall, and a window frame alone as an empty rectangle. | `references/krea2-core.md`, "Figures and furniture" | | A recurring character, "same as last time" | Attach one clean single-pose reference and open the prompt with `Keep the same from Picture 1: .` The reference sets proportions whatever the prose says. | `references/reference-images.md` | | Two characters from two references | One side and one distinct action each, plus the 0.25 layout split. If one keeps cloning, render two single-reference shots. | `references/reference-images.md`, "Two or more references" | | A set with a cast and props, or two or more figures | Render the empty set, each character alone on plain paper, and each prop alone, then composite. Do not ask one render to stage the set and the cast. | `references/reference-images.md`, "Slices: one element per render" | | Pale, even or matching skin tone | Swap flash for soft overcast daylight at a neutral white balance, and tie the tone to a named body part. | `references/photoreal.md`, "Skin tone" | | A LoRA that seems to do nothing | A/B at one fixed seed up to ±3 or ±5 before writing it off. A slider reads dead at ±1.5. | `references/comfyui-setup.md`, "LoRA strength" | | Emphasis that words cannot give | Weights and negative weights, which need the `Krea2PromptWeight` node. | `references/comfyui-setup.md`, "Prompt weighting" | | An edit to a picture that already exists: enlarge a region, remove an object, change what a body part looks like | Masked inpaint, never a re-roll. Describe the whole finished frame, let the black fill set how much may move, and drop every mention of anything being removed. | `references/inpainting.md` | ## Routes Read the reference that matches the picture. Each loads only when read. - **`references/photoreal.md`**: any realistic photograph (portrait, product, landscape, architecture, street, editorial). **The default for website and landing-page imagery.** Camera, lens, film and light vocabulary, skin tone, genre recipes with example prompts. - **`references/krea2-core.md`**: posters and lettering, bubbles and screens, staged props, character replacement, the identity block for a recurring character, composition modules, negative families for a live-negative path, the resolution table, and turning a reference image into a prompt. - **`references/reference-images.md`**: a character, outfit or style that must come from a picture. Both ComfyUI wirings (vision tokens for identity, reference latents for style), the `Picture N` prompt shape, the layout split, reference-sheet rules, a failure table. - **`references/comfyui-install.md`**: installing ComfyUI, the folder map, the public Krea 2 file set with sizes, download recipes for Hugging Face and CivitAI, optional node packs, hardware. Read before a first render, or when a loader cannot find a model. - **`references/rendering.md`**: the API graph and its wiring rules, the queue loop, the seven scripts, a scenes batch, a seed sweep, masked edits end to end, the size table, the failure table. Read when the frame itself is wanted. - **`references/comfyui-setup.md`**: prompt weighting and negative weights, LoRA strength, the RAW checkpoint, and the troubleshooting table. - **`references/poses.md`**: a pose that must be exact. The 11-field schema and how to adapt it. **`references/pose-library.md`** holds 30 ready-to-paste blocks. - **`references/styles.md`**: locking a named aesthetic. A 289-entry style index, four full paragraphs, two authoring formulas. - **`references/adult.md`**: adult / NSFW photography (18+). Register control, explicit vocabulary, position geometry, multi-person rules, a tested failure table, and translating a crude brief into prose. - **`references/inpainting.md`**: changing a picture that already exists. The edit LoRA and Ostris patch stack, the whole-picture prompt rule, removal and contradictions, what a mask cannot do, crop-render-composite for detail, framing the black fill, a failure table. - **Giant scale**, photoreal cinematic by default: `references/megastructure.md` (colossal architecture, megacities, orbital structures), `references/colossal-monsters.md` (kaiju, giant beasts), `references/cosmic-horror.md` (eldritch entities, dread), `references/pure-organic-monsters.md` (strictly biological giants). All four share one scale logic: concrete exaggerated dimensions, human-scale surface units, a tiny distant scale reference, and 10 to 40 percent environmental negative space. - **`examples/README.md`**: ten topics, each written generic and with this skill, with both renders. Open one when the user asks what the skill changes or wants a style anchor. ## Output shape Unless the user asks for a different format, return: ``` Positive Prompt [one or two natural-language English paragraphs] Settings Resolution: [width x height] Aspect ratio: [ratio] Krea 2 Turbo (ComfyUI): 8 steps, CFG 1.0, euler, shift 4.0 + beta ``` When you rendered, add: ``` Render Path: [the webp path] Settings: [size, seed, steps, cfg, sampler, shift] Verdict: [what the frame does match, and the one thing it misses] ``` End with one line telling the user to render four seeds before rewording anything. Add a short negative prompt only when a specific artifact needs suppressing. Never claim a prompt you wrote was tested unless it was. Editing this skill: read `AGENTS.md` in this directory first.