Extensions/Leon's Utility and API Integration Nodes
ComfyUI Extension

Leon's Utility and API Integration Nodes

A comprehensive collection of utility and API integration nodes for ComfyUI. Includes image manipulation (4-grid split), string utilities, and multiple API integrations: ImgBB upload, HyprLab upload, Google Image API, Luma AI, FLUX Image API, FLUX Kontext API, and Midjourney proxy integration. Features include image/video hosting, AI image generation, and image description capabilities.

By l3ony2k·Created about a year ago·Updated 2 months ago· 3
l3ony2k/comfyui-leon-nodes
Nodes37
On cloudLocal install
CategoryLeon_API, Leon_Utils
Stars3
Updated2 months ago

Nodes (37)

🤖 Leon FLUX 2 Image API

FLUX 2 Pro, Max and Flex from a ComfyUI node — the multi-image workhorse

Leon_API
🤖 Leon FLUX Image API

Six FLUX 1.1 models behind one dropdown — the pack's most flexible generation node

Leon_API
🤖 Leon FLUX Kontext API

FLUX Kontext without the 12B download — instruction-based editing via API

Leon_API
🤖 Leon Google Image API

Google Imagen 4 from your ComfyUI graph — a one-node trip to Gemini's image stack

Leon_API
🤖 Leon GPT-Image API

GPT-Image 2 from a ComfyUI node — including real inpainting with a mask socket

Leon_API
🤖 Leon Grok Imagine Image API

Grok Imagine in ComfyUI — xAI's image generator via a dropdown

Leon_API
🤖 Leon Hypr Upload

Get a hosted URL for any ComfyUI image — the upload node that feeds the API wrappers

Leon_Utils
🤖 Leon Ideogram Image API

Ideogram v2's legendary text rendering, piped into a ComfyUI node

Leon_API
🤖 Leon Image Array Builder

Turn up to 8 images into the IMAGE_ARRAY the API nodes demand

Leon_Utils
🤖 Leon Image Split 4-Grid

Split a 2x2 grid into four separate images — the Midjourney-grid finisher

Leon_Utils
🤖 Leon ImgBB Upload

Upload any ComfyUI image to ImgBB and get back a shareable URL

Leon_Utils
🤖 Leon LLM Chat API

A vision-capable LLM call inside ComfyUI — with GPT-4o, Claude, Gemini and more

Leon_API
🤖 Leon LLM JSON API

Structured data extraction in ComfyUI — the LLM node that returns schema-validated JSON

Leon_API
🤖 Leon Luma AI Image API

Luma Photon with full image, style and character reference support

Leon_API
🤖 Leon Midjourney API Describe

Reverse-engineer any image into Midjourney prompts — the describe node

Leon_API
🤖 Leon Midjourney API Generate

Real Midjourney generation inside ComfyUI — via your own proxy server

Leon_API
🤖 Leon Midjourney API Upload

Push a ComfyUI image into Midjourney's Discord — the upload node

Leon_API
🤖 Leon Model Selector

One dropdown for every LLM your endpoint serves — the pack's model picker

Leon_API
🤖 Leon Nano Banana API

Nano Banana in ComfyUI, without a Google key

Leon_API
🤖 Leon Nano Banana Edit Tuzi API 🐰

The Nano Banana 2 edit node that does multi-image edits without touching your GPU

Leon_API
🤖 Leon Nano Banana Tuzi API 🐰

Nano Banana 2 text-to-image from inside ComfyUI — via the Tuzi API

Leon_API
🤖 Leon Official Gemini 🌐

Talk to Gemini 3 from inside a workflow

Leon_API
🤖 Leon Official Nano Banana 🌐

The Nano Banana node that's actually official

Leon_API
🤖 Leon Pruna API

A Pruna text-to-image node that costs zero VRAM

Leon_API
🤖 Leon Pruna Image Edit API

Edit images in place with a single sentence

Leon_API
🤖 Leon Pruna Image Upscale API

Generative upscaling without downloading a model

Leon_API
🤖 Leon Qwen Image API

Qwen Image inside ComfyUI, minus the 20B download

Leon_API
🤖 Leon Recraft Image API

Recraft's style presets, without the website

Leon_API
🤖 Leon Seedream 3 API

ByteDance's Seedream 3, three models in one node

Leon_API
🤖 Leon Seedream 4 API

Seedream 4, up to 4K, without touching ByteDance's UI

Leon_API
🤖 Leon Stable Diffusion 3.5 API

Stable Diffusion 3.5, served by API instead of a local GPU

Leon_API
🤖 Leon Stable Diffusion 3 Ultra API

Stability's heavy-hitter, as a cloud call

Leon_API
🤖 Leon Stable Diffusion XL API

SDXL with the full Stability sampler menu, via API

Leon_API
🤖 Leon String Combine

The two-string node hiding in an API pack

Leon_Utils
🤖 Leon Tuzi GPT-Image API 🐰

GPT-Image models, by the call, through a Tuzi key

Leon_API
🤖 Leon Wan Image API

Wan's image model through a ComfyUI API node

Leon_API
🤖 Leon Yellow Tint Cleaner

Fix the yellow cast with zero API calls

Leon_Utils
Readme

ComfyUI Leon API Nodes

A comprehensive collection of ComfyUI custom nodes for AI image generation, LLM chat completions, Midjourney proxy integration, and utility functions via various APIs including HyprLab.

Overview

