ZBrain Documentation
  • ZBrain Documentation
    • ZBrain XPLR
      • ZBrain XPLR modules
      • Get started with ZBrain XPLR
      • Simulation XPLR
      • Solution XPLR
      • Portfolio XPLR
      • Functional Design XPLR
    • ZBrain Builder
      • Components of ZBrain Builder
      • 📚Knowledge base
        • How to create a knowledge base?
        • Knowledge source
        • Information schema
        • File summary
        • Automated reasoning
        • Retrieval testing
        • Knowledge base settings
      • 📱App
        • How to leverage knowledge base for app creation
        • How to set up and customize your app?
        • How to access the app reporting dashboard?
      • 🤖ZBrain AI agents
        • Get started with agents on ZBrain Builder
        • Deploying pre-built agents
        • Creating custom AI agents
          • Agent setup
          • Define input sources
          • Define Flow
            • Key elements of a Flow
            • Flow Components
              • Activepieces Platform
              • AITable
              • Airtable
              • Amazon S3
              • Amazon SNS
              • Amazon SQS
              • Amazon Textract
              • Apify
              • Apollo
              • Approval
              • Asana
              • Azure Communication Services
              • Azure Cosmos DB
              • Azure Document Intelligence
              • Azure OpenAI
              • Azure Translation
              • Bannerbear
              • Baserow
              • Beamer
              • Bedrock Claude
              • Bettermode
              • Binance
              • Bing Search
              • Blackbaud
              • Bonjoro
              • Box
              • Brevo
              • Brilliant Directories
              • Bubble
              • CSV
              • Calendly
              • Certopus
              • Clearout
              • Clockodo
              • Code
              • Confluence
              • Connections
              • Constant Contact
              • Contiguity
              • Contentful
              • Customer.io
              • Crypto
              • Databricks
              • Data Mapper
              • Date Helper
              • DeepL
              • Delay
              • Discord
              • Discourse
              • Drip
              • Dropbox
              • Dust
              • Facebook Pages
              • Figma
              • Files Helper
              • Flowise
              • Flowlu
              • Formbricks
              • Frame
              • Freshdesk
              • Freshsales
              • GCloud Pub/Sub
              • GenerateBanners
              • GhostCMS
              • GitHub
              • GitLab
              • Gmail
              • Google Calendar
              • Google Contacts
              • Google Docs
              • Google Drive
              • Google Forms
              • Google Gemini
              • Google My Business
              • Google Search
              • Google Search Console
              • Google Sheets
              • Google Tasks
              • Groq
              • Hacker News
              • Heartbeat
              • HubSpot
              • HTTP
              • Image Helper
              • Inputs
              • Instagram for Business
              • Intercom
              • Invoice Ninja
              • Jira Cloud
              • Jotform
              • Kimai
              • Kizeo Forms
              • LeadConnector
              • Line Bot
              • Linear
              • LinkedIn
              • LinkedIn Actions
              • LLMRails
              • Lusha
              • MailerLite
              • Mailchimp
              • Mautic
              • Microsoft Dynamics 365 Business Central
              • Microsoft Dynamics CRM
              • Microsoft Excel 365
              • Microsoft OneDrive
              • Microsoft Outlook Calendar
              • Microsoft Teams
              • Mixpanel
              • MongoDB
              • Notion
              • Odoo
              • OpenAI
              • OpenRouter
              • Pastebin
              • PDF
              • Postgres
              • PostHog
              • Pushover
              • Qdrant
              • Queue
              • Razorpay
              • Router
              • Salesforce
              • SendGrid
              • ServiceNow
              • SFTP
              • SharePoint
              • Slack
              • SMTP
              • Snowflake
              • SOAP
              • Spotify
              • Stability AI
              • Stable Diffusion Web UI
              • Storage
              • Stripe
              • SurrealDB
              • SurveyMonkey
              • Taskade
              • Telegram Bot
              • Text Helper
              • Trello
              • Twilio
              • Twitter
              • Utilities
              • WhatsApp Business
              • WordPress
              • XML
              • YouTube
              • ZBrain
              • Zendesk
              • ZeroBounce
              • Zoho Books
              • Zoho CRM
              • Zoho Invoice
              • Zoom
            • How to Define a Flow?
            • How to Test Each Step in the Flow?
          • Configure Additional Settings
          • Test and Deploy Agents
          • How to access, monitor, and manage agent performance and tasks?
      • Settings
      • 📖API tutorials
        • 📚Knowledge base
          • Automated reasoning
        • 📱APP
        • 🤖Agents
