Stable Diffusion 3.5 Medium
ServerlessImage
ServerlessImage
Stable Diffusion 3.5 Medium is a Multimodal Diffusion Transformer (MMDiT) text-to-image model with Adversarial Diffusion Distillation (ADD) that features improved performance in image quality, typography, complex prompt understanding, and resource-efficiency, with a focus on fewer inference steps. Powered By Stability AI. Stable Diffusion 3.5 Medium is deployed as a Flumina app. See for more details: https://huggingface.co/fireworks-ai/stable-diffusion-3.5-medium-flumina
Stable Diffusion 3.5 Medium is available via Fireworks' serverless image API, where you pay per image step (per generated image) and do not need to configure GPUs.
The Fireworks image generation API can be called by making HTTP requests from any language. See the below API examples to see how to call it. Also check out the Flumina repo linked above for full API details and to see the implementation code.
Generate a model response using the image endpoint of stable-diffusion-3p5-medium. API reference
import requests url = "https://api.fireworks.ai/inference/v1/workflows/accounts/fireworks/models/accounts/fireworks/models/stable-diffusion-3p5-medium/text_to_image" headers = { "Content-Type": "application/json", "Accept": "image/jpeg", "Authorization": "Bearer $API_KEY", } data = { "prompt": "A beautiful sunset over the ocean" } response = requests.post(url, headers=headers, json=data) if response.status_code == 200: with open("a.jpg", "wb") as f: f.write(response.content) print("Image saved as a.jpg") else: print("Error:", response.status_code, response.text)
On-demand deployments allow you to use Stable Diffusion 3.5 Medium on dedicated GPUs with Fireworks' high-performance serving stack with high reliability and no rate limits.
See the On-demand deployments guide for details.