Skip to content

Stability AI Image Generation

Class: StabilityAIImageGenBlockV1

Source: inference.core.workflows.core_steps.models.foundation.stability_ai.image_gen.v1.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@v1to 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.

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"
}