This package provides multiple categories of nodes to enhance your ComfyUI workflows:

  • 🎨 Image Generation APIs: Google Imagen, Luma AI, FLUX, FLUX Kontext
  • 🤖 LLM APIs: Chat completions, JSON extraction, model management
  • 🎭 Midjourney Proxy: Generate, describe, and upload images
  • 🔧 Utility Nodes: Image processing, string manipulation, file uploads

Installation

  1. Clone or copy this repository to your ComfyUI custom nodes directory:

    cd ComfyUI/custom_nodes/
    git clone <repository-url> comfyui-leon-nodes
    
  2. Install the required dependencies:

    pip install -r requirements.txt
    
  3. Restart ComfyUI

🎨 Image Generation Nodes

Supported Image Models

  • Google

    • nano-banana
    • imagen-4-ultra, imagen-4, imagen-4-fast
    • imagen-3, imagen-3-fast
  • Luma AI

    • photon, photon-flash
  • FLUX

    • FLUX 1.1 Pro Ultra, FLUX 1.1 Pro
    • FLUX Pro Canny
    • FLUX Dev, FLUX Schnell
    • FLUX Krea Dev
  • FLUX Kontext

    • flux-kontext-max, flux-kontext-pro, flux-kontext-dev
  • ByteDance

    • seedream-4
    • dreamina-3.1
    • seedream-3
    • seededit-3
  • Ideogram

    • ideogram-v2, ideogram-v2-turbo
  • Recraft

    • recraft-v3
  • Wan

    • wan-2.7-image
    • wan-2.7-image-pro
  • Qwen

    • qwen-image-2
    • qwen-image-2-pro

🤖 LLM API Nodes

Leon LLM Chat API 🤖

Text and vision chat completions with various LLM models.

Features:

  • Support for GPT-4o, Claude, Gemini, and more
  • Vision capabilities (text + image input)
  • Configurable temperature, top_p, max_tokens
  • System message support

Usage Example:

Model Selector → LLM Chat API → Text Output
     ↑              ↑
  "gpt-4o"    "Analyze this image"
                     ↑
                Image Input

Leon LLM JSON API 🤖

Structured data extraction with JSON schema validation.

Features:

  • JSON schema-based output
  • Data extraction and structuring
  • Lower temperature for consistency
  • Schema validation

Usage Example:

Schema: {
  "type": "object",
  "properties": {
    "email": {"type": "string"},
    "name": {"type": "string"}
  }
}

Leon Model Selector 🔧

Dynamic model selection with live configuration.

Features:

  • Dropdown with popular models
  • Custom model input override
  • Model information display
  • Context length awareness

Leon Model Config Loader ⚙️

Fetch and manage available models from API.

Features:

  • Live model list fetching
  • Cached fallback configuration
  • Save to file option
  • Error handling with graceful fallback

🎭 Midjourney Proxy Nodes

Leon Midjourney API Generate 🤖

Generate images using Midjourney via proxy server.

Features:

  • MID_JOURNEY and NIJI_JOURNEY bot types
  • Base64 image array support
  • Account filtering
  • Polling with timeout handling

Setup:

  1. Run Midjourney proxy server (e.g., localhost:8080)
  2. Configure API key and endpoint
  3. Use prompts with Midjourney syntax (--v 7, --ar 1:1)

Leon Midjourney API Describe 🤖

Get text descriptions of images using Midjourney.

Features:

  • Upload image and get 4 description variants
  • Automatic description parsing
  • Same proxy server integration

Leon Midjourney API Upload 🤖

Upload images to Discord via Midjourney proxy.

Features:

  • Convert ComfyUI images to Discord URLs
  • Account filtering support
  • Direct integration with Midjourney workflows

🔧 Utility Nodes

Leon Image Split 4-Grid 🤖

Split images into 4 quadrants (useful for Midjourney grid results).

Outputs: Top-Left, Top-Right, Bottom-Left, Bottom-Right images

Leon String Combine 🤖

Combine two strings with a linking element.

Usage: Useful for building complex prompts or file paths

Leon ImgBB Upload 🤖

Upload images to ImgBB hosting service.

Features:

  • Expiration time control
  • Direct URL output
  • Error handling

Leon Hypr Upload 🤖

Upload images/videos to HyprLab hosting.

Features:

  • Multiple input methods (tensor, file path, URL, base64)
  • Output format conversion
  • Multipart and JSON upload support

🔗 Common Workflow Patterns

Basic Image Generation

Model Selector → Google/Luma/FLUX API → PreviewImage

Vision Analysis

LoadImage → LLM Chat API → Text Output
              ↑
         Model Selector

Midjourney Grid Processing

Midjourney Generate → Image Split 4-Grid → 4x PreviewImage

Data Extraction

Text Input → LLM JSON API → JSON Output
              ↑
         JSON Schema

Image Upload Chain

Generated Image → Hypr Upload → URL → Use in other APIs

🛠️ Advanced Usage

Model Management

Model Config Loader → Save models.json
Model Selector → Use cached or live models

Multi-Modal Workflows

Text + Image → LLM Chat → Analysis
     ↓
Generated Image → Midjourney Describe → Descriptions
     ↓
Upload → Share URLs

Batch Processing

Multiple Prompts → Loop through FLUX API → Collect Results

🔧 Error Handling

All nodes include robust error handling:

  • Retry Logic: Exponential backoff (up to 5 attempts)
  • Input Validation: Prompt lengths, required fields
  • API Response Validation: Proper error messages
  • Network Error Handling: Graceful degradation
  • Detailed Logging: Console output for debugging

Acknowledge: ComfyUI_BillBum_Nodes | Integrated with: HyprLab API