> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Stability AI

> Image generation, upscaling, background removal and search-and-replace. More post-production than the others.

Image generation, upscaling, background removal and search-and-replace. More post-production than the others.

## Connecting

In the dashboard, open **Connectors**, find Stability AI and press **Connect**. The key you enter is checked against Stability AI before anything is saved, so a key that is refused never becomes a connection that fails later.

### What you will need

| Field | What it is |
| - | - |
| API Key | Your Stability AI API key |

### Getting the credential

1. Sign up at [Stability AI Platform](https://platform.stability.ai)
2. Go to **Account** → **API Keys**
3. Generate new **API Key**
4. Purchase credits for API usage
5. Add API key to connector

## What your AI teammate can do with it

| Tool | What it does |
| - | - |
| `generate_image` | Generate images using Stable Diffusion models |
| `generate_image_ultra` | Generate high-quality images using Stable Diffusion 3 Ultra |
| `upscale_image` | Upscale images using AI upscaling models |
| `edit_image` | Edit images using inpainting or outpainting |
| `outpaint_image` | Extend images beyond their borders using outpainting |
| `search_and_replace` | Search for objects in an image and replace them |
| `remove_background` | Remove background from images |
| `control_image` | Generate images with structural control using ControlNet |
| `control_sketch` | Generate images from sketches using ControlNet |
| `video_generation` | Generate videos from images using Stable Video Diffusion |
| `get_balance` | Get account balance and credit information |
| `list_engines` | List available generation engines/models |

## Useful resources

* [Stability AI documentation](https://platform.stability.ai/docs/api-reference/authentication)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.