Stability.ai
Introduction
In this guide we'll walk through the process of linking Cerb to Stability.ai. You'll be able to use Stability.ai's full API in Cerb automations for image generation.
Get a Stability.ai API Key.
Log in to your Stability.ai Account or sign up if you don't already have one.
Choose API Keys in the menu on the left.
Copy the default key or click Create API Key to create a new one.
Create the Stability.ai service in Cerb
-
Navigate to Search » Connected Services.
-
Click the (+) icon in the top right of the list.
-
Select Stability.ai.
-
Paste the key you copied earlier in the API Key field.
-
Click the Create button.
Examples
Generate an image
start:
http.request/generate:
output: http_response
inputs:
method: POST
url: https://api.stability.ai/v2beta/stable-image/generate/core
authentication: cerb:connected_account:stabilityai
headers:
Content-Type: multipart/form-data; boundary=abcdef
Accept: image/*
response:
resource:
expires@date: 1 hour
body@text:
--abcdef
Content-Disposition: form-data; name="prompt"
A profile picture of a humanoid robot in cyberpunk graphic novel style
--abcdef
Content-Disposition: form-data; name="output-format"
png
--abcdef--