@stepupgaming/qwen-image
v0.1.4
Published
Qwen-Image-2.1 editor for a local ComfyUI, with an Eve extension built in.
Readme
@stepupgaming/qwen-image
A Qwen-Image-2.1 editor that runs on a ComfyUI you already have. The weights are not in this package. See NOTICE.md. Qwen-Image-2.1 is under the Qwen Research License: non-commercial unless Qwen grants a commercial license.
Two ways in, one implementation:
render()from@stepupgaming/qwen-image/renderfor scripts and apps. Images in, PNG out. No agent.- An Eve extension. Mount it and the agent gets the official prompt guides plus one
rendertool. The tool does not call a second model. Whichever model is driving the agent writes the prompt by loading the skill.
import qwen from "@stepupgaming/qwen-image";
export default qwen({
comfyUrl: "http://127.0.0.1:8188",
unet: "qwen_image_2.1_int8_convrot.safetensors",
clip: "qwen3vl_8b_int8_convrot.safetensors",
vae: "qwen_image_2.1_vae_bf16.safetensors",
});Mounted as agent/extensions/qwen.ts, the tool the model sees is qwen__render.
render() takes a finished Qwen prompt, up to 10 images in <image1> order, and either whRatio or ratioFollow. whRatio sets the canvas. ratioFollow: "<image1>" (or images with both fields empty) keeps the first image's framing. ratioFollow: "<image2>" and later keep the prompt's image order and size the canvas from that image. Sampler defaults are ComfyUI's official 2.1 template: 25 steps, cfg 1, euler, simple.
Quality presets for 16:9 are draft 1376×768, standard 1696×960, final 2048×1152, and max 2752×1536.
Before anything is queued, the graph is checked against ComfyUI's /object_info. A missing node or a filename ComfyUI does not list comes back as an error that names it. LoRA names are rewritten to the subfolder spelling ComfyUI reports.
