compelEasy Examples

Textual prompt weighting and blending for diffusion models

Getting started with compel

Installation and basic usage of compel.

python
# Install: pip install compel
import compel

# Basic compel usage
print(f"Using compel")
# See documentation for detailed examples
Expected Output
# Expected output shown below
# (Run locally with: compel)

compel is a third-party package. Textual prompt weighting and blending for diffusion models. Install with: pip install compel

Common compel operations

Frequently used features of compel.

python
# Install: pip install compel
import compel

# Common compel patterns
print(f"compel version: {compel.__version__}")

These are the most commonly used features of compel in everyday development.

Want to try these examples interactively?

Open Easy Playground