Integrating Stability AI with Zapier
This guide walks you through connecting Stability AI’s image generation capabilities to your automated workflows using Zapier. Since Stability AI does not currently have a "native" one-click Zapier app (as of early 2026), we use Zapier's API Request action or Webhooks by Zapier to bridge the gap.
Prerequisites
-
Stability AI Account: Sign up at Stability AI Platform.
-
Get API Key: Navigate to the API Keys section in your account settings.
-
Zapier Account: A "Starter" plan or higher is required to use the API Request or Webhooks features.
Step 1: Secure Your API Key
-
Log in to your Stability AI Platform API account.
-
Navigate to the API Keys tab.
-
Copy your key and store it securely.
Note: You will need this for the
Authorizationheader in Zapier.
Step 2: Create Your Zap
-
Click Create Zap in your Zapier dashboard.
-
Trigger: Choose the event that should start the image generation (e.g., a new row in a Google Sheet, a new message in Slack, or a Typeform submission).
-
Action: Search for and select App: API Request (Beta) or Webhooks by Zapier.
Step 3: Configure the API Request
In the Action step, configure the following fields to call a Stability AI Text-to-Image endpoint.
The configuration below uses the Stable Image Core endpoint (Text-to-Image) as an example.
| Field | Value |
| Method | POST |
| URL | https://api.stability.ai/v2beta/stable-image/generate/core |
| Additional Headers |
|
| Body (Form Data) | See below |
Example Body Configuration:
If using the multipart/form-data format (standard for the newer V2 API), map your trigger data to these fields:
-
prompt: (Map your text from Step 1 here)
-
output_format:
webporpng -
aspect_ratio:
1:1(or your preferred ratio)
Step 4: Handle the Output
Stability AI will return the generated image. To use it in subsequent steps (like uploading to Google Drive or emailing it):
-
Add a new action step (e.g., Google Drive: Upload File).
-
In the File field, select the Body or Response URL provided by the API Request step.
Recommended Stability AI Endpoints (V2)
For 2026 workflows, Stability AI recommends using their task-specific endpoints for better performance:
-
Core Generation:
https://api.stability.ai/v2beta/stable-image/generate/core -
Ultra (High Detail):
https://api.stability.ai/v2beta/stable-image/generate/ultra -
Upscaling:
https://api.stability.ai/v2beta/stable-image/upscale/creative
Troubleshooting Tips
-
Credits: If the Zap fails with a
402 Payment Requirederror, check your Stability AI credit balance. -
Timeouts: Large image generations can sometimes exceed Zapier’s standard 10-second timeout. If this happens, ensure you are using text-to-image endpoints which are optimized for speed, such as Core or SD3.5.
-
Image Format: If you receive a "Base64" string instead of a file, you may need a "Formatter by Zapier" step to convert the data or change the
Acceptheader toapplication/jsonto get a direct URL.