Midjourney Sref Codes Explained: How --sref Works (2026)

Blog · Midjourney · Style Reference

Midjourney Sref Codes Explained: How --sref Works (2026)

What a Midjourney --sref code is, how --sv decides whether a code resolves, and how to keep a style when codes stop working. Updated October 2026 for V8.

Updated 7 min readSharan

If you have used Midjourney for more than a few weeks, you have probably encountered style reference codes — cryptic numeric strings that somehow make the AI produce images with a specific visual identity. They are one of the most powerful features in Midjourney's toolkit, and also one of the least understood.

Updated 9 October 2026 · V8.2 is Midjourney's default model since 24 July 2026

This guide breaks down exactly what --sref codes are, how they work, and how they compare to a deeper approach: AI-powered style analysis that decodes the actual visual DNA behind any image.

What Are Midjourney Style Reference Codes?

Style reference codes (--sref) are numeric identifiers that tell Midjourney to apply a specific visual aesthetic to your generation. Instead of describing a style in words — "painterly, warm, golden hour, soft focus" — you pass a code and let the model figure out the rest.

/imagine a portrait of a woman in a garden --sref [code]

The code encodes a particular style that Midjourney has learned. Every time you use it, you get images with the same aesthetic fingerprint — the same color temperature, the same level of detail, the same compositional tendencies.

The Key Parameters

ParameterWhat It DoesExample
--srefApplies a style reference code. Can be a number or an image URL.--sref [code]
--swStyle weight (0–1000). Controls how strongly the style is applied. Default: 100.--sw 250
--svStyle-reference version. Numeric codes and --sref random only resolve under --sv 4 (the sref model before 16 June 2025) or --sv 6 (the default); an image reference works under any --sv. How this plays out in V8: numeric style codes in Midjourney V8.--sv 6
--pPersonalization mode. Applies your personal aesthetic preferences learned from your rating history.--p
--arAspect ratio. Not a style parameter, but critical for composition.--ar 16:9
--sStylize value (0–1000). Controls Midjourney's own aesthetic interpretation. Default: 100.--s 750

How --sref Codes Actually Work

--sref codes are essentially pointers into Midjourney's learned style space. When you provide a numeric code, the model looks up a specific region of its latent aesthetic space and applies those characteristics to your generation.

What does a style code control? Everything that is not content:

Color temperatureContrast levelsLighting directionTexture qualityEdge treatmentLevel of detailCompositional biasMedium simulation

The key insight is that --sref codes are opaque. You know they produce a certain look, but you do not know why. You cannot decompose a code into "warm color temperature + chiaroscuro lighting + analog grain." The code is a black box.

"Style codes tell an AI what to produce. Style analysis tells you why it looks the way it does. One is a shortcut. The other is understanding."

Using Image URLs as Style References

You can also pass an image URL instead of a numeric code:

/imagine a mountain landscape --sref https://example.com/reference.jpg --sw 200

This tells Midjourney to analyze the reference image and extract its style characteristics. The --sw parameter controls intensity — at 50 you get a subtle influence, at 500 the style dominates, at 1000 it overpowers the prompt entirely.

Tip: When using image URLs as style references, the AI extracts style blindly. It cannot tell you which elements of the reference it is using. Was it the color palette? The lighting? The composition? The texture? You are guessing.

The Limitation: Style Codes Are Black Boxes

Here is the fundamental problem with --sref codes: they work, but you cannot learn from them.

When you use a code and get beautiful results, you have gained a tool but not knowledge. You do not know what makes that style work. You cannot modify it incrementally. You cannot explain it to someone else. You cannot transfer its principles to another AI tool or to your own photography.

This is where AI style analysis offers a fundamentally different approach.

Beyond --sref: AI Style Analysis

Instead of encoding a style as an opaque number, AIKIZI's Style Decode engine breaks it into explicit, human-readable layers. Here are four real styles decoded from the AIKIZI gallery:

Amber Nostalgia

Amber Nostalgia example 1Amber Nostalgia example 2
Amber LuminanceChiaroscuro ContrastAnalog SaturationSpecular Highlights
Style DNA: Kodachrome film aesthetic → Mid-century modernism → Hard light cinematography → Surrealist color saturation

Muted Observance

Muted Observance example 1Muted Observance example 2
chiaroscuro lightingdesaturated ochreanalog grainsoft diffusion
Style DNA: Early Pictorialist photography → Tenebrist shadow play → Analog film grain → Muted earth tones

Vivid Ligne

Vivid Ligne example 1Vivid Ligne example 2
Ligne ClaireFlat TintingHalftone StipplingSaturated Primary
Style DNA: Franco-Belgian Ligne Claire → Contemporary Seinen Manga → Mid-Century Pop Art → Psychedelic Color Accents

Each of these styles could be represented by a single --sref code. But the decoded version gives you the recipe: four named layers, key tokens, a color palette, and a master prompt template. You can modify any layer, swap one influence for another, or combine elements from different styles. The style becomes a creative tool, not a black box.

--sref vs. Style Decode: A Comparison

AspectMidjourney --srefAIKIZI Style Decode
InputNumeric code or image URL3–10 images
OutputStyled image4-layer DNA, key tokens, color palette, master prompt
TransparencyOpaque (black box)Fully decomposed and named
ModifiableOnly via --sw weightEach layer and token adjustable independently
TransferableMidjourney onlyWorks with any AI model via prompt template
EducationalNo — you learn nothing about the styleYes — maps lineage, influences, and techniques
AvailabilityAll Midjourney usersStyle Decode (multi-image, 3–10 images) is currently available to select accounts. Single-image Decode is available to all users.

When to Use Which

Use --sref when you already know the exact look you want and just need to reproduce it quickly. Style codes are shortcuts — fast, reliable, and require zero understanding of what makes the style work.

Use Style Decode when you want to understand a visual aesthetic, learn from it, modify it, or apply it across different tools. If you are building a brand identity, developing a consistent visual language, or studying art direction, you need the decomposed view.

They are not competitors. --sref is a production tool. Style Decode is a research and creative development tool. The best workflow uses both: decode first to understand, then generate with the knowledge you have gained.

Try it: Upload any image — including a Midjourney generation — to AIKIZI Studio. Image Decode analyzes it across ten dimensions: subject, mood, visual composition, style, materials, and more.

The Midjourney V8 (V8.1 and V8.2) sref series

Style references reward a little depth. These companion guides go further, all rebuilt for Midjourney V8 (V8.1 and V8.2):

Decode Any Image →

Google sign-in. 5 credits on sign-up, enough for your first decode.

FAQ

What are Midjourney sref codes?

Style reference codes (--sref) are numeric identifiers that tell Midjourney to apply a specific visual aesthetic to your generation.

How do Midjourney sref codes work?

--sref codes are essentially pointers into Midjourney's learned style space. When you provide a numeric code, the model looks up a specific region of its latent aesthetic space and applies those characteristics to your generation.

How strong is a Midjourney image style reference at different --sw values?

The --sw parameter controls intensity — at 50 you get a subtle influence, at 500 the style dominates, at 1000 it overpowers the prompt entirely.

Can you tell what a Midjourney sref code contains?

The key insight is that --sref codes are opaque. You cannot decompose a code into "warm color temperature + chiaroscuro lighting + analog grain."

When should I use a Midjourney sref code instead of style analysis?

Use --sref when you already know the exact look you want and just need to reproduce it quickly. Use Style Decode when you want to understand a visual aesthetic, learn from it, modify it, or apply it across different tools.