Stable Diffusion 3 is the latest text-to-image model from Stability . It has greatly improved performance in image quality, typography, complex prompt understanding, and resource-efficiency.
With Replicate, you can run Stable Diffusion 3 with one line of code.
Before you dive in, try Stable Diffusion 3 in our API playground.
Try tweaking the prompt and see how Stable Diffusion 3 responds. Most models on Replicate have an interactive API playground like this, available on the model page: https://replicate.com/stability-ai/stable-diffusion-3
The API playground is a great way to get a feel for what a model can do, and provides copyable code snippets in a variety of languages to help you get started.
You can run Stable Diffusion 3 with our official JavaScript client:
Install Replicate's Node.js client library
Set the REPLICATE_API_TOKEN
environment variable
(You can generate an API token in your account. Keep it to yourself.)
Import and set up the client
Run stability-ai/stable-diffusion-3 using Replicate's API. Check out the model's schema for an overview of inputs and outputs.
To learn more, take a look at the guide on getting started with Node.js.
You can run Stable Diffusion 3 with our official Python client:
Install Replicate's Python client library
Set the REPLICATE_API_TOKEN
environment variable
(You can generate an API token in your account. Keep it to yourself.)
Import the client
Run stability-ai/stable-diffusion-3 using Replicate's API. Check out the model's schema for an overview of inputs and outputs.
To learn more, take a look at the guide on getting started with Python.
Your can call the HTTP API directly with tools like cURL:
Set the REPLICATE_API_TOKEN
environment variable
(You can generate an API token in your account. Keep it to yourself.)
Run stability-ai/stable-diffusion-3 using Replicate's API. Check out the model's schema for an overview of inputs and outputs.
To learn more, take a look at Replicate's HTTP API reference docs.
You can also run Stable Diffusion 3 using other Replicate client libraries for Go, Swift, and others.
Happy hacking! 🦙