Models / Image / Stable Diffusion XL 1.0
Stable Diffusion XL 1.0
Image
A text-to-image generative AI model that excels at creating 1024x1024 images.
Try our Stable Diffusion API

API Usage
How to use Stable Diffusion XL 1.0Model CardPrompting Stable Diffusion XL 1.0Applications & Use CasesAPI Usage
Endpoint
stabilityai/stable-diffusion-xl-base-1.0
RUN INFERENCE
curl -X POST "https://api.together.xyz/v1/images/generations" \
-H "Authorization: Bearer $TOGETHER_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "stabilityai/stable-diffusion-xl-base-1.0",
"prompt": "Cats eating popcorn",
"steps": 10,
"n": 4
}'
JSON RESPONSE
RUN INFERENCE
from together import Together
client = Together()
response = client.images.generate(
prompt="Cats eating popcorn",
model="stabilityai/stable-diffusion-xl-base-1.0",
steps=10,
n=4
)
print(response.data[0].b64_json)
JSON RESPONSE
RUN INFERENCE
import Together from "together-ai";
const together = new Together();
const response = await together.images.create({
model: "stabilityai/stable-diffusion-xl-base-1.0",
prompt: "Cats eating popcorn",
steps: 10,
n: 4
});
console.log(response.data[0].b64_json);
JSON RESPONSE
Model Provider:
Stability AI
Type:
Image
Variant:
Parameters:
3.5B
Deployment:
✔ Serverless
Quantization
Context length:
Pricing:
See pricing
Run in playground
Deploy model
Quickstart docs
Quickstart docs
How to use Stable Diffusion XL 1.0
Model details
Prompting Stable Diffusion XL 1.0
Applications & Use Cases
Looking for production scale? Deploy on a dedicated endpoint
Deploy Stable Diffusion XL 1.0 on a dedicated endpoint with custom hardware configuration, as many instances as you need, and auto-scaling.