Powered by GitBook
On this page
  • How to Use Stability AI in ZBrain Flow
  • How to Generate Images Using Stability AI in ZBrain Flow
  • How to Use Stability AI Custom API Call in ZBrain Flow
  1. ZBrain Documentation
  2. ZBrain Builder
  3. ZBrain AI agents
  4. Creating custom AI agents
  5. Define Flow
  6. Flow Components

Stability AI

PreviousSpotifyNextStable Diffusion Web UI

Last updated 1 month ago

The Stability AI piece in ZBrain Flow enables AI-powered image generation and custom API interactions. This integration allows you to generate high-quality images from text descriptions or interact directly with Stability AI’s API for advanced customization. By using Stability AI in your workflows, you can automate image creation and integrate AI-driven visuals seamlessly into your applications.

How to Use Stability AI in ZBrain Flow

Select Stability AI as Your Connection

  1. Click on the ‘+’ button in the Flow.

  2. Search for ‘Stability AI’ and select it.

  3. Choose the action you want to perform. ZBrain Flow provides the following options:

    • ‘Text to Image’ – Generate an image from a text prompt.

    • ‘Custom API Call’ – Send a request to a specific Stability AI API endpoint.

How to Generate Images Using Stability AI in ZBrain Flow

Step 1: Create a Stability AI Connection

  1. In the ‘Connection’ dropdown, click on 'create connection'.

  2. A small window will appear. Fill in the following details:

    • ‘Connection Name’ – Enter a name for this Stability AI connection.

    • ‘API Key’ – Obtain your API key from and enter it here.

  3. Click ‘Save’.

Step 2: Configure the Image Generation Request

  1. In the ‘Prompt’ field, enter a text description of the image you want to generate.

  2. (Optional) Adjust advanced settings:

    • ‘cfg_scale’ – Controls how closely the image adheres to the prompt (Range: 0–35, default: 7).

    • ‘height’ and ‘width’ – Define image dimensions in increments of 64 (minimum: 128 pixels).

    • ‘samples’ – Set the number of images to generate (maximum: 10).

    • ‘steps’ – Specify the number of diffusion steps (Range: 10–150).

    • ‘weight’ – Adjusts the influence of the prompt.

    • ‘clip_guidance_preset’ – Select additional guidance for image generation.

    • ‘style_preset’ – Apply a predefined artistic style (Photographic, anime, fantasy art).

    • ‘Engine ID’ – Choose the Stability AI model to use for generation.

How to Use Stability AI Custom API Call in ZBrain Flow

Step 1: Create a Stability AI Connection

Follow the steps from the ‘Step 1: Create a Stability AI Connection’ section above to set up your Stability AI connection.

Step 2: Set Up the API Request

  1. From the ‘Method’ dropdown, choose the HTTP method (GET, POST, etc.) based on the API call’s requirements.

Step 3: Configure Request Parameters

  1. Headers – Click ‘Add Item’ to include any additional headers. Note that authorization headers are automatically added from your connection.

  2. Query Parameters – Click ‘Add Item’ to include optional filters or settings.

  3. Body – If the API request requires a request body, add the necessary JSON structure.

Step 4: Set Additional Options

  1. ‘No Error on Failure’ – Enable this if you want the workflow to continue even if the API call encounters an error.

  2. ‘Timeout (in seconds)’ – Set the maximum wait time before the request times out.

In the ‘URL’ field, enter the base API URL: ''. Add the specific API endpoint you want to use, such as '/models' for retrieving available models.

🤖
Stability AI’s authentication guide
https://api.stability.ai/v1