WaveSpeedAI APIStability AIStability AI Stable Diffusion 3

Stability Ai Stable Diffusion 3

Stability Ai Stable Diffusion 3

Playground

Try it on WavespeedAI!

Stable Diffusion 3 delivers superior text-to-image outputs with better image quality, typography, and complex prompt understanding. Ready-to-use REST inference API, best performance, no coldstarts, affordable pricing.

Features

Stable Diffusion 3

Create beautiful images from text with Stability AI’s foundational Stable Diffusion 3 model. Featuring improved prompt understanding and visual quality, SD3 delivers reliable, high-quality results for both text-to-image and image-to-image generation at an accessible price point.

Why It Looks Great

  • Enhanced prompt comprehension: Better understands complex descriptions, spatial relationships, and artistic directions.
  • Dual mode flexibility: Generate from text alone or use a reference image to guide the output.
  • Multiple aspect ratios: Supports 1:1, 3:4, 4:3, 16:9, and 9:16 for any creative format.
  • Prompt Enhancer: Built-in tool to automatically expand and improve your descriptions.
  • Reproducible results: Use the seed parameter to recreate exact outputs or explore variations.
  • Cost-effective quality: Strong performance at a competitive price for production workflows.

Parameters

ParameterRequiredDescription
promptYesText description of the image you want to generate.
imageNoOptional reference image for image-to-image generation (upload or URL).
aspect_ratioNoOutput aspect ratio: 1:1, 3:4, 4:3, 16:9, or 9:16. Default: 1:1.
seedNoRandom seed for reproducibility. Use -1 for random.
enable_base64_outputNoAPI only: Returns base64 string instead of URL.

How to Use

  1. Write your prompt — describe your image with details about subject, style, lighting, and mood.
  2. Use Prompt Enhancer (optional) — click to automatically enrich your description.
  3. Add reference image (optional) — upload an image to guide the generation style or composition.
  4. Choose aspect ratio — select the output format that fits your needs.
  5. Set seed (optional) — use -1 for random, or a specific number to reproduce results.
  6. Run — click the button to generate.
  7. Download — preview and save your image.

Pricing

Flat rate per image generation.

OutputCost
Per image$0.03

Best Use Cases

  • Photography-Style Images — Generate realistic scenes, landscapes, and architectural shots.
  • Social Media Content — Create custom visuals for posts, stories, and profiles.
  • Design Mockups — Quickly visualize concepts for products, interiors, and environments.
  • Stock Image Alternative — Produce unique imagery without licensing concerns.
  • Creative Exploration — Experiment with visual ideas and artistic directions affordably.

Example Prompts

  • “A photograph of Marina Bay at sunset, afterglow burning the sky into vivid shades of purple, pink, and orange, city lights reflecting on perfectly still water”
  • “A cozy reading nook with floor-to-ceiling bookshelves, warm lamp light, rain visible through a window, hygge atmosphere”
  • “Close-up portrait of an elderly craftsman with weathered hands, workshop background, documentary photography style”
  • “Aerial view of tulip fields in the Netherlands, geometric patterns of vibrant colors, spring morning light”
  • “Art deco poster design for a jazz club, bold geometric shapes, gold and deep blue color scheme”

Pro Tips for Best Results

  • Include lighting and atmosphere details — “golden hour”, “soft diffused light”, “dramatic shadows”.
  • Specify the medium or style — “photograph”, “oil painting”, “digital illustration”, “3D render”.
  • Use the Prompt Enhancer as a starting point, then refine for more control.
  • For photorealistic results, add camera details like “shot on 35mm”, “shallow depth of field”.
  • Keep the seed constant when testing prompt variations to see exactly what changed.
  • Match aspect ratio to your use case: 1:1 for social profiles, 16:9 for headers, 9:16 for stories.

Notes

  • If using a URL for the reference image, ensure it is publicly accessible.
  • The enable_base64_output option is only available through the API, not the web interface.
  • Generation time may vary based on current queue load.

Authentication

For authentication details, please refer to the Authentication Guide.

API Endpoints

Submit Task & Query Result


# Submit the task
curl --location --request POST "https://api.wavespeed.ai/api/v3/stability-ai/stable-diffusion-3" \
--header "Content-Type: application/json" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}" \
--data-raw '{
    "aspect_ratio": "1:1",
    "seed": -1,
    "enable_base64_output": false
}'

# Get the result
curl --location --request GET "https://api.wavespeed.ai/api/v3/predictions/${requestId}/result" \
--header "Authorization: Bearer ${WAVESPEED_API_KEY}"

Parameters

Task Submission Parameters

Request Parameters

ParameterTypeRequiredDefaultRangeDescription
promptstringYes-The positive prompt for the generation.
imagestringNo-The image to generate an image from.
aspect_ratiostringNo1:11:1, 3:4, 4:3, 16:9, 9:16The aspect ratio of the generated media.
seedintegerNo-1-1 ~ 2147483647The random seed to use for the generation. -1 means a random seed will be used.
enable_base64_outputbooleanNofalse-If enabled, the output will be encoded into a BASE64 string instead of a URL. This property is only available through the API.

Response Parameters

ParameterTypeDescription
codeintegerHTTP status code (e.g., 200 for success)
messagestringStatus message (e.g., “success”)
data.idstringUnique identifier for the prediction, Task Id
data.modelstringModel ID used for the prediction
data.outputsarrayArray of URLs to the generated content (empty when status is not completed)
data.urlsobjectObject containing related API endpoints
data.urls.getstringURL to retrieve the prediction result
data.has_nsfw_contentsarrayArray of boolean values indicating NSFW detection for each output
data.statusstringStatus of the task: created, processing, completed, or failed
data.created_atstringISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”)
data.errorstringError message (empty if no error occurred)
data.timingsobjectObject containing timing details
data.timings.inferenceintegerInference time in milliseconds

Result Request Parameters

ParameterTypeRequiredDefaultDescription
idstringYes-Task ID

Result Response Parameters

ParameterTypeDescription
codeintegerHTTP status code (e.g., 200 for success)
messagestringStatus message (e.g., “success”)
dataobjectThe prediction data object containing all details
data.idstringUnique identifier for the prediction, the ID of the prediction to get
data.modelstringModel ID used for the prediction
data.outputsstringArray of URLs to the generated content (empty when status is not completed).
data.urlsobjectObject containing related API endpoints
data.urls.getstringURL to retrieve the prediction result
data.statusstringStatus of the task: created, processing, completed, or failed
data.created_atstringISO timestamp of when the request was created (e.g., “2023-04-01T12:34:56.789Z”)
data.errorstringError message (empty if no error occurred)
data.timingsobjectObject containing timing details
data.timings.inferenceintegerInference time in milliseconds
© 2025 WaveSpeedAI. All rights reserved.