Skip to content
English
  • There are no suggestions because the search field is empty.

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

  1. Stability AI Account: Sign up at Stability AI Platform.

  2. Get API Key: Navigate to the API Keys section in your account settings.

  3. Zapier Account: A "Starter" plan or higher is required to use the API Request or Webhooks features.


Step 1: Secure Your API Key

  1. Log in to your Stability AI Platform API account.

  2. Navigate to the API Keys tab.

  3. Copy your key and store it securely.

    Note: You will need this for the Authorization header in Zapier.

Step 2: Create Your Zap

  1. Click Create Zap in your Zapier dashboard.

  2. 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).

  3. 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

Authorization: Bearer YOUR_API_KEY


Accept: image/*

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: webp or png

  • 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):

  1. Add a new action step (e.g., Google Drive: Upload File).

  2. 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 Required error, 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 Accept header to application/json to get a direct URL.