Prompt engineering is the art and science of designing effective prompts to guide AI models, especially Large Language Models (LLMs), to generate desired and high-quality outputs. It involves crafting prompts that provide the model with clear instructions, context, and examples so it can understand your intent and respond meaningfully. Think of it as creating a roadmap for the AI to steer it towards the specific output you need.
Prompt refinement is an iterative process of improving your prompts based on the AI model's initial responses and your desired outcome. It's about tailoring the prompts through feedback loops to progressively enhance the AI's performance and generate content that aligns closely with your preferences.
The process typically involves:
Iterative prompt chaining is an advanced prompt engineering technique used for complex tasks. It involves breaking down a complex problem into smaller, manageable subtasks and addressing each subtask with a separate prompt in a sequence. The output from one prompt becomes the input for the next, building upon previous outputs to incrementally adjust the context and focus.
Key aspects of prompt chaining:
Negative prompting is a technique where you explicitly tell the AI what not to include in its output. It's a way to refine results by specifying undesirable elements.
How negative prompting is used:
Prompt engineering and fine-tuning are two distinct approaches to customizing AI model behavior:
Prompt Engineering:
Fine-tuning:
When to use which:
Use Prompt Engineering when:
Use Fine-tuning when:
Frequently used modifiers (also known as parameters) to help you control and customize your Midjourney image generations. Remember to add these parameters at the end of your prompt, separated by double dashes --
.
1. Aspect Ratio
--aspect
or --ar
followed by the desired ratio (width:height). For example, --ar 16:9
creates a widescreen image, while --ar 2:3
creates a taller, portrait-style image. Midjourney supports aspect ratios from 1:1 up to the model's maximum.2. Chaos
--chaos
or --c
parameter controls the level of variation in the image grid. It accepts values from 0
to 100
. A low chaos value (e.g., --chaos 0
) produces images that are more similar, while higher values (e.g., --chaos 100
) lead to more diverse and unexpected results.3. Stylize
--stylize
or --s
parameter to influence how artistic Midjourney's rendering is. The default value is 100
, and you can set values from 0
to 1000
. Lower values (--stylize 0
) prioritize prompt accuracy, making the image closely follow the prompt. Higher values (--stylize 1000
) create more stylized and artistic images that can be more abstract or loosely related to the prompt.4. Quality
--quality
or --q
parameter lets you fine-tune the rendering quality and time. It affects the detail level, not the image resolution. The default value is 1
, and you can use values 0.25
, 0.5
, and 1
. Higher quality values (--quality 1
) increase detail and rendering time, while lower values reduce both.5. Negative Prompting
--no
parameter followed by the elements you want to exclude. For example, --no cars, people
will try to generate an image without cars or people.6. Stop
--stop
parameter allows you to halt a job at a certain percentage of completion, from 10
to 100
. For example, --stop 70
will stop the rendering process when it's 70% complete, often resulting in softer, less defined images.7. Image Weight
--iw
parameter (Image Weight) sets the importance of the image prompt relative to the text prompt. The default value is 1
. Higher values (up to 2
or 3
depending on the Midjourney version) mean the image prompt has more influence on the final result. Lower values prioritize the text prompt.8. Version
--version
or --v
parameter to select a specific Midjourney model version. For example, --v 5.2
will use version 5.2. Different versions can produce significantly different styles and qualities.9. Repeat
--repeat
or --r
parameter to generate multiple image grids from a single prompt. For example, --repeat 5
will produce 5 sets of images. The allowed range depends on your subscription plan (e.g., up to 10 for Basic/Standard, up to 30 for Pro/Mega).10. Weird
--weird
or --w
parameter adds "weirdness" to your images. It accepts values from 0
to 3000
. Higher values (--weird 3000
) will result in more unconventional and strange outputs.11. Modes (Fast, Relax, Turbo)
--fast
: Default mode, prioritizes speed.--relax
: Slower pace, for users with Relax Mode enabled.--turbo
: Fastest processing (available with certain plans/add-ons). Use these modes at the beginning of your prompt command (e.g., /imagine prompt: your prompt --turbo
).12. Seed
--seed
parameter sets a starting point for image generation. Using the same seed number and prompt will produce very similar results. This is useful for testing and refining prompts. Use --seed
followed by a number from 0
to 4294967295
.