jason.mei c2d2ec96b2 feat(vidu,wan_ai): add video dimension extraction with av library
- Add `get_dimensions()` method to VideoFromFile fallback class across all vidu and wan_ai modules
- Implement PyAV (av) library integration to extract video width and height from container streams
- Add dimension caching with `_width` and `_height` attributes to avoid redundant parsing
- Implement fallback dimensions (1280x720) when video parsing fails
- Add proper stream seeking to reset file position after dimension extraction
- Update requirements.txt to include av library dependency
- Ensure consistent video dimension handling across vidu_t2v, vidu_i2v, vidu_ref2v, vidu_startend2v, vidu_extend, wan_ai_t2v, and wan_ai_i2v modules
2025-12-29 18:11:04 +08:00
2025-07-22 17:32:22 +08:00
2025-07-11 15:46:38 +08:00
2025-09-09 13:52:07 +08:00
2025-07-11 14:57:59 +08:00
2025-08-13 14:27:43 +08:00

UCloud ModelVerse API for ComfyUI

This plugin provides seamless integration with UCloud's ModelVerse API, enabling you to use powerful AI models directly within ComfyUI for image generation and editing tasks.

Quick Start

Installation

  1. Install via Custom Node Manager (Recommended)

    • Open ComfyUI
    • Go to Manager → Custom Nodes Manager
    • Search for "ComfyUl-UCloud"
    • Click Install
    • Restart ComfyUI
  2. Configure API Key

    • Get your API key: Console En, Console Zh
    • Add your UCloud ModelVerse API key in the Modelverse Client node
    • Alternatively, create a config.ini file with MODELVERSE_API_KEY=your_api_key

Basic Usage

  1. Add a Modelverse Client node to your workflow
  2. Choose your desired model from the supported models below
  3. Connect the appropriate input/output nodes
  4. Run your workflow

Supported Models

Our plugin supports the following models, each optimized for specific use cases:

  • Flux Dev - Foundation model with strong stylization capabilities
  • Flux Kontext Pro Text2Image - Specialized for text-to-image generation
  • Flux Kontext Pro - Expert single image editing and enhancement
  • Flux Kontext Pro (Multi-inputs) - Batch processing for multiple images
  • Flux Kontext Max Text2Image - Premium text-to-image generation with highest quality
  • Flux Kontext Max - Flagship single image editing with advanced features
  • Flux Kontext Max (Multi-inputs) - Most powerful multi-image processing
  • Step1X-Edit - Precision local editing and inpainting

Note: (Multi-inputs) models use the same node interface as their single-input counterparts. Check the example workflows below for implementation details.

Example Workflows

Build your own workflow with Modelverse nodes. You can check the following images, drag them into ComfyUI GUI and autoload example workflows.

Flux Dev Flux Kontext Pro Flux Kontext Max (Multi-inputs)

In case the above images does not work for you, check the screenshot below:

Text-to-Image with Flux Dev Text-to-Image

Single image editting with Flux Kontext Pro single-input

Multi image editting with Flux Kontext Max Multi-inputs

S
Description
No description provided
Readme
3.3 MiB
Languages
Python 96.2%
JavaScript 2.8%
CSS 1%