Stable Diffusion 2.1

  • v4

djt/stable-diffusion-2.1


Deploy on Banana for fast, affordable, and easy deployment of Stable Diffusion 2.1. Get results fast with our user-friendly interface, unbeatable pricing and speed. Click the button above to deploy this model now!


Readme


INPUT

{
  "prompt": "A superhero with the body of a banana",
  "height": 768,
  "width": 768,
  "steps": 20,
  "guidance_scale": 9,
  "seed": None
}

OUTPUT

{
  "image_base64": "<BASE64_STRING>"
}


import banana_dev as banana

model_inputs = {
  "prompt": "A superhero with the body of a banana",
  "height": 768,
  "width": 768,
  "steps": 20,
  "guidance_scale": 9,
  "seed": None
}

api_key = "YOUR_API_KEY"
model_key = "YOUR_MODEL_KEY"

# Run the model
out = banana.run(api_key, model_key, model_inputs)


logo