Skip to content
Stable Diffusion API

Stable Diffusion

SD 3

model_id: stable-diffusion-3-medium

Generate images from text with SD 3. High-resolution AI image generation. Plans from $21/month. SD 3 is a ai generation AI model by ModelsLab available on ModelsLab. API access starts at $21/month, and open-source models are unlimited on the $149/month plan. You can integrate SD 3 into your application with a single API call. Sign up on ModelsLab to get your API key, then use the model ID "stable-diffusion-3-medium" in your API requests. We provide SDKs for Python, JavaScript, and cURL examples in the API documentation. SD 3 costs $0.0047 per API call. ModelsLab plans start at $21/month (Basic), and the $149/month Open Source plan includes unlimited generation on open-source models.

SD 3 sample image

Generate with SD 3 via API

Send a POST request to https://stablediffusionapi.com/api/v6/images/text2img with your API key. Get yours at modelslab.com.

curl -X POST 'https://stablediffusionapi.com/api/v6/images/text2img' \
  -H 'Content-Type: application/json' \
  -d '{
  "key": "YOUR_API_KEY",
  "model_id": "stable-diffusion-3-medium",
  "prompt": "an isometric illustration of a tiny island village",
  "width": 1024,
  "height": 1024,
  "samples": 1
}'

Also searched as

SD 3 is also known as: SD 3, stable-diffusion-3-medium, stable diffusion 3 medium, stablediffusion3medium, stable.diffusion.3.medium. Use it for stable diffusion generation, available via the Stable Diffusion API REST API at https://stablediffusionapi.com/api/v6/images/text2img.

FAQ — SD 3

How do I use SD 3 via API?
Send a POST request to https://stablediffusionapi.com/api/v6/images/text2img with your API key, prompt, and model_id "stable-diffusion-3-medium". Get an API key from modelslab.com.
Is SD 3 free to use?
No. API access requires a paid ModelsLab plan, starting at $21/month (Basic, 3,250 API calls). The $149/month Open Source Unlimited plan includes unlimited generations on open-source models; third-party models are billed separately.
What parameters does SD 3 support?
SD 3 takes your API key plus: model_id, prompt, width, height, samples. The code sample on this page shows a complete request.
Can I use generated images commercially?
Yes. You retain copyright on all images you generate via the API and can use them commercially.