Nodes/comfyui-PD_comfy-api-node/PD: Krea 2 Image (comfyui_apikey)
ComfyUI Node

PD: Krea 2 Image (comfyui_apikey)

Run Krea 2 in your ComfyUI graph without downloading a 12B model

By 7BEII·Created 10 months ago·Updated 10 days ago· 2
PD: Krea 2 Image (comfyui_apikey)
  • style_reference
  • image
  • info
  • price
comfy_api_key
prompt
modelKrea 2 Medium Turbo
aspect_ratio1:1
resolution1K
creativitymedium
seed0
moodboard_id
moodboard_strength0.35

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 Large is 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 - raw through high, controlling how literally the prompt is interpreted. raw is 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 info output 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 info rather 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.

CategoryPD_Tools/Image_Generation

Inputs (10)

NameTypeDefaultDescription
comfy_api_keySTRING
promptSTRINGText prompt for Krea 2 image generation.
modelCOMBOKrea 2 Medium TurboMedium Turbo is fastest; Large is best for photorealism.
aspect_ratioCOMBO1:1Output aspect ratio.
resolutionCOMBO1KResolution scale.
creativityCOMBOmediumPrompt interpretation strength.
seedINT00–2147483647Random seed for reproducibility.
moodboard_idSTRINGOptional Krea moodboard UUID from the Krea website.
moodboard_strengthFLOAT0.35-0.5–1.5Moodboard influence; ignored when moodboard_id is empty.
style_referenceoptKREA_STYLE_REFOptional chained style references from PD: Krea 2 Style Reference.

Outputs (3)

NameTypeDescription
imageIMAGE
infoSTRING
priceSTRING