AUTOMATIC1111 - Stable Diffusion 2.1

  • v1

patienceai/automatic1111-sd-2-1-banana


Deploy on Banana for fast, affordable, and easy deployment of AUTOMATIC1111 - 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

{
  "endpoint": "txt2img",
  "params": {
    "prompt": "an astronaut riding a (horse:motorcycle:0.5) on the moon",
    "negative_prompt": "cartoonish, low quality",
    "steps": 25,
    "sampler_name": "Euler a",
    "cfg_scale": 7.5,
    "seed": 42,
    "batch_size": 1,
    "n_iter": 1,
    "width": 768,
    "height": 768,
    "tiling": false
  }
}

OUTPUT

{
  "images": [
    "<base64 output>"
  ]
}

CODE SNIPPETS


import banana_dev as banana

model_inputs = {
  "endpoint": "txt2img",
  "params": {
    "prompt": "an astronaut riding a (horse:motorcycle:0.5) on the moon",
    "negative_prompt": "cartoonish, low quality",
    "steps": 25,
    "sampler_name": "Euler a",
    "cfg_scale": 7.5,
    "seed": 42,
    "batch_size": 1,
    "n_iter": 1,
    "width": 768,
    "height": 768,
    "tiling": false
  }
}

api_key = "YOUR_API_KEY"
model_key = "YOUR_MODEL_KEY"

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

logo