> For the complete documentation index, see [llms.txt](https://docs.dreamerland.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.dreamerland.ai/basic-terms/sd-prompt-syntax.md).

# 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.1$$
  * `((keyword))` = $$1.1 \times 1.1 = \mathbf{1.21}$$
  * `(((keyword)))` = $$1.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.9$$ (Equivalent to `(keyword:0.9)`)
  * `[[keyword]]` = $$0.9 \times 0.9 = \mathbf{0.81}$$
  * `[[[keyword]]]` = $$0.9 \times 0.9 \times 0.9 = \mathbf{0.73}$$

#### Quick Reference Table

| **Syntax**      | **Type**           | **Multiplier** | **Explicit Equivalent** |
| --------------- | ------------------ | -------------- | ----------------------- |
| `(((keyword)))` | Strong Emphasis    | $$1.33\times$$ | `(keyword:1.33)`        |
| `((keyword))`   | Medium Emphasis    | $$1.21\times$$ | `(keyword:1.21)`        |
| `(keyword)`     | Light Emphasis     | $$1.10\times$$ | `(keyword:1.1)`         |
| `keyword`       | Neutral            | $$1.00\times$$ | `(keyword:1.0)`         |
| `[keyword]`     | Light De-emphasis  | $$0.90\times$$ | `(keyword:0.9)`         |
| `[[keyword]]`   | Medium De-emphasis | $$0.81\times$$ | `(keyword:0.81)`        |
| `[[[keyword]]]` | Strong De-emphasis | $$0.73\times$$ | `(keyword:0.73)`        |
