For the complete documentation index, see llms.txt. This page is also available as Markdown.

SD Prompt syntax

Adjusting Prompt Weight with Syntax

Note: This syntax applies specifically to Stable Diffusion (SD) and SDXL. Other AI models may use different weighting formats.

1. Increasing Weight: ()

Use parentheses to emphasize a tag, making it more prominent in the generated image.

  • Nesting Syntax: Nesting parentheses increases weight exponentially.

    • (keyword) = 1.11.1

    • ((keyword)) = 1.1×1.1=1.211.1 \times 1.1 = \mathbf{1.21}

    • (((keyword))) = 1.1×1.1×1.1=1.331.1 \times 1.1 \times 1.1 = \mathbf{1.33}

  • Explicit Weight Syntax: You can also define exact numerical values directly, such as (keyword:1.1) or (keyword:1.25).

2. Decreasing Weight: []

Use brackets to de-emphasize a tag, reducing its influence without removing it entirely.

  • Nesting Syntax: Nesting brackets reduces weight exponentially.

    • [keyword] = 0.90.9 (Equivalent to (keyword:0.9))

    • [[keyword]] = 0.9×0.9=0.810.9 \times 0.9 = \mathbf{0.81}

    • [[[keyword]]] = 0.9×0.9×0.9=0.730.9 \times 0.9 \times 0.9 = \mathbf{0.73}

Quick Reference Table

Syntax

Type

Multiplier

Explicit Equivalent

(((keyword)))

Strong Emphasis

1.33×1.33\times

(keyword:1.33)

((keyword))

Medium Emphasis

1.21×1.21\times

(keyword:1.21)

(keyword)

Light Emphasis

1.10×1.10\times

(keyword:1.1)

keyword

Neutral

1.00×1.00\times

(keyword:1.0)

[keyword]

Light De-emphasis

0.90×0.90\times

(keyword:0.9)

[[keyword]]

Medium De-emphasis

0.81×0.81\times

(keyword:0.81)

[[[keyword]]]

Strong De-emphasis

0.73×0.73\times

(keyword:0.73)

Last updated