Stable Diffusion XL

Replicate
Image Generation

Stability AI's popular SDXL model. Widely adopted, extensive community support, and thousands of fine-tuned variants available.

Try Stable Diffusion XL

Your generated image will appear here

Sign up free to start generating
Get Started

Pricing

Price per Generation
Per generationFree

API Integration

Use our OpenAI-compatible API to integrate Stable Diffusion XL into your application.

Install
npm install railwail
JavaScript / TypeScript
import railwail from "railwail";

const rw = railwail("YOUR_API_KEY");

const images = await rw.run("sdxl", "A beautiful sunset over Tokyo");
console.log(images[0].url);

// Or use the image() method for full control
const res = await rw.image("sdxl", "A cat in space", {
  size: "1024x1024",
  n: 1,
});
console.log(res.data[0].url);
Specifications
Provider
Replicate
Category
Image Generation
Tags
open-source
popular
fine-tunable
Try this model

Free credits on sign-up

Start using Stable Diffusion XL today

Get started with free credits. No credit card required. Access Stable Diffusion XL and 100+ other models through a single API.