Stable Diffusion - AI Image Generation AI工具使用教程与评测
FreeStable Diffusion is Stability AI's open-source AI image generation model supporting local deployment and cloud API access, backed by the world's most active open-source community ecosystem. Users can freely download model weights for local use, or access via DreamStudio web app or API, with rich features including text-to-image, image-to-image, inpainting, and upscaling.
Stable Diffusion is an open-source AI image generation model developed by Stability AI, which has rapidly become the world's most popular AI art foundation model since its 2022 release. Its defining feature is being fully open-source — users can freely download model weights and run them locally without internet access or subscriptions.
The latest Stable Diffusion 3.5 series includes Large (8B parameters), Large Turbo, Medium, and Flash variants, achieving new heights in image quality and prompt adherence. Stability AI also offers DreamStudio web app and Developer Platform API serving everyone from individual creators to enterprise users.
import requests
response = requests.post(
'https://api.stability.ai/v2beta/stable-image/generate/ultra',
headers={
'authorization': 'Bearer YOUR_API_KEY',
'accept': 'image/*'
},
files={'none': ''},
data={
'prompt': 'A futuristic cityscape at sunset',
'output_format': 'webp'
}
)
with open('output.webp', 'wb') as f:
f.write(response.content)
Image Generation
| Service | Price (credits/image) |
|---|---|
| Stable Image Ultra (SD 3.5 Large) | 8 credits ($0.08) |
| Stable Diffusion 3.5 Large | 6.5 credits ($0.065) |
| SD 3.5 Large Turbo | 4 credits ($0.04) |
| SD 3.5 Medium | 3.5 credits ($0.035) |
| SD 3.5 Flash | 2.5 credits ($0.025) |
| Stable Image Core | 3 credits ($0.03) |
Image Editing: 5–8 credits/operation Upscaling: 2–60 credits/operation 3D Generation: 4–10 credits/operation