Stability AI API
Stability AI 接口
Generate images with Stable Diffusion 3, SDXL, and image-to-video models.
使用 Stable Diffusion 3、SDXL 和图像转视频模型生成图像。
Website
Documentation
Pricing
pay-as-you-go (per image)
Authentication
- API Key
Popularity
60/100
Endpoints
https://api.stability.ai/v1/generation/stable-diffusion-v3/text-to-image
SDKs
PythonTypeScriptcurl
Key Features
- ◆Stable Diffusion 3 & SDXL models
- ◆Text-to-image & image-to-video
- ◆ControlNet for precise control
- ◆Upscaling & outpainting tools
- ◆Commercial usage allowed
Code Examples
Text-to-Imagebash
curl -X POST https://api.stability.ai/v1/generation/stable-diffusion-v3/text-to-image \
-H "Authorization: Bearer $STABILITY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"text_prompts": [{"text": "a cat wearing a hat"}],
"samples": 1
}'Tags
imagegenerationstable-diffusion
Last updated: 2026-07-27