PD: Krea 2 Style Reference (comfyui_apikey)
Feed Krea 2 a style image — the reference node the open weights never got
- image
- style_reference
- style_reference
Krea 2's open weights are great, but one thing they famously don't include is Krea's hosted style-reference module - the feature that lets you say "make it look like this image" and have it actually hold. This node is the hosted-API end of that: it uploads a reference image to Krea's asset service through ComfyUI's cloud proxy and produces a KREA_STYLE_REF value that you feed into PD: Krea 2 Image's style_reference input. Same pack, same ComfyUI API key, no local model involved.
Why you'd reach for it
If you're generating Krea 2 images through the PD node and find yourself typing "in the style of" a dozen times, this is the upgrade. You get actual image-driven style transfer - the thing Krea's paid product does - but inside a ComfyUI graph where you can chain it, switch it, and rerun it with a different reference.
How it works
Give it an image and a strength, and it POSTs the image to https://api.comfy.org/proxy/krea/assets with your key, gets back a hosted URL, and packages that URL plus your strength into a KREA_STYLE_REF. The receiving Krea 2 node collects every style reference in the chain, bundles them into the generation payload, and the whole thing runs on Comfy's servers. The mechanism is simple enough that the node has exactly one output: style_reference.
The inputs:
- comfy_api_key - from comfy.org/api-keys, same one you use for the image node.
- image - the reference whose style you want applied.
- strength - default 1.0, range −2 to 2. Negative values invert the style influence, which is a genuinely odd knob Krea exposes; in practice people stay in the 0.5–1.5 band.
- style_reference (optional) - an incoming chain from another instance of this node. It appends, so you can stack multiple references and the Krea 2 image node will apply them all.
Chaining and limits
Want two style refs? Two of these nodes, second one's style_reference plugged into the first's output, final output into PD: Krea 2 Image. One caveat from the source: Krea caps the chain at 10 style references, and the image node will error if you exceed that. You'll also pay a small premium over plain text generation - the style path runs about $0.0175 on Turbo versus $0.015 for text - which the price output on the image node will cheerfully show you.
Installing it
It's part of the comfyui-PD_comfy-api-node pack, so install that once:
cd ComfyUI/custom_nodes
git clone https://github.com/7BEII/comfyui-PD_comfy-api-node.git
Restart ComfyUI, find it under PD_Tools/Image_Generation. Note the README's pip install -r requirements.txt is a ghost - no requirements.txt ships; the real requirement is ComfyUI's official API nodes (comfy_api_nodes), which Desktop bundles.
Gotchas
- Error on the image node - if the style ref fails to upload, you'll get a black placeholder image with an error in the
infooutput. Check that the key is valid and the network is up. - Strength can be negative - don't be surprised when a negative value produces something that looks inverted rather than merely "less styled."
- Don't reuse this node for content references - it's style transfer, not identity/subject transfer. For keeping a subject consistent you want a different mechanism entirely.
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| comfy_api_key | STRING | — | |
| image | IMAGE | Reference image whose style influences Krea 2 generation. | |
| strength | FLOAT | 1.00-2–2 | Reference strength; negative values invert the style influence. |
| style_referenceopt | KREA_STYLE_REF | Optional incoming chain; this node appends one more reference. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| style_reference | KREA_STYLE_REF | — |