A collection of custom nodes for using the Stability AI API in ComfyUI.
This custom node package provides the following functionality:
- StabilityImageUltra: High-quality image generation
- StabilityImageCore: Standard image generation
- StabilityImageSD3: Image generation using Stable Diffusion 3.0
- StabilityEdit: Multi-functional image editing
- erase: Remove content in masked area
- inpaint: Regenerate content in masked area
- outpaint: Extend image in any direction
- search-and-replace: Replace specified objects
- search-and-recolor: Change colors of specified objects
- remove-background: Automatically remove background
- StabilityUpscaleFast: Fast upscaling
- StabilityUpscaleConservative: Conservative upscaling
- StabilityUpscaleCreative: Creative upscaling (AI detail enhancement)
- StabilityControlSketch: Generate images from sketches
- StabilityControlStructure: Generate images while maintaining structure
- StabilityControlStyle: Generate images by referencing styles
- StabilityImageToVideo: Generate videos from images
- Clone this repository into your ComfyUI's
custom_nodes
directory:
cd ComfyUI/custom_nodes
git clone https://github.com/ponotech/comfyui-stability-ai-api.git
- Install dependencies:
cd comfyui-stability-ai-api
pip install -r requirements.txt
- Create a
config.ini
file and set your Stability AI API key:
[stability]
api_key = your_api_key_here
- Start ComfyUI
- Add nodes from the "Stability AI" category in the workflow editor
- Configure node parameters and execute
- Image size constraints:
- Minimum edge length: 64px
- Total pixels: 4096-9437184 px
- Aspect ratio: between 1:2.5 and 2.5:1
- Stability AI account and API key required
- Check Stability AI pricing page for API usage fees
This project is released under the MIT License.