PD: Krea 2 Image (comfyui_apikey)
Run Krea 2 in your ComfyUI graph without downloading a 12B model
- style_reference
- image
- info
- price
Krea 2 is one of the most interesting open image models of the last year - and also a 12B diffusion transformer you probably don't want to sit through sampling on your 3060. This node gives you the hosted Krea 2 instead, dropped straight into your ComfyUI graph as a normal node. It's part of the comfyui-PD_comfy-api-node pack, which wraps ComfyUI's own cloud API: you paste a ComfyUI API key, the image is generated on Comfy's servers, and a tensor comes back down the wire. No model files, no GPU load, no ComfyUI-Manager model download hunt.
Why you'd reach for it
The point of this node isn't to replace your local Krea 2 install - it's to get Krea 2 quality (or its moodboard/style-reference features, which the open weights famously don't ship with) inside a workflow without paying the GPU tax or wrestling with VRAM. It's the same trade every "bring your own API key" node makes: a few cents per image instead of an afternoon of setup. The KB's krea-2 panel is worth a read before you commit - the hosted API version notably skipped the alignment pass the open weights got, so it's less refusal-happy, but you're renting that, not owning it.
How it works
The node is a thin HTTP client. It POSTs your prompt to https://api.comfy.org/proxy/krea/generate/image/krea/krea-2/<model> with your key in the X-API-KEY header, then polls a job endpoint until the image is done, decodes the returned PNG into a standard ComfyUI tensor, and hands you the cost estimate. If you chain a style reference in, it uploads that image to Krea's asset endpoint first. "Model" is a dropdown that just picks which proxy path to hit - the heavy lifting is all on Comfy's side.
The inputs that actually matter
- comfy_api_key - from comfy.org/api-keys. This is the whole ballgame; without it the node returns an error.
- model -
Krea 2 Medium Turbo(default) is fastest,Krea 2 Largeis best for photorealism. You'll pay for it: roughly $0.015, $0.03, and $0.06 a call respectively from the source's pricing table. - creativity -
rawthroughhigh, controlling how literally the prompt is interpreted.rawis the one Krea-2 people end up reaching for. - moodboard_id / moodboard_strength - an optional Krea website moodboard UUID plus its influence (0.35 default). Ignored when the ID is empty.
- style_reference - optional chained input from PD: Krea 2 Style Reference if you want image-driven styling.
- seed, aspect_ratio (8 options), resolution (currently only 1K).
Installing it
Install the whole pack once; it ships all the PD nodes together.
cd ComfyUI/custom_nodes
git clone https://github.com/7BEII/comfyui-PD_comfy-api-node.git
Restart ComfyUI and the node appears under PD_Tools/Image_Generation. The README tells you to pip install -r requirements.txt, but heads-up: there is no requirements.txt in the repo. What actually matters is that ComfyUI's official API nodes (comfy_api_nodes) are installed, which they already are if you run ComfyUI Desktop. ComfyUI Manager also finds the pack by searching "comfyui-PD_comfy-api-node".
Troubleshooting
- Black image out - that's the node's error placeholder, not a successful generation. Read the
infooutput for the actual error string. moodboard_id must be a UUID- the field wants a real Krea moodboard UUID; it validates the format before calling out.- Slow generations - the job poll can wait a while; 1K resolution and Turbo help. If you're on a flaky connection, the node surfaces connection errors in
inforather than crashing the workflow.
Wire the image output into a preview or save node, and you're done - price even shows the estimated cost in USD, RMB, and Comfy credits so you know what you just spent.
Inputs (10)
| Name | Type | Default | Description |
|---|---|---|---|
| comfy_api_key | STRING | — | |
| prompt | STRING | Text prompt for Krea 2 image generation. | |
| model | COMBO | Krea 2 Medium Turbo | Medium Turbo is fastest; Large is best for photorealism. |
| aspect_ratio | COMBO | 1:1 | Output aspect ratio. |
| resolution | COMBO | 1K | Resolution scale. |
| creativity | COMBO | medium | Prompt interpretation strength. |
| seed | INT | 00–2147483647 | Random seed for reproducibility. |
| moodboard_id | STRING | Optional Krea moodboard UUID from the Krea website. | |
| moodboard_strength | FLOAT | 0.35-0.5–1.5 | Moodboard influence; ignored when moodboard_id is empty. |
| style_referenceopt | KREA_STYLE_REF | Optional chained style references from PD: Krea 2 Style Reference. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |
| info | STRING | — |
| price | STRING | — |