Stability AI Image Generation¶
Class: StabilityAIImageGenBlockV1
The block wraps Stability AI image generation API and let users generate new images from text, or create variations of existing images.
Type identifier¶
Use the following identifier in step "type"
field: roboflow_core/stability_ai_image_gen@v1
to add the block as
as step in your workflow.
Properties¶
Name | Type | Description | Refs |
---|---|---|---|
name |
str |
Enter a unique identifier for this step.. | ❌ |
strength |
float |
controls how much influence the image parameter has on the generated image. A value of 0 would yield an image that is identical to the input. A value of 1 would be as if you passed in no image at all.. | ✅ |
prompt |
str |
Prompt to generate new images from text (what you wish to see). | ✅ |
negative_prompt |
str |
Negative prompt to image generation model (what you do not wish to see). | ✅ |
model |
str |
choose one of {'core', 'ultra', 'sd3'}. Default 'core' . | ✅ |
api_key |
str |
Your Stability AI API key. | ✅ |
The Refs column marks possibility to parametrise the property with dynamic values available
in workflow
runtime. See Bindings for more info.
Available Connections¶
Compatible Blocks
Check what blocks you can connect to Stability AI Image Generation
in version v1
.
- inputs:
Stability AI Inpainting
,Image Slicer
,Multi-Label Classification Model
,Halo Visualization
,Identify Changes
,Image Contours
,Roboflow Dataset Upload
,Image Threshold
,Slack Notification
,CSV Formatter
,Florence-2 Model
,Dynamic Crop
,Mask Visualization
,Identify Outliers
,Roboflow Dataset Upload
,Local File Sink
,OCR Model
,VLM as Detector
,Polygon Zone Visualization
,Image Convert Grayscale
,OpenAI
,Polygon Visualization
,LMM
,Reference Path Visualization
,Classification Label Visualization
,SIFT Comparison
,Label Visualization
,Perspective Correction
,Google Gemini
,Llama 3.2 Vision
,Instance Segmentation Model
,Anthropic Claude
,Roboflow Custom Metadata
,Keypoint Visualization
,Corner Visualization
,Camera Focus
,Bounding Box Visualization
,Keypoint Detection Model
,Detections Consensus
,VLM as Classifier
,Image Preprocessing
,Line Counter Visualization
,Model Monitoring Inference Aggregator
,Florence-2 Model
,Absolute Static Crop
,Pixelate Visualization
,Crop Visualization
,Trace Visualization
,Background Color Visualization
,Twilio SMS Notification
,Circle Visualization
,Blur Visualization
,Email Notification
,OpenAI
,Stability AI Image Generation
,Google Vision OCR
,SIFT
,Stitch Images
,Webhook Sink
,Model Comparison Visualization
,Stitch OCR Detections
,CogVLM
,Relative Static Crop
,Clip Comparison
,Triangle Visualization
,LMM For Classification
,Ellipse Visualization
,Color Visualization
,Dot Visualization
,Single-Label Classification Model
,Grid Visualization
,Image Blur
,Object Detection Model
- outputs:
VLM as Classifier
,Buffer
,Stability AI Inpainting
,Image Slicer
,Multi-Label Classification Model
,Keypoint Detection Model
,Halo Visualization
,VLM as Detector
,CLIP Embedding Model
,Roboflow Dataset Upload
,Image Contours
,Clip Comparison
,Image Threshold
,Pixel Color Count
,Instance Segmentation Model
,Time in Zone
,Florence-2 Model
,Dynamic Crop
,Mask Visualization
,Barcode Detection
,Roboflow Dataset Upload
,OCR Model
,VLM as Detector
,Template Matching
,Polygon Zone Visualization
,Image Convert Grayscale
,OpenAI
,Single-Label Classification Model
,Polygon Visualization
,LMM
,Reference Path Visualization
,SIFT Comparison
,Classification Label Visualization
,Label Visualization
,Perspective Correction
,Llama 3.2 Vision
,Byte Tracker
,Instance Segmentation Model
,Google Gemini
,Anthropic Claude
,QR Code Detection
,Keypoint Visualization
,Corner Visualization
,Camera Focus
,Gaze Detection
,Segment Anything 2 Model
,Bounding Box Visualization
,Keypoint Detection Model
,VLM as Classifier
,Line Counter Visualization
,Image Preprocessing
,Florence-2 Model
,Absolute Static Crop
,Pixelate Visualization
,Crop Visualization
,Trace Visualization
,Background Color Visualization
,Detections Stabilizer
,Dominant Color
,Circle Visualization
,YOLO-World Model
,Blur Visualization
,Detections Stitch
,OpenAI
,Stability AI Image Generation
,Google Vision OCR
,SIFT
,Stitch Images
,Multi-Label Classification Model
,Model Comparison Visualization
,CogVLM
,Relative Static Crop
,Clip Comparison
,Triangle Visualization
,LMM For Classification
,Ellipse Visualization
,Object Detection Model
,Color Visualization
,Dot Visualization
,Single-Label Classification Model
,Image Blur
,Object Detection Model
Input and Output Bindings¶
The available connections depend on its binding kinds. Check what binding kinds
Stability AI Image Generation
in version v1
has.
Bindings
-
input
image
(image
): The image to use as the starting point for the generation..strength
(float_zero_to_one
): controls how much influence the image parameter has on the generated image. A value of 0 would yield an image that is identical to the input. A value of 1 would be as if you passed in no image at all..prompt
(string
): Prompt to generate new images from text (what you wish to see).negative_prompt
(string
): Negative prompt to image generation model (what you do not wish to see).model
(string
): choose one of {'core', 'ultra', 'sd3'}. Default 'core' .api_key
(Union[secret
,string
]): Your Stability AI API key.
-
output
image
(image
): Image in workflows.
Example JSON definition of step Stability AI Image Generation
in version v1
{
"name": "<your_step_name_here>",
"type": "roboflow_core/stability_ai_image_gen@v1",
"image": "$inputs.image",
"strength": 0.3,
"prompt": "my prompt",
"negative_prompt": "my prompt",
"model": "my prompt",
"api_key": "xxx-xxx"
}