Stable Diffusion v3 Medium overview
Stable Diffusion v3 Medium specs
- Model ID
stable-diffusion-v3-medium- Developer
- Stability AI
- Input
- Image, Text
- Output
- Image
- Endpoint
POST https://api.aimlapi.com/v1/images/generations
What is Stable Diffusion v3 Medium API?
Enhanced Stable Diffusion 3 text-to-image model with improved text quality, efficiency and understanding
Stable Diffusion v3 Medium API Pricing
- Pricing on request
Where to Use Stable Diffusion v3 Medium
Use cases
Generation of artworks and use in design and other artistic processes. The model is documented as an image generator that is suited to creating artworks and supporting design work.
Applications in educational or creative tools. The model is also documented for use in educational or creative tools that generate images from text prompts.
Research on generative models, including understanding the limitations of generative models. The documentation lists research use as an intended application, specifically for studying generative models and their limitations.
Stable Diffusion v3 Medium API pricing
| Usage | Price | Unit |
|---|---|---|
| Image generation | $0.035 | per Megapixel |
The final price depends on request parameters such as resolution or duration.
Prices from the AI/ML API price list, checked on Nov 4, 2026.
Stable Diffusion v3 Medium vs other image models: prices
AI/ML API rates for 5 models, per Megapixel.
| Model | Per Megapixel |
|---|---|
| $0.035 | |
| $0.03 | |
| $0.034 | |
| $0.035 | |
| $0.065 |
How to use the Stable Diffusion v3 Medium API
View docsBuild with your agent
Give your agent the model details, code and documentation.
1Get your API key
Create API keyexport AIMLAPI_KEY="8f2b4c7d9a1e6b3f…"2Make your first request
curl 'https://api.aimlapi.com/v1/images/generations' \
-H "Authorization: Bearer $AIMLAPI_KEY" \
-H 'Content-Type: application/json' \
-d '{
"model": "stable-diffusion-v3-medium",
"prompt": "A ginger cat asleep on a stack of exactly three hardcover books in a rainy bookshop window at dusk. Gold lettering on the glass reads OPEN LATE. Warm lamp light inside, raindrops and blurred neon reflections outside, 35mm film photo."
}'import os
import requests
headers = {
"Authorization": f"Bearer {os.environ['AIMLAPI_KEY']}",
"Content-Type": "application/json",
}
payload = {
"model": "stable-diffusion-v3-medium",
"prompt": "A ginger cat asleep on a stack of exactly three hardcover books in a rainy bookshop window at dusk. Gold lettering on the glass reads OPEN LATE. Warm lamp light inside, raindrops and blurred neon reflections outside, 35mm film photo."
}
response = requests.post("https://api.aimlapi.com/v1/images/generations", headers=headers, json=payload, timeout=120)
response.raise_for_status()
print(response.json())const response = await fetch("https://api.aimlapi.com/v1/images/generations", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.AIMLAPI_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"model": "stable-diffusion-v3-medium",
"prompt": "A ginger cat asleep on a stack of exactly three hardcover books in a rainy bookshop window at dusk. Gold lettering on the glass reads OPEN LATE. Warm lamp light inside, raindrops and blurred neon reflections outside, 35mm film photo."
}),
});
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());Related articles
Stable Diffusion v3 Medium FAQ
What inputs and outputs does Stable Diffusion v3 Medium support?
Stable Diffusion v3 Medium takes image, text as input and returns image.
How much does Stable Diffusion v3 Medium cost?
Stable Diffusion v3 Medium costs $0.035 per Megapixel on AI/ML API, billed as you go with no subscription.
How is Stable Diffusion v3 Medium billed?
Stable Diffusion v3 Medium is billed per generation, a fixed charge per output rather than by prompt length.
Can Stable Diffusion v3 Medium take an existing image as input?
Yes, Stable Diffusion v3 Medium accepts image input as well as a text prompt.
Who created Stable Diffusion v3 Medium?
Stable Diffusion v3 Medium was built by Stability AI.
How do I call Stable Diffusion v3 Medium on AI/ML API?
Send a request to https://api.aimlapi.com/v1/images/generations with stable-diffusion-v3-medium as the model id.
Is Stable Diffusion v3 Medium available through a single API key?
Yes. Stable Diffusion v3 Medium is served through AI/ML API, so the same key and endpoint format used for other models applies.
What is Stable Diffusion 3 Medium?
It is an enhanced Stable Diffusion 3 text-to-image model from Stability AI, offering improved text quality, efficiency and understanding.
What is the Stable Diffusion v3 Medium model ID?
Use stable-diffusion-v3-medium as the model parameter. Requests go to https://api.aimlapi.com/v1/images/generations with your AI/ML API key.



.webp)