π€ Leon Stable Diffusion XL API
SDXL with the full Stability sampler menu, via API
- image
- image_url
- seed
SDXL is the old reliable of this pack: the 1024-native model that defined realism work for two years and is still the baseline half the community compares everything against. It's also something you can absolutely run locally - so why would you want it as an API node? Because this is the Stability API flavor of SDXL, with the sampler menu, steps, CFG, and style presets you remember from the hosted service, all exposed as inputs. Leon_StableDiffusion_XL_API_Node gives you that classic SDXL parameter surface from inside a ComfyUI graph: pick sdxl-1.0, set your sampler and steps, and let HyprLab run the 2.6B model on hardware that isn't yours.
Where this shines: consistent batch work on a machine that can't hold SDXL comfortably, or anywhere you want the exact Stability sampler lineup (the K_DPM_2_ANCESTRAL-style k-diffusion names) without reconstructing it from memory. If you already run SDXL locally and love your tuned setup, honestly, keep doing that - this node isn't better, it's just remote.
How it works
Same StableDiffusionImageGenerationNodeBase as the pack's other SD nodes: POST an OpenAI-style payload to https://api.hyprlab.io/v1/images/generations with a Bearer token, retry with exponential backoff (five attempts), decode to RGBA tensor. What sets this node apart is how much of the classic SDXL API it exposes:
sampler- 10 choices: DDIM, DDPM, K_DPMPP_2M, K_DPMPP_2S_ANCESTRAL, K_DPM_2, K_DPM_2_ANCESTRAL, K_EULER, K_EULER_ANCESTRAL, K_HEUN, K_LMS.steps- 1β50, default 20.cfg_scale- 0β35, default 5. The KB's troubleshooting notes the classic SDXL sweet spot is roughly 5β9, so the default sits at the low end; if output feels under-adhered, nudge it up.height/width- 640β1536, default 1024, and the tooltip warns they "must match allowed dimensions." SDXL has trained aspect ratios; feed it 1024x1536-ish shapes it knows, not arbitrary rectangles.style_preset- 17 presets likephotographic,anime,cinematic,digital-art,isometric,low-poly. This is the Stability-API flavor of style steering; it does real work on this model.
Outputs: image, image_url, seed (seed maxes at 4,294,967,295 here - one more than the SD3 nodes).
Installing
Same pack, both ways - 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. No model files, no VRAM.
Common issues
The pack-wide classics apply (default api_key, console 4xx bodies). SDXL-specific: the "must match allowed dimensions" warning is the one to respect - SDXL's native aspect ratios are the trained set, and requesting 1536x900 will usually 4xx or come back warped, which is the same "resolution wrong" failure the troubleshooting KB flags for local SDXL. And sampler knowledge transfers: K_DPMPP_2M at 20β25 steps is the boring reliable pick, K_EULER_ANCESTRAL gives the looser high-variance look - same folklore as local generation, now billed per call.
Inputs (13)
| Name | Type | Default | Description |
|---|---|---|---|
| prompt | STRING | A cute cat | Text prompt for image generation |
| model | COMBO | sdxl-1.0 | Stable Diffusion XL 1.0 model |
| output_format | COMBO | webp | Format of the output image |
| seed | INT | 00β4294967295 | Seed for deterministic generation (0-4294967295) |
| api_url | STRING | https://api.hyprlab.io/v1/images/generations | API URL |
| api_key | STRING | YOUR_API_KEY_HERE | Your HyprLab API key |
| response_format | COMBO | url | Format of the response data |
| heightopt | INT | 1024640β1536 | Height in pixels (must match allowed dimensions) |
| widthopt | INT | 1024640β1536 | Width in pixels (must match allowed dimensions) |
| cfg_scaleopt | FLOAT | 5.00β35 | How strictly the model follows the prompt (0-35) |
| sampleropt | COMBO | K_DPM_2_ANCESTRAL | Sampling algorithm |
| stepsopt | INT | 201β50 | Number of processing steps (1-50) |
| style_presetopt | COMBO | photographic | Preset style to apply to the generated image |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | β |
| image_url | STRING | β |
| seed | INT | β |