
Midjourney Sref Codes Library
Explore a visual Midjourney style reference library of v7 sref codes
Over 4000 sref codes. New codes added every week.
Take a peek inside!
Discover unexpected gems
Find your favorites
Fuel your creativity
Frequently Asked Questions
How Many Sref Codes are in Sref Vault?
There are currently over 4,000 Midjourney v7 sref codes in the codes library and new ones are added weekly. There are also over 16,000 v6 style codes.
What is a Midjourney sref code?
A Midjourney sref code is a code, basically a number that applies a consistent artistic style to any image you generate. When you add --sref followed by a number to your prompt, that style gets applied regardless of what you're asking Midjourney to create. This means you don't have to describe the style in words or hope Midjourney understands what visual style you want - the code handles the style automatically while you focus on the subject matter.
For example, if you use --sref 1234 with prompts like 'a cat,' 'a building,' or 'a beach,' all three images will have the same artistic style even though they're completely different subjects. This makes it easy to maintain visual consistency across multiple images for projects or series.
Each code represents a different combination of style elements from Midjourney's vector space, with over 4.2 billion possible codes available.
Are style codes the same as sref codes?
Yes, style codes and sref codes are the same thing. Sref stands for 'style reference' so when people say 'Midjourney style codes' or 'style reference codes,' they're referring to the same --sref parameter numbers. Different people use different terms, but they all work the same way in Midjourney.
What's the difference between style reference and sref codes?
This can be confusing! These are two completely different Midjourney features. Style Reference Codes (sref codes) use numbers with the --sref parameter like --sref 1234 to apply preset styles. You need to add this parameter at the end of your prompt.
Style Reference uses uploaded images where you upload a reference image and Midjourney reads the visual style from that image - no parameters needed.
Sref codes tend to be more consistent and predictable, while style reference with images can generate varying results depending on how Midjourney interprets your uploaded image.
How do I use sref codes?
To use sref codes, add --sref followed by the code number at the end of your Midjourney prompt.
For example:
a cute, sleepy kitten --sref 1234
closeup shot of a woman's face --sref 5678
The sref code applies the style to whatever you're generating. You can use any number from 0 to over 4.2 billion, and each number creates a different style.
Why should I use sref codes?
Sref codes let you create consistent visual styles without having to try too describe them in words.
Instead of prompting a long, complex prompt, and reiterating several times, the right code will generate that exact style every time. This is especially useful for projects where you need multiple images with the same artistic look, or when you find a style you love and want to use it again.
Can I extract sref codes from images?
No, you cannot extract or reverse-engineer sref codes from existing images.
If you see an image you like and want to know what sref code was used, the only way to find out is if the creator shared the code along with the image. There's no tool or ability to look at an image and determine which sref code created it.