Stable Diffusion 3.5 Medium
Stability AI's 2.5B open-weight text-to-image model built on the MMDiT-X Multimodal Diffusion Transformer architecture, balancing consumer GPU efficiency with strong prompt adherence, photorealism, and English typography rendering.
What you can do
- Concept posters with English typography
- E-commerce product scene synthesis
- Multi-style illustration generation
Input & output
- Input
- Descriptive English text prompts specifying subject, lighting, style, and embedded text
- Output
- High-resolution generated images (typically 1024×1024 and flexible aspect ratios)
Try a prompt like this
A warm cinematic studio photograph of an artisan coffee tin on a walnut counter with crisp embossed gold lettering reading 'BLUE OCEAN ROAST', soft morning rim light, 85mm lens.
Things to know
Requires ~10GB–16GB VRAM in FP16 including T5-XXL text encoder (or ~8GB with quantized T5); governed by the Stability AI Community License (free commercial use under $1M annual revenue; enterprise license required above $1M).
All listed models publish open weights for self-hosted deployment; check each repository's license before commercial use.
Call it through the API
The platform exposes an OpenAI-compatible API. Use an official SDK or any HTTP client, then set the gateway URL, API key, and model ID.
- Endpoint
POST/v1/images/generations- Model repo ID
StabilityAI/stable-diffusion-3.5-medium
import os
from openai import OpenAI
client = OpenAI(
base_url=os.environ["API_BASE_URL"],
api_key=os.environ["API_KEY"],
)
result = client.images.generate(
model="StabilityAI/stable-diffusion-3.5-medium",
prompt="A warm cinematic studio photograph of an artisan coffee tin on a walnut counter with crisp embossed gold lettering reading 'BLUE OCEAN ROAST', soft morning rim light, 85mm lens.",
size="1024x1024",
)
print(result.data[0].url)Before running a sample, set the API_BASE_URL (gateway URL) and API_KEY environment variables.
Read the full API guide