Skip to main content
Visual Diffusion EngineSDXL / SD3.5Stability AI

Stable Diffusion Prompt Engineering Guide

The Modular Open-Source Standard with Precision LoRAs, ControlNet, and Checkpoints

Stable Diffusion (SDXL and SD 3.5) remains the backbone of the open generative AI ecosystem. Through tools like ComfyUI and Automatic1111, SDXL supports ControlNet (conditioning on line art, depth maps, or poses), custom LoRAs, IP-Adapters, and regional prompting. Mastering SDXL requires balancing positive prompts, targeted negative tokens, and sampler math.

Architecture:Latent Diffusion Model + OpenCLIP / T5-XXL Encoders
Context / Res:Native 1024x1024 resolution buckets with Latent Upscaling
Official Portal

Parameter & Token Syntax Cheat Sheet

Official parameter flags, modifiers, and delimiters recognized by the Stable Diffusion engine.

Open Ruler Studio
Parameter / FlagNameAccepted ValuesDefaultDescription & Example
Positive PromptConditioning PromptText & Token Weighted Strings—

Primary descriptive prompt with syntax support for token weighting like (subject:1.2).

A photorealistic portrait of an astronaut, (detailed face:1.2)
Negative PromptNegative ConditioningExclusion Tokens—

Directs the reverse diffusion trajectory away from common artifacts, bad hands, or unwanted colors.

deformed, blurry, bad anatomy, mutated fingers, extra limbs, low quality
CFG ScaleClassifier-Free Guidance4.0 - 9.06.5

Controls adherence to the prompt. 5.5 to 7.0 prevents burnt contrast in SDXL.

CFG: 6.5
Sampling StepsDenoising Steps20 - 5030

Iterations of the reverse latent diffusion solver.

Steps: 30
<lora:name:weight>LoRA Injection TagTag syntax with weight 0.1 - 1.2—

Activates specialized low-rank adaptation weights in your ComfyUI or WebUI pipeline.

<lora:cinematic_lighting:0.8>

Engineering Best Practices

  • Use emphasis parentheses sparingly: (keyword:1.2) increases weight by 20%; exceeding 1.4 causes visual artifacts.
  • Pair SDXL with DPM++ 2M Karras or Euler a samplers for smooth highlight transitions.
  • Always generate in native SDXL resolution buckets: 1024x1024, 1152x896, 896x1152, or 1216x832.
  • Apply negative prompts strategically to eliminate specific artifacts rather than pasting 200 generic buzzwords.

Common Anti-Patterns to Avoid

  • Do NOT generate at 512x512 resolution; SDXL was trained on 1024x1024 and will create duplicate bodies at lower sizes.
  • Don't stack dozens of quality tokens ('masterpiece, 8k, wallpaper') that dilute token attention away from your subject.

Gold-Standard Template Breakdown

How an optimized Stable Diffusion prompt looks in production with all parameters aligned.

Atmospheric Cyberpunk Detective in ComfyUIProduction Exemplar
Positive: RAW photo, medium close-up of a weathered detective in a wet fedora under neon rain, neon cyan and magenta lighting, shallow depth of field, 35mm film photography, 8k resolution, highly detailed skin texture. Negative: cartoon, illustration, drawing, 3d render, plastic, airbrushed, bad hands, missing fingers, lowres, blurry.

Architectural Rationale: Separates positive lighting/subject direction from defensive negative tokens that steer SDXL away from stylized illustration checkpoints.

Compatible Prompts (16)

Curated and battle-tested prompts verified for the Stable Diffusion engine.

Browse All 235+ Prompts →
Warm 1970s road trip photography with vintage vehicle and desert landscape
Visual & Generative Art
16:9•midjourney•v6.1

1970s American Road Trip Nostalgia (Kodak Portra 400)

Recreate candid, warm 1970s color photography with authentic Kodak Portra 400 halation and natural golden hour lens flare.

OPTICS•Leica Summicron 50mm f/2 Rigid
#vintage#1970s#kodak-portra
Dramatic black and white film noir lighting through Venetian blinds
Visual & Generative Art
16:9•midjourney•v6.1

Classic Film Noir Dramatic Venetian Blind Silhouette

Master dramatic chiaroscuro black-and-white lighting with crisp Venetian blind shadows and cigarette haze.

OPTICS•Carl Zeiss Planar 80mm f/2.8 T*
#film-noir#black-and-white#chiaroscuro
High fashion editorial studio portrait with shallow depth of field
Visual & Generative Art
4:5•midjourney•v6.1

Vogue Editorial Studio Portrait (85mm f/1.4)

Flawless studio fashion portrait with organic skin texture, delicate catchlights, and shallow focal depth.

OPTICS•Sony FE 85mm f/1.4 GM
#fashion#portrait#editorial
Expressive portrait of craftsman with classical Rembrandt lighting
Visual & Generative Art
4:5•flux•FLUX.1 Dev

