Stable Diffusion XL Prompt Guide: Negative Prompts, Weights, and Style Tokens
SDXL prompting in 2026: when negatives still matter, (keyword:weight) syntax, LoRA style tokens, CFG sweet spot, and why SD 1.5 prompt packs fail on XL.
Turn any photo into an AI prompt — free
No sign-up required. Works with Midjourney, FLUX, DALL-E.
Try Image to Prompt →Stable Diffusion XL is not SD 1.5 with bigger pixels. The prompt habits that fixed 2022 checkpoints often hurt 2026 SDXL runs — walls of negative tags, (masterpiece:1.4) everywhere, CFG cranked to 12.
SDXL understands natural language better, needs shorter negatives, and still responds to weights and style tokens when you use them surgically. This guide is SDXL-specific: positive structure, negative prompts that actually help, weight syntax, LoRA triggers, and ComfyUI/A1111 habits that survive iteration.
Legacy stable-diffusion-prompt-guide on this blog covers the full SD ecosystem. Here we go deep on XL mechanics.
How SDXL reads your prompt
SDXL uses dual text encoders (OpenCLIP + CLIP-L). It maps tokens to diffusion steps. Practical limits:
- ~75–77 tokens per encoder window before tail concepts fade
- Front-loaded words still win — put subject and medium early
- Natural phrases work; tag soup is optional, not required
Positive prompt = what to render. Negative prompt = what to push down during sampling. Same syntax in both fields on most UIs (Automatic1111, Forge, ComfyUI).
Positive prompt structure (SDXL)
Template:
[Subject + action], [environment], [lighting], [medium/style], [camera or art technique], [optional quality cue]
Example (photo):
Portrait of a carpenter in a workshop, sawdust in air, side window light, documentary photography, 85mm shallow depth of field, natural skin texture
Example (illustration):
Medieval map border illustration, sea monsters and compass rose, ink and watercolor on parchment, muted earth tones
Quality tags (sharp, detailed) help less than specific medium words on SDXL. Replace 8k masterpiece with medium format film scan or gouache illustration when you mean it.
Negative prompts: SDXL vs SD 1.5
SD 1.5 needed long negatives to suppress mangled hands and watercolor mush. SDXL baseline anatomy and composition are better — bloated negative lists cause plastic skin, empty backgrounds, and overcooked contrast.
SDXL rule: 5–15 targeted negatives, not 40-token boilerplate.
Still useful negatives:
- Medium conflicts:
cartoon, anime, illustrationwhen you want photo;photograph, realisticwhen you want flat vector - Artifacts:
watermark, signature, text, logo, username, frame, border - Persistent defects you actually see:
extra fingers, fused fingersonly if your checkpoint still produces them - Style pollution:
3d render, cgifor pure 2D illustration work
Skip or shorten on SDXL:
- Entire "bad anatomy mega lists" copied from 2022 Reddit threads
worst quality, low quality, normal qualityspam unless you're on a fine-tune that needs it
Test: generate with empty negative → add terms only for problems that appear.
Starter negative sets (edit per project)
Photorealistic portrait
illustration, cartoon, anime, painting, 3d render, watermark, text, blurry, overprocessed skin
Product / studio
hands, people, clutter, text, logo, watermark, harsh shadows, oversaturated
Fantasy illustration
photograph, realistic, modern clothing, watermark, text, ui, screenshot
Architecture exterior
people, cars, watermark, fisheye distortion, oversaturated sky, hdr
Save presets in your UI. Version them per checkpoint — SDXL base vs Pony vs Juggernaut behave differently.
Weight syntax: (keyword:weight)
Standard in A1111 / Forge / ComfyUI (with compatible nodes):
(term)≈ 1.1× emphasis((term))≈ 1.21× (stacking — less predictable than numbers)(term:1.3)— explicit multiplier[term]≈ 0.9× de-emphasis (brackets only; don't mix[term:0.5]in A1111)
Positive weights: boost one concept without rewriting the prompt.
(red dress:1.2), woman in cafe, morning light
Negative weights: strengthen avoidance when plain listing fails.
(extra fingers:1.3), bad anatomy in negative field
Guidelines:
- Start at 1.0 (no weight). Add 1.1–1.3 only for stubborn issues
- Avoid >1.5 on positives — color bleed, melted details
- SDXL responds less dramatically to weights than SD 1.5; plain language often beats
(word:1.4) - Never use negative weight below 0.0 in positive prompt ("twilight zone" artifacts in some builds)
BREAK and token separation
Some workflows use . or BREAK (model-dependent) to separate concept chunks so CLIP doesn't blend them.
Example:
cyberpunk street vendor. BREAK neon signage. BREAK rain reflections on asphalt
Use when: two strong concepts merge into soup. Don't BREAK every prompt — adds overhead.
Style tokens and trigger words
Style tokens — words the model associates with a look, often from training captions:
film grain, cinestill 800t, kodak portra 400— photographic gradeflat color, cel shading, screen tone— comic/animeoctane render, unreal engine— 3D look (use or negative-out deliberately)
LoRA trigger words — each LoRA card lists triggers. Syntax:
<lora:FilmGrain_V2:0.7> in positive prompt + trigger words in prose
<lora:CharacterName:0.8> char_name, scene description...
Strength 0.6–0.85 typical. >1.0 oversaturates LoRA face/style. Match LoRA to SDXL-compatible files (not SD1.5 LoRAs on XL base without adapters).
Textual inversion / embeddings — `embedding_name` in prompt; declining vs LoRAs but still in old workflows.
Checkpoint name IS a style token — switching from SDXL base to Juggernaut XL or DreamShaper XL changes more than any adjective.
CFG, steps, and sampler (prompt-adjacent)
Prompts don't live in isolation.
CFG scale (SDXL): sweet spot 5–9 for most work. 7 default. >10 looks harsh and overbaked. <4 drifts from prompt.
Steps: 25–35 often enough for Euler/DPM++; more steps ≠ fix bad prompt.
Samplers: DPM++ 2M Karras for sharp stills; Euler a for fast exploration.
Refiner (SDXL refiner model): base pass for composition → refiner at 0.2–0.3 denoise for skin/detail. Positive prompt can stay same; negatives slightly shorter on refiner pass.
Tune CFG before adding five more negative keywords.
ComfyUI vs Automatic1111 prompt notes
Syntax looks identical; graph logic differs.
- ComfyUI: CLIP Text Encode nodes for pos/neg; weight parsing via ComfyUI core (verify with your CLIP loader)
- A1111/Forge: single box + negative box; hires fix doubles prompt application — keep negatives consistent
- Prompt travel / regional prompting: advanced; weights per region in ComfyUI workflows
Document your node graph with the prompt string that produced the save.
SDXL prompt workflow (step by step)
- Checkpoint + LoRA chosen first (style decision)
- Positive one or two sentences, subject first
- Negative empty → generate 4 samples
- Note failure mode → add 1–3 negative terms OR one weighted fix
- Adjust CFG/steps before prompt bloat
- Img2img or inpaint for hands/faces if prompt can't fix (honest SD workflow)
- Save preset with seed + full prompt stack
From photo reference: PromptMake /image → target Stable Diffusion → Recreate mode outputs pos/neg-aware phrasing. Edit weights locally. 3 free /image runs/day.
Common mistakes on SDXL in 2026
Pasting SD 1.5 negative wall verbatim
Weighted everything: (masterpiece:1.3), (best quality:1.2), (8k:1.1)
CFG 15 because "more adherence"
SD1.5 LoRA on XL without conversion
Conflicting medium: "photorealistic oil painting photograph"
100-step generations to fix vague subject
Ignoring checkpoint swap — wrong base model beats perfect prompt
Before / after
Weak SDXL stack
Positive: 1girl, best quality, masterpiece, ultra detailed, 8k, beautiful woman, city
Negative: (worst quality:1.4), (low quality:1.4), (bad anatomy:1.4), ... [30 more terms]
CFG 12
Strong SDXL stack
Positive: Woman waiting at bus stop, overcast Tokyo street, candid documentary photography, natural color, 35mm film
Negative: illustration, anime, watermark, text, extra fingers
CFG 7, 30 steps, DPM++ 2M Karras
SDXL vs FLUX vs Midjourney (prompt dialect)
SDXL: weights, negatives, LoRAs, checkpoints — maximum control, maximum syntax.
FLUX: natural language, minimal negatives.
Midjourney: parameters at end, --style raw, almost no negative field.
Don't paste MJ prompts into SDXL without rewriting. Our Midjourney 2026 guide and reverse-engineer photo article cover cross-model translation.
Frequently asked questions
Do I still need negative prompts for SDXL?
Often yes but short. Use them for medium control and artifacts, not 30-line quality lists.
Best universal negative for SDXL?
There isn't one — checkpoint-dependent. Start minimal: watermark, text, blurry + style conflicts.
(keyword:1.3) in negative — safe?
Usually 1.2–1.4 for one stubborn term. Multiple 1.5+ weights fight each other.
How many LoRA triggers in one prompt?
1–2 LoRAs typical. More causes style collision.
Pony / Illustrious / anime XL checkpoints?
Same syntax; negatives shift to realistic, 3d, photograph and tag-style positives may return. Read model card.
Prompt length limit?
Keep under ~70 tokens of meaningful content; split long ideas across img2img passes.
Related articles
Stable Diffusion prompt guide (legacy) — SD 1.5, Pony, Illustrious overview.
Reverse-engineer AI image prompt from photo — reference to SD dialect.
Midjourney prompts that work 2026 — contrast with parameter-heavy MJ syntax.
Best Flux prompts (legacy) — when to leave SD toolchain for prose prompts.
Bottom line
SDXL rewards specific positive prose, short targeted negatives, moderate CFG, and surgical weights — not SD 1.5 cargo cult.
Learn (term:weight) for the one concept that won't behave. Learn LoRA triggers for style you can't spell in adjectives. Delete the rest of the negative wall and iterate with your eyes, not a copied Reddit block.
Ready to generate your own prompts?
Free. No sign-up required. Works with all major AI models.