Stability AI

{/* Generated by scripts/generate-integration-catalog.mjs. Do not edit by hand. */}

At a glance

Credentials

Set these per environment. See Connect an integration.

VariableRequiredDescription
STABILITY_API_KEYYesStability AI API key (starts with sk-) Docs.

Setup

  1. Create a Stability AI account: Sign up at https://platform.stability.ai - new accounts receive 25 free credits, enough to test image generation.
  2. Create an API key: Open https://platform.stability.ai/account/keys and copy your API key (starts with sk-). Create a dedicated key per application if you prefer.
  3. Store the key: Add it to your .env file as STABILITY_API_KEY=sk-...
  4. Verify access: Run the Get Balance tool to confirm the key works, then List Engines and try Text to Image with a simple prompt.

Provider notes

  • Image generation is billed in credits per image - buy credits at https://platform.stability.ai/account/credits
  • Text to Image defaults the Accept header to application/json so images return as base64 artifacts (each with its seed and finishReason)
  • The newer v2beta Stable Image endpoints require multipart/form-data uploads and are not exposed here; tools use the JSON v1 generation API (SDXL)

Provider API reference.

Tools

ToolAccessDescription
List Engines<br /><code className="reference-identifier">stability-ai__list_engines</code>ReadList engines
Get Balance<br /><code className="reference-identifier">stability-ai__get_balance</code>ReadGet balance
Get Account<br /><code className="reference-identifier">stability-ai__get_account</code>ReadGet account
Text to Image<br /><code className="reference-identifier">stability-ai__text_to_image</code>WriteGenerate image (consumes credits)

Verify the connection

Call a read tool such as stability-ai__list_engines with arguments for your account. Confirm that the result comes from the intended account or workspace before enabling write tools.