Stable-diffusion
Inference based on our fork of https://github.com/leejet/stable-diffusion.cpp
Instances
general
General instance
Operations
textToImage
Run the stable-diffusion.cpp inference and produce image from text
Parameters
prompt
Image description text
string
negativePrompt
Negative image description text
string
Default: ""
width
Image width
integer
Default: 256
height
Image height
integer
Default: 256
steps
Number of steps
integer
Default: 20
Required: prompt
Return
width
Image width
integer
height
Image height
integer
channel
Number of channels
integer
data
Image data
binary
Required: width, height, channel, data
imageToImage
Run the stable-diffusion.cpp inference and produce image from image and text
Parameters
prompt
Image description text
string
imagePath
Path to the image
string
negativePrompt
Negative image description text
string
Default: ""
width
Image width
integer
Default: 256
height
Image height
integer
Default: 256
steps
Number of steps
integer
Default: 20
Required: prompt, imagePath
Return
width
Image width
integer
height
Image height
integer
channel
Number of channels
integer
data
Image data
binary
Required: width, height, channel, data