Home/Explore/stability-ai/stable-diffusion
text-to-image

text-to-image

Stability AI Stable Diffusion

stability-ai/stable-diffusion

Stability AI Stable Diffusion is a latent text-to-image diffusion model that generates photo-realistic images from any text prompt. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.

Hint: You can drag and drop a file or click to upload

width
height
If enabled, the output will be encoded into a BASE64 string instead of a URL. This property is only available through the API.

Idle

The sun sets slowly over the sea level at Labrador Nature Reserve. The fiery sunset afterglow dyes the sky and sea red, while the silhouettes of the old fort and jetty appear especially solemn in the fading light. A wide-angle shot, capturing the vast scenery of the sea and sky as one.

Your request will cost $0.0035 per run.

For $1 you can run this model approximately 285 times.

One more thing::

ExamplesView all

The sun sets slowly over the sea level at Labrador Nature Reserve. The fiery sunset afterglow dyes the sky and sea red, while the silhouettes of the old fort and jetty appear especially solemn in the fading light. A wide-angle shot, capturing the vast scenery of the sea and sky as one.
Lyrical abstraction inspired by Kandinsky, a symphony of floating geometric shapes, circles, triangles, and flowing lines, vibrant and harmonious color palette, evokes the feeling of classical music, spiritual and rhythmic, watercolor-like transparency on a textured paper background.

Minimalist geometric abstraction, style of Piet Mondrian, a composition of intersecting thick black lines creating rectangles of primary colors (red, blue, yellow) and white, perfectly balanced, clean and harmonious, flat planes of color, intellectual and orderly.
Surrealist automatism, biomorphic and organic forms flowing from the subconscious, dreamlike landscape of strange, interconnected shapes, muted earth tones with sudden bursts of vivid color, style of Joan Miró, playful yet mysterious, ink and wash on aged parchment.
Professional photograph, the sun rises from behind the calm water of Lower Seletar Reservoir. Golden morning light illuminates the iconic observation bridge and the trees along the shore. The water's surface reflects the soft colors of the sky, the entire scene is full of peace and harmony.
Viewed from the peak of Mount Faber Park, the first light of sunrise breaks through the clouds, casting its glow on the distant port and city skyline. Ships on the sea and the building clusters below are gradually illuminated, revealing the spectacular sight of a city awakening from its slumber.
At dawn, the sky over Punggol Waterway Park displays soft pink and lilac hues. The modern-style pedestrian bridge is outlined in a graceful silhouette against the morning light, reflected in the tranquil waterway. The air is fresh and everything is serene, filled with a sense of hope.

README

Stable Diffusion

Stable Diffusion is Stability AI's efficient and affordable text-to-image and image-to-image generation model. Generate quality images from text descriptions at an ultra-low cost — perfect for high-volume generation, prototyping, and budget-conscious projects.

Why It Stands Out

  • Ultra-affordable: Generate images at just $0.0035 each — ideal for high-volume use cases.
  • Dual mode support: Works as both text-to-image and image-to-image generator.
  • Prompt Enhancer: Built-in AI-powered prompt optimization for better results.
  • Flexible sizing: Customize width and height independently for any aspect ratio.
  • Fast generation: Optimized for speed and efficiency.
  • Reproducibility: Use the seed parameter to recreate exact results.

Parameters

ParameterRequiredDescription
promptYesText description of the image you want to generate.
imageNoSource image for image-to-image transformation.
widthNoOutput width in pixels (default: 1024).
heightNoOutput height in pixels (default: 1024).
seedNoSet for reproducibility; -1 for random.
enable_base64_outputNoReturn base64 string instead of URL (API only).

How to Use

Text-to-Image:

  1. Write a prompt describing the image you want. Use the Prompt Enhancer for AI-assisted optimization.
  2. Set dimensions — adjust width and height for your desired aspect ratio.
  3. Set a seed (optional) for reproducible results.
  4. Click Run and download your image.

Image-to-Image:

  1. Upload a source image.
  2. Write a prompt describing the transformation you want.
  3. Adjust dimensions and set a seed (optional).
  4. Click Run and download your transformed image.

Best Use Cases

  • High-Volume Generation — Generate thousands of images affordably.
  • Rapid Prototyping — Quickly test ideas and concepts at minimal cost.
  • Batch Processing — Create large datasets of images for training or testing.
  • Creative Exploration — Experiment with prompts without budget concerns.
  • Thumbnail Generation — Produce placeholder images and quick previews.

Pricing

OutputPrice
Per image$0.0035

Pro Tips for Best Quality

  • Be descriptive in your prompt — include style, mood, lighting, and specific details.
  • Use style keywords to guide the aesthetic output.
  • Adjust dimensions to match your intended use case.
  • For image-to-image, provide a clear source image and describe the desired transformation.
  • Fix the seed when iterating to compare different prompt variations.

Notes

  • Ensure uploaded image URLs are publicly accessible.
  • Processing time varies based on resolution and current queue load.
  • Please ensure your prompts comply with content guidelines.