Running Stable Diffusion on DeepInfra

Pick a model

We support variety of text-to-image models, including Stable Diffusion versions 1.4, 1.5 and 2.1 and many derivatives. Pick a model from the list by using:

deepctl model list | grep text-to-image

For example, we'll use runwayml/stable-diffusion-v1-5.

Using deepctl

deepctl infer -m runwayml/stable-diffusion-v1-5 \
    -i prompt="A photo of a cube floating in space"
    -o images=cube.jpg

And check out the output in cube.jpg.

Advanced options

You can check all the available settings via

deepctl model info -m runwayml/stable-diffusion-v1-5

© 2023 Deep Infra. All rights reserved.

Discord Logo