Frameworks & Templates
Stable Diffusion

Stable Diffusion

Stable Diffusion (opens in a new tab) is a latent text-to-image diffusion model capable of generating photo-realistic images given any text input.

stable diffusion

You could deploy the inference server template then use our SDK to make predictions.

  • CLI
export MODELZ_API_KEY=mzi-abcdefg...
modelz inference --deployment sdtest-xxx --serde msgpack --write-file cat.jpg 'draw a cute cat'
  • Client
# pip install modelz-py
import modelz
 
 
APIKey = "mzi-abcdefg..."
 
cli = modelz.ModelzClient(deployment="abcdgefg...", key=APIKey, serde="msgpack")
cli.inference(params="A dog is running in the grass.").save_to_file("dog.jpg")