Stable Diffusion v3 Medium API

Enhanced Stable Diffusion 3 text-to-image model with improved text quality, efficiency and understanding

Modalities
Image, TextImage
Price
$0.035per Megapixel
Model type
Image generation
Released
Oct 13, 2025

Stable Diffusion v3 Medium overview

Sample Stable Diffusion v3 Medium image generated through AI/ML API:

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

Stable Diffusion v3 Medium pricing in US dollars
UsagePriceUnit
Image generation$0.035per 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.

AI/ML API prices in USD per Megapixel
ModelPer Megapixel
Stable Diffusion v3 Medium$0.035
FLUX.2 Pro Preview$0.03
FLUX Erase$0.034
Flux realism$0.035
Stable Diffusion v3.5 Large$0.065

How to use the Stable Diffusion v3 Medium API

View docs

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export 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."
}'

Related articles

All posts

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.

Start building with Stable Diffusion v3 Medium

Stable Diffusion v3 Medium API

stable-diffusion-v3-medium

Build with your agent

Give your agent the model details, code and documentation.

1Get your API key

Create API key
export 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."
}'