Nodes/Leon's Utility and API Integration Nodes/πŸ€– Leon Wan Image API
ComfyUI Node

πŸ€– Leon Wan Image API

Wan's image model through a ComfyUI API node

By l3ony2kΒ·Created about a year agoΒ·Updated 2 months agoΒ· 3
πŸ€– Leon Wan Image API
  • image
  • input_images_array
  • image
  • image_url
  • seed
β—„promptA cute cat.β–Ί
β—„modelwan-2.7-imageβ–Ί
β—„size1024*1024β–Ί
β—„output_formatpngβ–Ί
β—„seed0β–Ί
β—„api_urlhttps://api.hyprlab.io/v1/images/generationsβ–Ί
β—„api_keyYOUR_API_KEY_HEREβ–Ί
β—„response_formaturlβ–Ί
β—„image_urlβ–Ί

You probably know Wan as the video family - Alibaba's Apache 2.0 video models that became the base for half the open video work of 2026. But the Wan brand now covers an image model too, and Leon_Wan_Image_API_Node is how you get wan-2.7-image (or its -pro sibling) into a ComfyUI graph: type a prompt, pick a size, and the HyprLab aggregator routes it for you. No local weights, no VRAM, no wan-2.7 checkpoint hunt - just a remote render that lands in your workflow as a normal image tensor.

That "no local weights" bit is doing a lot of work, so be clear-eyed about the trade. The Wan image models in this node are the newer, API-only generation - the KB's Wan-video panel tracks the open lineage as frozen at Wan 2.2. If running Wan locally matters to you, the open weights are still out there; this node is for the other 90% of the time, where you just want the result without the infrastructure.

How it works

Identical plumbing to the pack's other API nodes: the shared HyprLabImageGenerationNodeBase builds an OpenAI-style payload, POSTs to https://api.hyprlab.io/v1/images/generations with a Bearer token, retries with exponential backoff (five attempts max), and converts the response to an RGBA tensor. The Wan-specific parts are the size enum and the image inputs.

Inputs that matter

  • model - wan-2.7-image (default) or wan-2.7-image-pro. The pro tier costs more for a quality bump; start on the base.
  • size - 18 choices, and here's where beginners get confused: the enum mixes raw pixels (1024*1024, 2048*2048, 1280*720, 720*1280…) with tier labels (1K, 2K, 4K). They're all valid selections; 1024*1024 is just the explicit spelling of 1K.
  • image / image_url / input_images_array - Wan Image is a capable editor, so it takes reference images three ways: a single tensor, a hosted URL, or up to nine images through the pack's Image Array Builder (IMAGE_ARRAY). Give it at least one reference when you're editing rather than generating fresh.

Outputs are the pack standard: image, image_url, seed.

Installing

Same pack as every Leon node - ComfyUI Manager (search Leon) or clone:

cd ComfyUI/custom_nodes/
git clone https://github.com/l3ony2k/comfyui-leon-nodes comfyui-leon-nodes
pip install -r requirements.txt

Restart, paste a HyprLab key. Light dependencies, zero downloads.

Common issues

The defaults will get you 90% of the way; the usual suspects for the other 10% are a left-at-default api_key and the "give me either a tensor or a URL, not both" refusal when you double-wire the image inputs. Sizing is the genuinely Wan-specific gotcha: if you pick 4K on a plan or model that only serves lower tiers, expect a 4xx - check the console log for the exact error body. And as always with these nodes, it's metered, so settle on your size and reference before running, not after two paid 4K experiments.

CategoryLeon_API

Inputs (11)

NameTypeDefaultDescription
promptSTRINGA cute cat.Text description of the image to generate
modelCOMBOwan-2.7-imageWan image generation model (default: wan-2.7-image)
sizeCOMBO1024*1024Size of the generated image (default: 1024*1024)
output_formatCOMBOpngFormat of the output image
seedINT00–18446744073709550000Random seed for reproducible results
api_urlSTRINGhttps://api.hyprlab.io/v1/images/generationsAPI URL
api_keySTRINGYOUR_API_KEY_HEREYour HyprLab API key
response_formatCOMBOurlFormat of the response data
imageoptIMAGESingle input image
image_urloptSTRINGHosted image URL
input_images_arrayoptIMAGE_ARRAYArray of input images. Connect Image Array Builder node output here.

Outputs (3)

NameTypeDescription
imageIMAGEβ€”
image_urlSTRINGβ€”
seedINTβ€”