Quick Start
Get started with Stability AI in under 2 minutes:Tip: You can also set
provider="@stability-ai" in Portkey() and use just model="stable-diffusion-v1-6" in the request.Add Provider in Model Catalog
Before making requests, add Stability AI to your Model Catalog:- Go to Model Catalog → Add Provider
- Select Stability AI
- Enter your Stability AI API key
- Name your provider (e.g.,
stability-ai)
Complete Setup Guide
See all setup options and detailed configuration instructions
Image Generation
Generate high-quality images with Stable Diffusion:Portkey uses the OpenAI image generation signature for Stability AI, allowing you to easily switch between providers.
Supported Models
Stability AI offers powerful image generation models:| Model | Description |
|---|---|
| stable-diffusion-v1-6 | High-quality general-purpose image generation |
| stable-diffusion-xl-1024-v1-0 | XL model for larger, more detailed images |
Next Steps
Gateway Configs
Add fallbacks, load balancing, and more
Observability
Monitor and trace your Stability AI requests
Caching
Cache generated images
Metadata
Add custom metadata to requests
SDK Reference
Complete Portkey SDK documentation