Rembrandt Lighting Elderly Craftsman Portrait

Capture dignified age and weathered hands using classical Rembrandt triangle lighting on medium format.

OPTICS•Hasselblad XCD 90mm f/2.5 V
#portrait#rembrandt-lighting#craftsman
Soaring modern brutalist concrete interior with morning light beams
Visual & Generative Art
16:9•midjourney•v6.1

Brutalist Concrete Cathedral Morning Volumetric Light

Architectural monumentalism featuring raw board-formed concrete and soaring beams of morning sunlight.

OPTICS•Canon TS-E 24mm f/3.5L II (Zero keystoning)
#architecture#brutalism#concrete
Modern minimalist Japandi living room with panoramic forest view
Visual & Generative Art
16:9•flux•FLUX.1 Dev

Scandinavian Minimalist Forest Living Room (Japandi)

Warm Japandi interior with floor-to-ceiling glass framing a misty pine forest and natural wood joinery.

OPTICS•Leica Super-Vario-Elmar-SL 16-35mm f/3.5-4.5
#interior-design#scandinavian#japandi
Macro product shot of luxury watch with water droplets on black stone
Visual & Generative Art
1:1•midjourney•v6.1

Luxury Swiss Chronograph Macro Studio Splashes

Ultra-sharp 100mm macro shot of an automatic titanium watch with crisp water beads on sapphire crystal.

OPTICS•Canon RF 100mm f/2.8L Macro IS USM
#product-photography#luxury#watch
Botanical glass serum dropper bottle on natural stone in sunlight
Visual & Generative Art
4:5•flux•FLUX.1 Dev

Botanical Skincare Serum Dropper in Natural Sunlight

Clean organic skincare bottle bathed in warm morning bathroom sunlight with cast palm frond shadows.

OPTICS•Sony FE 90mm f/2.8 Macro G OSS
#skincare#beauty#cosmetics
Intricate 3D isometric cyberpunk building diorama with glowing neon
Visual & Generative Art
1:1•midjourney•v6.1

Isometric 3D Floating Cyberpunk Ramen Shop

Charming, intricate voxel-detailed isometric diorama of an airborne noodle bar with neon signs and steam.

OPTICS•f/5.6 simulated tilt-shift
#isometric#3d-art#cyberpunk
Unreal Engine 5 subterranean bioluminescent cave concept art
Visual & Generative Art
21:9•midjourney•v6.1

Unreal Engine 5 Subterranean Bioluminescent Biome

Vast underground cavern ecosystem with towering crystalline stalactites, glowing azure flora, and volumetric god rays.

OPTICS•Simulated Cine Camera Actor
#digital-art#unreal-engine-5#bioluminescent
Low poly isometric cybernetic alchemy lab 3D diorama
Visual & Generative Art
1:1•midjourney•v6.1

Low-Poly Isometric Cybernetic Alchemy Laboratory

Charming stylized 3D isometric diorama of an alchemist's sci-fi lab with bubbling neon flasks, holograms, and brass piping.

OPTICS•f/5.6 simulated tilt-shift
#digital-art#isometric#low-poly
Retro synthwave 1980s neon grid supercar sunset illustration
Visual & Generative Art
16:9•midjourney•v6.1

1980s Retro Synthwave Grid Supercar Sunset Drive

Nostalgic 1980s outrun vaporwave illustration of an exotic wedge supercar driving toward a neon wireframe sunset.

OPTICS•f/4.0
#digital-art#synthwave#retrowave
Dark fantasy gothic cathedral leviathan concept art
Visual & Generative Art
21:9•midjourney•v6.1

Dark Fantasy Gothic Cathedral Leviathan Summoning

Epic Elden Ring-style dark fantasy concept art of a colossal eldritch leviathan rising amidst shattered gothic stained glass.

OPTICS•f/4.0 painterly depth
#digital-art#dark-fantasy#gothic
Solarpunk floating botanical airship digital painting
Visual & Generative Art
16:9•midjourney•v6.1

Solarpunk Floating Botanical Airship Metropolis

Utopian solarpunk concept art of aerodynamic brass and glass dirigibles carrying lush botanical gardens across sunlit clouds.

OPTICS•f/5.6
#digital-art#solarpunk#airship
Cybernetic mecha core cutaway blueprint technical illustration
Visual & Generative Art
16:9•midjourney•v6.1

Cybernetic Mecha Core Cutaway Technical Blueprint

Intricate engineering schematic illustration of a humanoid mecha pilot cockpit with glowing wireframes and exploded schematics.

OPTICS•Infinite depth of field line art
#digital-art#mecha#blueprint
Surreal floating geometric monolith dreamscape fine art
Visual & Generative Art
16:9•midjourney•v6.1

Surreal Floating Geometric Monolith Dreamscape

Hypnotic surrealist dreamscape of impossible suspended chrome polyhedra hovering above mirrored pink salt flats.

OPTICS•f/8.0 deep focus
#digital-art#surrealism#monolith