Nodes/Runware.ai ComfyUI Inference API Integration/FLUX.1 Kontext [dev] (custom model)
ComfyUI Node

FLUX.1 Kontext [dev] (custom model)

Kontext dev's edits, without the 12B-model hardware bill

By Runware·Created 2 years ago·Updated about a month ago· 140
FLUX.1 Kontext [dev] (custom model)
  • referenceImages
  • lora
  • ultralytics
  • acceleratorOptions
  • advancedFeatures.watermark.image
  • image
modelrunware:106@1
positivePrompt
negativePrompt
size1K (1:1)
seed0
stepsfalse
steps_value1
scheduler(default)
CFGScalefalse
CFGScale_value0.00
trueCFGScalefalse
trueCFGScale_value0.00
numberResults1
advancedFeaturesfalse
advancedFeatures.watermark.bgColor
advancedFeatures.watermark.displayPosition(default)
advancedFeatures.watermark.fontColor
advancedFeatures.watermark.opacityfalse
advancedFeatures.watermark.opacity_value0.10
advancedFeatures.watermark.text
safetyfalse
safety.checkContentfalse
ttlfalse
ttl_value60
outputFormatJPG
outputQuality95

FLUX.1 Kontext [dev] is the model that made instruction-based editing feel like a party trick. Feed it an image and a sentence - "change the shirt to red," "remove the watermark" - and it edits in place, keeping the character's identity instead of redrawing a stranger. The community found it genuinely unsettling at watermark removal, and it became the go-to for turnaround-sheet character consistency. The catch has always been the footprint: Kontext is a full FLUX-scale model that wants a serious GPU.

This node deletes that problem. RunwareArch_flux_1_kontext_dev is the pack's "custom model" wrapper for the Kontext architecture - it defaults to the dev checkpoint (runware:106@1) but you can point the model field at any Kontext-architecture checkpoint sitting in Runware's catalog. The actual denoising happens on their servers; you get back a normal IMAGE.

How it works

Kontext is architecturally interesting: it consumes reference images in-context rather than through adapter embeddings like IP-Adapter. The reference image and the instruction prompt both ride in as conditioning, which is why identity sticks so well. Mechanically, this node is just a taskType: imageInference request over REST - the SDK sends your prompt, image, and settings, Runware runs the model, and the node downloads the result into an IMAGE tensor.

Inputs that matter

  • model - the AIR of the checkpoint. Defaults to the Kontext dev model, so most people never touch it.
  • positivePrompt - the instruction, written as what you want the image to become.
  • referenceImages - the source image(s) to edit, wired in from a Load Image node. For multiple inputs, batch them or chain Load Image nodes; Kontext accepts a set.
  • negativePrompt - honored only when CFG is above 1, so don't bother writing one if you run with guidance disabled.
  • steps / scheduler - steps is an off-by-default toggle that reveals steps_value; leave it off to use the model default. The scheduler dropdown has ~76 options, which is honestly more than you need.
  • lora - a typed socket for the pack's LoRA builder, if the checkpoint you picked is a fine-tune that expects one.

Install

cd ComfyUI/custom_nodes
git clone https://github.com/Runware/ComfyUI-Runware
pip install -r ComfyUI-Runware/requirements.txt

Or ComfyUI Manager → search Runware → Install → restart. Then add an API key in ComfyUI Settings → Runware API key (or RUNWARE_API_KEY). Prepaid, top-up style; the title bar shows each run's cost and NSFW check result.

Gotchas

  • No key → instant error. Check the console for "No Runware API key" before blaming the node.
  • The dev-tier Kontext license came with a clause about not circumventing content restrictions, which torched a lot of the community's LoRA ecosystem. Fine for legit editing, just know what you're standing on.
  • The image output does nothing until it's wired into Preview Image or Save Image - the classic "ran but saw nothing" failure.

If you want Kontext's editing without babysitting a 12B model, this is the cleanest way to get it. You trade a per-run cost for never thinking about VRAM again.

CategoryRunware/Custom models

Inputs (31)

NameTypeDefaultDescription
modelSTRINGrunware:106@1AIR of any checkpoint of this architecture. Use the search button to browse the catalog.
positivePromptSTRINGText prompt describing elements to include in the generated output.
referenceImagesoptIMAGE
loraoptRUNWARE_LORA
ultralyticsoptRUNWARE_ULTRALYTICS
acceleratorOptionsoptRUNWARE_ACCELERATOROPTIONS
advancedFeatures.watermark.imageoptIMAGE
negativePromptoptSTRINGPrompt to guide what to exclude from generation. Ignored when guidance is disabled (CFGScale ≤ 1).
sizeoptCOMBO1K (1:1)Output size. Only one of resolution or dimensions is sent.
seedoptINT00–9223372036854776000Random seed for reproducible generation. When not provided, a random seed is generated in the unsigned 32-bit range.
stepsoptBOOLEANfalseEnable to set steps. Off uses the model's default.
steps_valueoptINT11–50Total number of denoising steps. Higher values generally produce more detailed results but take longer.
scheduleroptCOMBO(default)Scheduler to use for the diffusion process.
CFGScaleoptBOOLEANfalseEnable to set CFGScale. Off uses the model's default.
CFGScale_valueoptFLOAT0.000–20Guidance scale representing how closely the output will resemble the prompt. Higher values produce results more aligned with the prompt.
trueCFGScaleoptBOOLEANfalseEnable to set trueCFGScale. Off uses the model's default.
trueCFGScale_valueoptFLOAT0.00True Classifier-Free Guidance scale. Higher values increase prompt adherence at the cost of quality.
numberResultsoptINT11–20Number of results to generate. Each result uses a different seed, producing variations of the same parameters.
advancedFeaturesoptBOOLEANfalseEnable to set advancedFeatures. Off uses the model's default.
advancedFeatures.watermark.bgColoroptSTRINGBackground color in hex format.
advancedFeatures.watermark.displayPositionoptCOMBO(default)Watermark position.
advancedFeatures.watermark.fontColoroptSTRINGText color in hex format.
advancedFeatures.watermark.opacityoptBOOLEANfalseEnable to set advancedFeatures.watermark.opacity. Off uses the model's default.
advancedFeatures.watermark.opacity_valueoptFLOAT0.100.1–1Watermark opacity.
advancedFeatures.watermark.textoptSTRINGWatermark text.
safetyoptBOOLEANfalseEnable to set safety. Off uses the model's default.
safety.checkContentoptBOOLEANfalseEnable or disable content safety checking.
ttloptBOOLEANfalseEnable to set ttl. Off uses the model's default.
ttl_valueoptINT60Time-to-live (TTL) in seconds for generated content. Only applies when `outputType` is `URL`.
outputFormatoptCOMBOJPGFile format for the generated image.
outputQualityoptINT9520–99Compression quality of the output. Higher values preserve quality but increase file size.

Outputs (1)

NameTypeDescription
imageIMAGE