Connect Stability Ai to AI agents

Connect Stability Ai to Claude, Codex, Cursor, or other AI agents for your entire team. Metorial security, governance, observability, and gives your team a unified Magic MCP url to connect.

Supported Tools

control_image

Control Image Generation

Generate images guided by structural inputs using Stability AI's control tools. Four control modes: - **sketch**: Generate production-grade images from hand-drawn sketches or line drawings. - **structure**: Generate images that maintain the structural composition and edges of a reference image. - **style**: Generate new content in the visual style of a reference image (Style Guide). - **style_transfer**: Restyle an existing image with a separate style reference while preserving composition. Sketch, structure, and style guide require a reference image and prompt. Style transfer requires an input image and styleImage; prompt is optional.

generate_image

Generate Image

Generate images from text prompts using Stability AI models. Supports three model tiers: - **Ultra**: Top-tier quality powered by Stable Diffusion 3.5, excels at typography, complex compositions, and photorealism. - **Core**: Fast, affordable generation with good quality. Supports style presets. - **SD3.5**: Access to specific SD3.5 model variants with advanced controls like CFG scale. Optionally provide a reference image for image-to-image generation (Ultra and SD3.5 only).

generate_audio

Generate Audio

Generate or transform audio using Stability AI's current Stable Audio APIs. Supports: - **text_to_audio**: Generate audio from a text prompt. - **audio_to_audio**: Transform an input audio clip with prompt guidance. - **inpaint**: Regenerate a time range inside an input audio clip. Describe the desired audio including genre, mood, instruments, tempo, and style for best results.

generate_3d

Generate 3D Model

Generate 3D models from a single image using Stability AI's 3D generation models. Two models available: - **stable-fast-3d**: Generates high-quality 3D assets in ~0.5 seconds. Best for quick prototyping. - **spar3d** (Stable Point Aware 3D): More detailed generation with point cloud sampling. Better for complex objects and unseen backside details. Both models output UV-unwrapped and textured GLB files ready for use in 3D applications and game engines.

edit_image

Edit Image

Edit images using Stability AI's suite of editing tools. Supports multiple operations: - **erase**: Remove unwanted elements using a prompt and optional mask. - **inpaint**: Fill or replace masked areas with new content based on a prompt. - **outpaint**: Extend image boundaries in any direction while maintaining visual consistency. - **search_and_replace**: Swap objects by describing what to find and what to replace it with (no mask needed). - **search_and_recolor**: Change colors of specific objects described in plain language (no mask needed). - **remove_background**: Remove the background from an image, leaving the subject on a transparent background.

upscale_image

Upscale Image

Enhance image resolution using Stability AI's upscaling models. Three modes available: - **fast**: Quick 4x resolution increase without prompt guidance. Best for simple upscaling tasks. - **conservative**: Upscales up to 4K while preserving details and minimizing alterations. Requires a descriptive prompt. - **creative**: Significantly reinterprets and enhances images up to 4K resolution. Best for heavily degraded images. Accepts a creativity scale parameter. This is an async operation that may take longer.

replace_background

Replace Background & Relight

Replace the background of a subject image with a new AI-generated scene and adjust lighting. Useful for e-commerce product shots, real estate photography, and creative compositing. Provide a subject image and describe the desired background. Optionally control the lighting direction and intensity to match the new scene.

get_account

Get Account Info

Retrieve Stability AI account information and credit balance. Returns the account email, profile picture, organizations, and current credit balance for monitoring API usage.

More integrations teams use with Stability Ai

GitHub

Manage repositories, issues, and pull requests. Create and configure branches, star repositories, review code, and merge changes. Automate CI/CD workflows with GitHub Actions, manage workflow runs, secrets, and artifacts. Track issues with labels, milestones, and assignees. Search across code, repositories, issues, and users. Manage organizations, teams, and memberships. Create and manage projects, gists, packages, deployments, and environments. Access security alerts including code scanning, secret scanning, and Dependabot alerts. Read and write file contents in repositories. Manage webhooks, notifications, and codespaces.

Sharepoint

Manage SharePoint sites, document libraries, lists, and files. Create, read, update, and delete lists and list items with custom columns. Upload, download, move, copy, and version files in document libraries. Search across sites, files, folders, lists, and list items using Microsoft Search. Manage permissions at site, list, and item levels with granular access control. Define and manage content types and site columns. Subscribe to webhooks for list and library change notifications. Retrieve site properties and search for sites across Microsoft 365.

Salesforce

Manage CRM data including Accounts, Contacts, Leads, Opportunities, Cases, and custom objects. Create, read, update, and delete records. Query data using SOQL and search across objects using SOSL. Perform bulk data operations for large-scale imports, exports, and migrations. Execute composite requests to batch multiple operations in a single API call. Access analytics, reports, and dashboards. Manage files and attachments associated with records. Interact with Chatter feeds, posts, and groups for social collaboration. Subscribe to real-time change events via Change Data Capture and Platform Events. Manage org metadata including custom objects, fields, layouts, and workflows. Query data using GraphQL for precise data retrieval across related objects.

Airtable

Create, read, update, and delete records in Airtable bases and tables. Manage base schemas including creating tables and fields. Filter records using formulas, sort by fields, and scope queries to specific views. Upsert records to find, create, or update in a single call. Upload attachments to records, read and write record comments, list accessible bases, and receive real-time base change events through webhooks.

Confluence

Create, read, update, and delete pages, blog posts, comments, and attachments in Confluence spaces. Manage spaces, permissions, labels, and content restrictions. Search content using Confluence Query Language (CQL). Upload and download file attachments with versioning. Manage users, groups, and group memberships. Create and manage whiteboards, databases, folders, and templates. View and update inline tasks. Access audit logs. Listen for webhooks on page, blog, comment, attachment, space, label, and user events.

Bitbucket

Manage Git repositories, pull requests, and CI/CD pipelines on Bitbucket Cloud. Create, fork, and configure repositories within workspaces and projects. Create, review, approve, merge, and decline pull requests with inline code comments. Browse source code, list commits, and manage branches and tags. Track issues with the built-in issue tracker. Trigger, monitor, and manage Bitbucket Pipelines. List workspace members, configure repository default reviewers and branch restrictions, create and manage repository webhooks, and search code across repositories.

Technical notes for Stability Ai

Generate images from text prompts using Stable Diffusion models, edit images with tools like inpainting, outpainting, erase, search-and-replace, search-and-recolor, and background removal. Upscale images to 4K resolution with conservative, creative, or fast modes. Apply style guide and style transfer controls to images guided by references. Replace backgrounds and adjust lighting on subject images. Generate or transform audio with Stable Audio text-to-audio, audio-to-audio, and inpaint workflows. Create 3D assets from single images. Check account credit balance and usage.

Connect Stability Ai to production AI agents

See how Metorial gives Stability Ai access the governance, tracing, and security controls teams need.

Frequently asked questions

Common questions about connecting Stability Ai to AI agents with Metorial.

  1. Can Metorial connect Stability Ai to AI agents?
    Yes. Metorial connects AI agents to Stability Ai through a governed integration layer, so teams can use the provider while keeping access controlled and observable.
  2. Metorial is MCP compatible and lets teams expose approved provider tools to MCP-capable agents and clients through a controlled access layer.
  3. Metorial applies policies across users, groups, providers, agents, and individual tools, then records the context around every agent interaction.
  4. Yes. Metorial records provider activity so teams can inspect tool calls, troubleshoot integrations, and give security teams the visibility they need.