Stable Diffusion 3 API
by Stable Diffusion
Stable Diffusion 3 Medium, a 2-billion-parameter Multimodal Diffusion Transformer from Stability AI known for photorealism, typography, and prompt understanding.
- ~8s
- Avg. generation
- 4 credits
- From
stable-diffusion-3
Image model
Playground
Try Stable Diffusion 3 right here.
Your output lands here. Hit generate to run this request in Studio.
Pricing
Simple per-generation pricing.
4 credits per generation ≈ $0.04
- You only pay for successful generations. Failed jobs are refunded automatically.
- One credit balance across every model on Apiframe, no per-model plans.
- Start with free credits. No subscription required.
- Volume discounts on larger plans.
Specs
At a glance.
Quickstart
How to call the Stable Diffusion 3 API.
Send one POST /v2/images/generate request with your API key. The call returns a jobId you can poll, or pass a webhook_url and the result is pushed to you the moment it's ready.
Swap stable-diffusion-3 for any other model and nothing else changes.
const response = await fetch("https://api.apiframe.ai/v2/images/generate", {
method: "POST",
headers: {
"X-API-Key": "afk_your_api_key_here",
"Content-Type": "application/json",
},
body: JSON.stringify({
"prompt": "a sleek silver sports car on a coastal highway at sunset, hyper-realistic",
"model": "stable-diffusion-3",
"stableDiffusionParams": {
"image": "https://example.com/input.jpg",
"prompt_strength": 0.85,
"negative_prompt": "What you do NOT want to see…",
"cfg": 3.5
}
}),
});
const { jobId } = await response.json();
console.log(jobId); Input schema
Every field Stable Diffusion 3 accepts, with types and defaults. The full reference lives in the docs.
| Field | Type | Description |
|---|---|---|
| prompt required | string | Text description of what to generate. |
| model required | string | The model identifier for this endpoint. Default:"stable-diffusion-3" · "stable-diffusion-3" |
| stableDiffusionParams.image | string (URL) | Optional image for image-to-image mode. Output matches its aspect ratio. |
| stableDiffusionParams.prompt_strength | number | Denoising strength for image-to-image (0–1). 1.0 ignores the input image. Default:0.85 · min 0, max 1, step 0.05 |
| stableDiffusionParams.negative_prompt | string | Negative prompt |
| stableDiffusionParams.cfg | number | How strictly to follow the prompt. Default:3.5 · min 0, max 20, step 0.1 |
| stableDiffusionParams.steps | number | Steps Default:28 · min 1, max 40, step 1 |
| stableDiffusionParams.output_format | string | Output format Default:"webp" · "webp", "jpg", "png" |
| stableDiffusionParams.output_quality | number | Output quality Default:90 · min 0, max 100, step 1 |
| stableDiffusionParams.seed | number | Reuse a number to reproduce the same result. step 1 |
Stable Diffusion versions
Every Stable Diffusion image model on Apiframe. Switch with one parameter.
Stable Diffusion 3 questions
What teams ask before shipping with Stable Diffusion 3. Everything else lives in the docs.
How many steps can I use?
Stable Diffusion 3 samples up to 28 steps. Higher values are automatically clamped to 28.
What does Stable Diffusion 3 cost?
Pricing is flat: 4 credits per generated image.
Related models
All image modelsFlux 2 Max
by Black Forest Labs
Highest-quality Flux 2 tier.
View modelMidjourney
by Midjourney
Iconic stylised, cinematic look.
View modelNano Banana 2
by Google
Next-gen Nano Banana with refined detail.
View modelSeedream 5.0 Pro
by ByteDance
Flagship ByteDance model with sharp 1K/2K output and up to 10 reference images.
View model9,800+
developers & companies
Official partner of
Power your next AI product with Apiframe.
Instant access to 70+ media models through a single API. Start free and scale when you're ready.