# Stable Diffusion 3.5 Medium > Stability AI's 2.5-billion parameter Multimodal Diffusion Transformer with improvements (MMDiT-X) text-to-image model optimized for consumer hardware, featuring improved image quality, typography, and complex prompt understanding ## Quick Reference - Model ID: stable-diffusion-3.5-medium - Creator: Stability AI - Status: active - Family: stable-diffusion-3.5 - Base URL: https://api.lumenfall.ai/openai/v1 ## Specifications - Max Resolution: 1414x1414 - Input Modalities: text - Output Modalities: image ## Model Identifiers - Primary Slug: stable-diffusion-3.5-medium ## Dates ## Tags image-generation, text-to-image, open-weights ## Available Providers ### Replicate - Config Key: replicate/stable-diffusion-3.5-medium - Provider Model ID: stability-ai/stable-diffusion-3.5-medium - Pricing: - source: official - currency: USD - components: [{"type" => "output", "metric" => "image", "unit_price" => 0.035}] - source_url: https://replicate.com/stability-ai/stable-diffusion-3.5-medium - effective_at: 2025-12-30 ### fal.ai - Config Key: fal/stable-diffusion-3.5-medium - Provider Model ID: fal-ai/stable-diffusion-v35-medium - Pricing: - source: official - currency: USD - components: [{"type" => "output", "metric" => "megapixel", "unit_price" => 0.02}] - source_url: https://fal.ai/models/fal-ai/stable-diffusion-v35-medium - effective_at: 2025-12-29 ## Image Gallery 4 images available for this model. - Curated examples: 4 - "A wide, cinematic shot of a high-end boutique storefront at dusk. The shop’s elegant glass window features the name "..." - "A hyper-realistic close-up of an elderly artisan's weathered hands meticulously carving intricate floral patterns int..." - "A hyper-realistic close-up of an elderly artisan's weathered hands meticulously carving intricate floral patterns int..." - "A vibrant, hand-painted wooden sign hanging above a cozy bakery that says "FRESH SOURDOUGH DAILY" in elegant gold scr..." ## Example Prompt The following prompt was used to generate an example image in our playground: A vibrant, hand-painted wooden sign hanging above a cozy bakery that says "FRESH SOURDOUGH DAILY" in elegant gold script. In the blurred background, a capybara calmly balances a small loaf of bread on its head while walking past the shop window. ## Code Examples ### Text to Image (Generation) #### cURL curl -X POST \ https://api.lumenfall.ai/openai/v1/images/generations \ -H "Authorization: Bearer $LUMENFALL_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "model": "stable-diffusion-3.5-medium", "prompt": "A serene mountain landscape at sunset", "size": "1024x1024" }' # Response: # { "created": 1234567890, "data": [{ "url": "https://...", "revised_prompt": "..." }] } #### JavaScript import OpenAI from 'openai'; const client = new OpenAI({ apiKey: 'YOUR_API_KEY', baseURL: 'https://api.lumenfall.ai/openai/v1' }); const response = await client.images.generate({ model: 'stable-diffusion-3.5-medium', prompt: 'A serene mountain landscape at sunset', size: '1024x1024' }); // { created: 1234567890, data: [{ url: "https://...", revised_prompt: "..." }] } console.log(response.data[0].url); #### Python from openai import OpenAI client = OpenAI( api_key="YOUR_API_KEY", base_url="https://api.lumenfall.ai/openai/v1" ) response = client.images.generate( model="stable-diffusion-3.5-medium", prompt="A serene mountain landscape at sunset", size="1024x1024" ) # { created: 1234567890, data: [{ url: "https://...", revised_prompt: "..." }] } print(response.data[0].url) ## About ## Overview Stable Diffusion 3.5 Medium is a 2.5-billion parameter text-to-image model developed by Stability AI. It utilizes the Multimodal Diffusion Transformer with improvements (MMDiT-X) architecture to balance high-quality image generation with hardware efficiency. This model is specifically designed to run on consumer-grade GPUs while maintaining the prompt adherence and visual fidelity of larger models in the SD3.5 family. ## Strengths * **Prompt Adherence:** Excels at interpreting complex, multi-subject prompts and correctly attributing attributes (colors, positions, and styles) to specific objects within a scene. * **Typography Rendering:** Significant improvements in spelling accuracy and font legibility compared to previous iterations like SDXL or SD 1.5. * **Hardware Efficiency:** With 2.5 billion parameters, it occupies a "sweet spot" that allows for fast inference and fine-tuning on standard consumer hardware without requiring enterprise-grade VRAM. * **Anatomical Realism:** Demonstrates improved accuracy in rendering human forms, hands, and faces, reducing the common artifacts associated with earlier diffusion models. ## Limitations * **Compositional Drift:** While improved, extremely long or contradictory prompts can still lead to "concept bleeding," where styles or colors intended for one object merge into another. * **Resolution Constraints:** While capable of generating high-resolution images, it performs most reliably at its native training resolutions; exceeding these without tiled upscaling can lead to repetitive patterns or distorted proportions. * **Photorealism Nuance:** Compared to the "Large" variant of SD 3.5, the Medium model may occasionally lack the same level of fine-grained skin texture or micro-detail in complex lighting environments. ## Technical Background Stable Diffusion 3.5 Medium is built on the MMDiT-X architecture, which uses separate sets of weights for the image and text modalities. This allows the model to process visual and linguistic information in a more integrated fashion than traditional U-Net architectures. The training process focused on streamlining the transformer blocks to ensure the model remains performant on local deployments while benefiting from the scaling laws observed in the larger 8B parameter versions. ## Best For This model is ideal for developers building creative tools, marketing asset generators, or localized image synthesis applications where speed and memory efficiency are prioritized. It is particularly effective for projects requiring embedded text or precise layout control via natural language. Stable Diffusion 3.5 Medium is available for testing and integration through Lumenfall’s unified API and interactive playground, allowing you to compare its performance against other models in the Stable Diffusion family. ## Frequently Asked Questions ### How much does Stable Diffusion 3.5 Medium cost? Stable Diffusion 3.5 Medium starts at $0.02 per image through Lumenfall. Pricing varies by provider. Lumenfall does not add any markup to provider pricing. ### How do I use Stable Diffusion 3.5 Medium via API? You can use Stable Diffusion 3.5 Medium through Lumenfall's OpenAI-compatible API. Send requests to the unified endpoint with model ID "stable-diffusion-3.5-medium". Code examples are available in Python, JavaScript, and cURL. ### Which providers offer Stable Diffusion 3.5 Medium? Stable Diffusion 3.5 Medium is available through Replicate and fal.ai on Lumenfall. Lumenfall automatically routes requests to the best available provider. ### What is the maximum resolution for Stable Diffusion 3.5 Medium? Stable Diffusion 3.5 Medium supports images up to 1414x1414 resolution. ## Links - Model Page: https://lumenfall.ai/models/stability-ai/stable-diffusion-3.5-medium - About: https://lumenfall.ai/models/stability-ai/stable-diffusion-3.5-medium/about - Providers, Pricing & Performance: https://lumenfall.ai/models/stability-ai/stable-diffusion-3.5-medium/providers - API Reference: https://lumenfall.ai/models/stability-ai/stable-diffusion-3.5-medium/api - Benchmarks: https://lumenfall.ai/models/stability-ai/stable-diffusion-3.5-medium/benchmarks - Use Cases: https://lumenfall.ai/models/stability-ai/stable-diffusion-3.5-medium/use-cases - Gallery: https://lumenfall.ai/models/stability-ai/stable-diffusion-3.5-medium/gallery - Playground: https://lumenfall.ai/playground?model=stable-diffusion-3.5-medium - API Documentation: https://docs.lumenfall.ai