Master AI art prompt writing techniques from beginner to advanced, including universal formulas, weight syntax, style keyword library and practical templates
Welcome to the AI Art Prompt Engineering Guide! Whether you're using Midjourney, Stable Diffusion, Seedream, or other AI art tools, mastering prompt writing is the key to getting ideal results. This tutorial covers everything from basic concepts to advanced syntax, helping you systematically improve your prompt engineering skills.
A prompt is the bridge between you and AI art tools. Simply put, a prompt is how you describe "what kind of image you want" to the AI using text. A good prompt helps the AI understand your intentions accurately and generate results that meet your expectations.
Regardless of which AI art tool you use, prompts typically contain the following components:
Mastering a universal prompt formula can help you quickly build effective prompts. Here is a proven universal formula:
| Component | Function | Example |
|---|---|---|
| Quality Tags | Set output quality baseline | masterpiece, best quality, ultra-detailed, 8k |
| Subject Description | Define core image content | A young woman in Hanfu holding an oil-paper umbrella |
| Scene/Background | Set environmental atmosphere | Jiangnan water town, small bridges, flowing water, misty rain |
| Art Style | Determine visual expression | Ink painting style, Gongbi, ancient Chinese aesthetic |
| Lighting/Color | Control lighting effects | Soft side lighting, warm tones, sunset lighting |
| Technical Parameters | Adjust output specifications | --ar 16:9 --v 6 |
The subject is the core of the image. The more specific your description, the more the AI-generated result will match your expectations.
| ❌ Vague Description | ✅ Specific Description |
|---|---|
| A girl | 16-year-old girl, waist-length silver hair, amber eyes, smiling expression, wearing a light blue dress |
| A cat | A fluffy orange tabby cat with green eyes, lazily lying on a windowsill basking in the sun |
| A building | Gothic cathedral, spired towers, stained glass windows, illuminated at night, magnificent and grand |
Style determines the artistic expression of the image. AI art tools support almost all known art styles; the key is knowing how to describe them.
| Style Category | Keyword Examples |
|---|---|
| Traditional Painting | Oil painting, watercolor, sketch, printmaking, Gongbi, ink wash, mural |
| Modern Art | Pop art, minimalism, abstract expressionism, surrealism, cubism |
| Digital Style | 3D render, pixel art, vector illustration, cyberpunk, vaporwave, low poly |
| Photography Style | Portrait photography, landscape photography, macro photography, long exposure, HDR, black and white |
| Anime Style | Studio Ghibli style, Makoto Shinkai style, cel shading, chibi, American comic style, pixel art |
You can directly reference artist names to mimic their styles:
Technical parameters control the technical specifications of the output. Different platforms have different parameter syntax.
Negative prompts are used to exclude elements you don't want:
Mastering advanced syntax allows you to more precisely control the AI generation process and achieve more complex effects.
Weight control lets you adjust the importance of various elements in your prompt.
| Syntax | Effect | Example |
|---|---|---|
| (word) | Weight ×1.1 | (red hair) - Enhance red hair effect |
| ((word)) | Weight ×1.21 | ((masterpiece)) - Significantly boost quality |
| (word:1.5) | Custom weight | (blue eyes:1.3) - Increase weight by 30% |
| [word] | Weight ×0.9 | [watermark] - Reduce watermark probability |
Use double colons to separate and assign weights:
Advanced feature to control using different prompts at different sampling stages.
| Syntax | Description | Example |
|---|---|---|
| [from:to:when] | Switch from from to to | [flowers:trees:0.7] - Change from flowers to trees after 70% |
| [to:when] | Start drawing to at when | [flowers:0.7] - Start drawing flowers after 70% |
| [from::when] | Stop from at when | [flowers::0.7] - Stop drawing flowers after 70% |
| Syntax | Function |
|---|---|
| A BREAK B | Break connection between prompts, reduce contamination |
| A AND B | Blend multiple elements (e.g., two-tone hair) |
| [A|B] | Alternate drawing, generate fantastical mixed effects |
| word1_word2 | Underscore connection, prevent tokenization ambiguity |
Here is a complete style keyword reference for quickly finding the descriptors you need.
| Effect Type | Keywords |
|---|---|
| Natural Light | golden hour, blue hour, soft diffused light |
| Artificial Light | studio lighting, neon lights, candlelight |
| Special Effects | volumetric lighting, rim light, god rays, lens flare |
| Atmosphere | cinematic lighting, dramatic lighting, moody lighting |
| Perspective Type | Keywords |
|---|---|
| Camera Angles | portrait, full body, from above, from below, bird's eye view |
| Lens Types | wide angle, fisheye, macro, telephoto |
| Depth of Field | shallow depth of field, bokeh, deep focus |
| Composition | rule of thirds, centered, symmetrical, dynamic angle |
| Material Type | Keywords |
|---|---|
| Metal | metallic, gold, silver, brushed metal, rusty |
| Natural Materials | wooden, stone, marble, crystal, gemstone |
| Fabric | silk, velvet, lace, leather, denim |
| Special Effects | translucent, iridescent, holographic, glowing |
| Mood Type | Keywords |
|---|---|
| Positive | joyful, peaceful, romantic, dreamy, whimsical |
| Negative | melancholic, mysterious, ominous, haunting |
| Intense | epic, dramatic, intense, powerful |
| Calm | serene, tranquil, meditative, zen |
Here are proven practical prompt templates that you can use directly or modify according to your needs.
Example:
Example:
Example:
Different AI art tools have different prompt syntax and characteristics. Understanding these differences can help you use each platform better.
| Feature | Description |
|---|---|
| Natural Language | Good understanding of natural language, can use sentences |
| Parameter Syntax | --ar, --v, --s, --c, --seed, etc. |
| Multi-Prompt | Use :: to separate and assign weights |
| Stylization | --stylize controls artistic level (0-1000) |
| Negative Prompt | Use --no parameter, e.g., --no text, watermark |
| Feature | Description |
|---|---|
| Weight Syntax | () enhance, [] reduce, (word:1.5) precise control |
| Scheduled Prompting | [from:to:when] syntax support |
| Embedding | Can use trained embedding models |
| LoRA | Support loading LoRA models to adjust style |
| Negative Prompt | Dedicated negative prompt input box |
| Feature | Description |
|---|---|
| Chinese Understanding | Excellent understanding of Chinese prompts, Chinese recommended |
| Smart Optimization | Built-in prompt optimization feature |
| Reference Image | Support style reference, composition reference, character reference |
| Model Versions | 3.0/4.0/4.5, newer versions have better quality |
| Negative Prompt | Support negative prompt input |
| Feature | Description |
|---|---|
| Natural Language | Best for natural language long descriptions |
| Text Rendering | Strongest text rendering capability |
| Parameters | Fewer parameter supports, mainly rely on description |
Here are common mistakes beginners make and their solutions.
| ❌ Wrong Approach | ✅ Correct Approach |
|---|---|
| Longer prompts are better | Clear structure matters more than length, usually 50-100 words are enough |
| Using natural language long sentences | Use comma-separated keyword lists, avoid complex sentences |
| "Many flowers", "Big scene" | "Cherry blossoms covering 50% of area", "Subject 30%, background 70%" |
| Ignoring negative prompts | Must add low quality, deformed fingers, watermark exclusions |
| Token exceeds 75 | Control single prompt ≤75 tokens (about 50-60 words) |
| Contradictory keywords | Avoid contradictory descriptions like "daytime" and "night" simultaneously |
| Problem | Solution |
|---|---|
| Deformed fingers | Add "bad anatomy, bad hands, extra fingers" to negative prompts, or use "closed hands" to avoid drawing hands |
| Distorted face | Add "perfect face, detailed face", or use face restoration plugins |
| Gibberish text | Add "text, watermark, signature" to negative prompts, or use dedicated text rendering tools |
| Inconsistent style | Reduce conflicting style words, use weights to control main style |
| Too abstract image | Add specific descriptive words, reduce --stylize value, add "realistic" |
You now have the core skills of AI art prompt engineering. Remember, prompt writing is a practical skill that requires practice to truly master. Suggestions: