Stability AI Stable Image Ultra API Node ComfyUI Official Example
This article will introduce how to use the Stability AI Stable Image Ultra API node’s text-to-image and image-to-image capabilities in ComfyUI
The Stability Stable Image Ultra node allows you to use Stability AI’s Stable Image Ultra model to create high-quality, detailed image content through text prompts or reference images.
In this guide, we will show you how to set up workflows for both text-to-image and image-to-image generation using this node.
To use the API nodes, you need to ensure that you are logged in properly and using a permitted network environment. Please refer to the API Nodes Overview section of the documentation to understand the specific requirements for using the API nodes.
Stability AI Stable Image Ultra Text-to-Image Workflow
1. Workflow File Download
The workflow information is included in the metadata of the image below. Please download and drag it into ComfyUI to load the corresponding workflow.
2. Complete the Workflow Execution Step by Step
You can follow the numbered steps in the image to complete the basic text-to-image workflow:
- (Optional) Modify the
prompt
parameter in theStability AI Stable Image Ultra
node to input your desired image description. More detailed prompts often lead to better image quality. You can use the(word:weight)
format to control specific word weights, for example:The sky was crisp (blue:0.3) and (green:0.8)
indicates the sky is blue and green, but green is more prominent. - (Optional) Select the
style_preset
parameter to control the visual style of the image. Different preset styles will produce images with different stylistic characteristics, such as “cinematic”, “anime”, etc. Selecting “None” will not apply any specific style. - Click the
Run
button or use the shortcutCtrl(cmd) + Enter
to execute the image generation. - After the API returns the result, you can view the generated image in the
Save Image
node, and the image will also be saved to theComfyUI/output/
directory.
3. Additional Notes
- Prompt: The prompt is one of the most important parameters in the generation process. Detailed, clear descriptions will lead to better results. It can include elements like scene, subject, colors, lighting, and style.
- Style Preset: Provides multiple preset styles such as cinematic, anime, digital art, etc., which can quickly define the overall style of the image.
- Negative Prompt: Used to specify elements you don’t want to appear in the generated image, helping avoid common issues like extra limbs or distorted faces.
- Seed Parameter: Can be used to reproduce or fine-tune generation results, helpful for iteration during the creative process.
- Currently, the
Load Image
node is in “Bypass” mode. To enable it, refer to the step guide and right-click on the corresponding node to set “Mode” to “Always” to enable input, which will switch to image-to-image mode.
Stability AI Stable Image Ultra Image-to-Image Workflow
1. Workflow File Download
The workflow information is included in the metadata of the image below. Please download and drag it into ComfyUI to load the corresponding workflow.
Download the image below which we will use as input
2. Complete the Workflow Execution Step by Step
You can follow the numbered steps in the image to complete the image-to-image workflow:
- Load a reference image through the
Load Image
node, which will serve as the basis for generation. - (Optional) Modify the
prompt
parameter in theStability Stable Image Ultra
node to describe elements you want to change or enhance in the reference image. - (Optional) Adjust the
image_denoise
parameter (range 0.0-1.0) to control the degree of modification to the original image:- Values closer to 0.0 will make the generated image more similar to the input reference image
- Values closer to 1.0 will make the generated image more like pure text-to-image generation
- (Optional) You can also set
style_preset
and other parameters to further control the generation effect. - Click the
Run
button or use the shortcutCtrl(cmd) + Enter
to execute the image generation. - After the API returns the result, you can view the generated image in the
Save Image
node, and the image will also be saved to theComfyUI/output/
directory.
3. Additional Notes
Image Denoise: This parameter determines how much of the original image’s features are preserved during generation, and is the most crucial adjustment parameter in image-to-image mode. The image below shows the effects of different denoising strengths
- Reference Image Selection: Choosing images with clear subjects and good composition usually leads to better results.
- Prompt Tips: In image-to-image mode, prompts should focus more on what you want to change or enhance, rather than describing all elements already present in the image.
Related Node Documentation
You can refer to the documentation below for detailed parameter settings and more information about the corresponding nodes
Stability Stable Image Ultra Node Documentation
Stability Stable Image Ultra API Node Documentation