SREF (Style Reference) is one of the most powerful tools in Midjourney, allowing me to control the style of generated images with precision. It helps create consistent aesthetics inspired by specific reference images.
In this article, Iβll cover:
β
What SREF is and how it works
β
How to use it in Midjourney
β
How to set and mix style references
β
Practical examples
What is SREF in Midjourney?
SREF (Style Reference) is a parameter that lets me specify a particular style by providing a URL to a reference image or using a predefined SREF code, such as --sref 9900
. Midjourney analyzes the reference image’s style and applies its characteristics to the newly generated artwork.
π With SREF, I can control:
π¨ Color palette
π Brushstrokes and line work
π· Lighting and depth
π§βπ¨ Overall artistic style
How to use --sref
in Midjourney?
To apply a style reference, I simply add the --sref [URL]
flag or use a built-in style code like this:
π Example prompt using --sref 9900
/imagine prompt: futuristic cityscape, neon lights, cyberpunk --sref 9900 --ar 16:9
π₯ Midjourney will apply the predefined style associated with 9900
to the generated image.
Example of --sref 9900
in action
The --sref 9900
code corresponds to a highly stylized aesthetic resembling concept art and futuristic digital painting. It features rich colors, strong contrasts, and deep shadows.
π Example prompt:
/imagine prompt: mysterious warrior in futuristic armor, glowing sword, cinematic lighting --sref 9900 --ar 16:9
π₯ Expected results:
β
Strong light and shadow contrast
β
Detailed costume and environment
β
A semi-realistic yet artistic look
π Another example:
/imagine prompt: mystical forest, bioluminescent plants, ethereal glow --sref 9900 --ar 16:9
π¨ Expected results:
β
Vibrant, neon-like colors
β
Cinematic atmosphere
β
A fantasy/sci-fi mood
Mixing --sref
with other parameters
I can combine --sref
with other settings for unique effects:
β Boosting the style intensity:
/imagine prompt: cyberpunk skyline at night --sref 9900 --sref-weight 1.5
πΉ This increases the influence of the reference style.
β Combining multiple styles:
/imagine prompt: space station interior, sleek sci-fi design --sref 9900 --sref 8752
πΉ This blends two different styles.
β Adjusting aspect ratio and detail level:
/imagine prompt: post-apocalyptic desert, lone traveler --sref 9900 --ar 21:9 --q 2
πΉ This generates a cinematic widescreen format with higher quality.
Mini FAQ β Frequently Asked Questions About --sref
1οΈβ£ What is --sref
?
π --sref
is a Midjourney parameter that applies a reference imageβs style to new AI-generated images.
2οΈβ£ How do I use --sref 9900
?
π Simply add --sref 9900
to the prompt, like this:
/imagine prompt: futuristic warrior, neon lights --sref 9900
Midjourney will generate an image based on this preset style.
3οΈβ£ Can I use multiple --sref
codes at the same time?
π Yes! You can combine styles like this:
/imagine prompt: sci-fi spaceship --sref 9900 --sref 8752
This allows for hybrid styles.
4οΈβ£ What does --sref-weight
do?
π The --sref-weight
parameter controls how strongly the reference style influences the final result. The default value is 1.0
, but you can adjust it:
--sref-weight 1.5
makes the style more dominant--sref-weight 0.5
applies a subtler influence
5οΈβ£ Can I use --sref
with my own images?
π Yes! You can reference your own images by adding their URL:
/imagine prompt: enchanted forest --sref https://example.com/image.jpg
Midjourney will extract the style from the image.
6οΈβ£ How can I find more --sref
codes?
π The official list isnβt public, but users share discoveries on Discord and AI forums. You can also experiment by testing different codes yourself!
πΉ The best way to learn is by experimenting! ππ¨