Skip to content

Stability AI

Activating humanity’s potential through generative AI. Open models in every modality, for everyone, everywhere.

Categories: artificial-intelligence

Type: stability/v1


Connections

Version: 1

Bearer Token

Properties

NameLabelTypeControl TypeDescriptionRequired
tokenAPI KeySTRINGTEXTtrue

Actions

Create Image

Name: createImage

Create an image using text-to-image models

Properties

NameLabelTypeControl TypeDescriptionRequired
modelModelSTRINGTEXTThe model to use for image generation.false
imageMessagesMessagesARRAY
Items [{STRING(content), NUMBER(weight)}]
ARRAY_BUILDERA list of messages comprising the conversation so far.true
heightHeightINTEGERINTEGERHeight of the image to generate, in pixels, in an increment divisible by 64. Engine-specific dimension validation applies.true
widthWidthINTEGERINTEGERWidth of the image to generate, in pixels, in an increment divisible by 64. Engine-specific dimension validation applies.true
nNumber of ResponsesINTEGERINTEGERThe number of images to generate. Must be between 1 and 10. For dall-e-3, only n=1 is supported..null
responseFormatResponse formatSTRING
Options URL, B64_JSON
SELECTThe format in which the generated images are returned.null
styleStyleSTRING
Options THREE_D_MODEL, ANALOG_FILM, ANIME, CINEMATIC, COMIC_BOOK, DIGITAL_ART, ENHANCE, FANTASY_ART, ISOMETRIC, LINE_ART, LOW_POLY, MODELING_COMPOUND, NEON_PUNK, ORIGAMI, PHOTOGRAPHIC, PIXEL_ART, TILE_TEXTURE
SELECTPass in a style preset to guide the image model towards a particular style. This list of style presets is subject to change.null
stepsStepsINTEGERINTEGERNumber of diffusion steps to run. Valid range: 10 to 50.null
cfgScaleCFG scaleNUMBERNUMBERThe strictness level of the diffusion process adherence to the prompt text. Range: 0 to 35.null
clipGuidancePresetClip guidance presetSTRINGTEXTPass in a style preset to guide the image model towards a particular style. This list of style presets is subject to change.null
samplerSamplerSTRINGTEXTWhich sampler to use for the diffusion process. If this value is omitted, an appropriate sampler will be automatically selected.null
seedSeedNUMBERNUMBERRandom noise seed (omit this option or use 0 for a random seed). Valid range: 0 to 4294967295.null

Output

Type: OBJECT

Properties

NameTypeControl Type
urlSTRINGTEXT
b64JsonSTRINGTEXT

JSON Example

{
"label" : "Create Image",
"name" : "createImage",
"parameters" : {
"model" : "",
"imageMessages" : [ {
"content" : "",
"weight" : 0.0
} ],
"height" : 1,
"width" : 1,
"n" : 1,
"responseFormat" : "",
"style" : "",
"steps" : 1,
"cfgScale" : 0.0,
"clipGuidancePreset" : "",
"sampler" : "",
"seed" : 0.0
},
"type" : "stability/v1/createImage"
}