什么是SREF代码

什么是SREF代码

主题:Midjourney

When generating images with Midjourney, controlling the style is often essential. With the `--sref` parameter, you can now add a personalized style using a simple style code. The `--sref` code is a set of numbers derived from training data on the Midjourney platform, influenced by the collective input of other users and the AI’s learning process. Instead of using image URLs or precise prompts, you can quickly achieve a unique style by entering `--sref` with a code.

1. What is the `--sref` Style Code?

The `--sref` style code is an abstract representation of a particular visual style that can be directly applied to the generation process. Unlike traditional URL-based style references, the `--sref` code is a standalone numerical value. Here’s how you’d use it in a prompt:

/imagine prompt description of what to generate --sref 123456

In this command, `123456` is a specific style code that will give the generated image a distinct visual effect. With these codes, you can quickly explore different art styles, atmospheres, and tones without spending time on complex adjustments.

2. Using Random Style Codes

If you don’t have a specific style in mind, you can use `--sref random` to apply a randomly generated style code and discover unique visual effects. This approach brings an element of surprise, adding variety and helping you uncover new style inspirations.

Example:

/imagine prompt description of what to generate --sref random

3. Where Style Codes Come From

These `--sref` codes are drawn from a wide collection of style data, optimized over time with feedback from the Midjourney community and trained by the AI itself. Each code may represent a combination of style characteristics, providing users with high-quality styling options without the need for manual fine-tuning.


The `--sref` parameter provides a fast way to apply specific styles, making it especially helpful for users who want consistent results without the trial and error of style testing. By using existing style codes or selecting a random code, you can efficiently switch between creative directions and achieve a professional look. If you want to make AI generation more tailored to your vision, try out the `--sref` code and see where it takes your creativity!