Stability AI: Stable Diffusion
stability-ai/stable-diffusion
Access Stable Diffusion from Stability AI using the Puter.js AI API.
Get StartedModel Card
Stable Diffusion is the original text-to-image latent diffusion model released by Stability AI in 2022, the checkpoint that first brought open-weight image generation to a mass audience. This deployment serves version 1.5, initialized from the Stable Diffusion 1.2 weights and fine-tuned for 595,000 steps at 512x512 resolution on the LAION-Aesthetics v2 5+ dataset.
It predates newer Stability releases like SDXL and Stable Diffusion 3.5, and its own model card notes limits on photorealism, legible text, and rendering faces or hands accurately. Its main draw today is longevity: a large ecosystem of community fine-tunes, LoRAs, and tooling has built up around the v1.5 checkpoint over several years.
Through this API, billing is metered by generation time rather than a flat per-image rate, so cost scales with how long a request takes to run. It suits low-cost, high-volume batch generation and workflows already built around the v1.5 checkpoint.
Cost Per Image $0.0014
per generation
Configuration second
resolution
Release Date Oct 20, 2022
Code Example
Use Stable Diffusion in your app with the Puter.js AI API — no API keys or setup required.
// npm install @heyputer/puter.js
import { puter } from '@heyputer/puter.js';
puter.ai.txt2img("A serene mountain landscape at sunset", {
model: "stability-ai/stable-diffusion"
}).then(image => {
document.body.appendChild(image);
});
<html>
<body>
<script src="https://js.puter.com/v2/"></script>
<script>
puter.ai.txt2img("A serene mountain landscape at sunset", {
model: "stability-ai/stable-diffusion"
}).then(image => {
document.body.appendChild(image);
});
</script>
</body>
</html>
More AI Models From Stability AI
Find other Stability AI models →
Stable Diffusion 3.5 Medium
Stable Diffusion 3.5 Medium is the smallest model in Stability AI's SD 3.5 family, built on an improved MMDiT-X architecture with 2.5 billion parameters, roughly a third the size of SD 3.5 Large. Stability AI positions it as outperforming other medium-sized image models, and it supports a wider range of output resolutions, from 0.25 to 2 megapixels, than the fixed 1-megapixel target of Large. It sits between Large and Large Turbo on the quality-speed-cost curve, less detailed and prompt-adherent than Large, but cheaper to call through the API and still capable of the typography and complex-prompt handling introduced across the SD 3.5 lineup. It fits applications generating high volumes of images where Large's extra fidelity isn't worth the added cost.
ImageStable Diffusion 3.5 Large
Stable Diffusion 3.5 Large is Stability AI's flagship image model in the SD 3.5 family, built on a Multimodal Diffusion Transformer (MMDiT) architecture with 8.1 billion parameters. It combines three text encoders, OpenCLIP-ViT/G, CLIP-ViT/L, and T5-XXL, with QK-normalization for more stable training. Stability AI describes it as leading the market in prompt adherence and rivaling larger models in image quality, generating images up to 1 megapixel (1024x1024) with improved typography and complex-prompt understanding over the earlier SD3 Medium. Within the SD 3.5 lineup, Large is the highest-quality but slowest option, compared with the faster Large Turbo and the smaller, more resource-efficient Medium. It fits professional design work, marketing content, and any use case where prompt fidelity and image detail matter more than generation speed.
ImageStable Diffusion 3.5 Large Turbo
Stable Diffusion 3.5 Large Turbo is a distilled version of Stable Diffusion 3.5 Large, built to generate images in as few as four inference steps instead of the dozens a standard diffusion model needs. It keeps the same 8-billion-parameter MMDiT architecture and multi-encoder text understanding as Large, compressed for speed through step distillation. Stability AI markets it as one of the fastest inference options for a model of its size while staying competitive on quality and prompt adherence, trading some of Large's fidelity for lower latency. It targets applications where response time matters, such as interactive tools, rapid prototyping, or high-volume generation, and it costs less per image than Large through this API, making it a reasonable default when fast turnaround matters more than maximum detail.
Frequently Asked Questions
You can access Stable Diffusion by Stability AI through Puter.js AI API. Include the library in your web app or Node.js project and start making calls with just a few lines of JavaScript — no backend and no configuration required.
Stable Diffusion is free to integrate using the Puter.js AI API. With the User-Pays Model, you can add AI to your app for $0, since users cover their own AI usage through their Puter account.
| Price | |
|---|---|
| Per image | $0.0014 |
Stable Diffusion was created by Stability AI and released on Oct 20, 2022.
Yes — the Stable Diffusion API works with any JavaScript framework, Node.js, or plain HTML through Puter.js. Just include the library and start building. See the documentation for more details.
Add Stable Diffusion to your app for free
Developers can integrate Stable Diffusion for free using the Puter.js AI API.
With the User-Pays Model, each user covers their own AI usage instead of the developer.