Introduction
Hi there. Here are some notes about how I structure my prompts. This guide is the result of personal experiences, so nothing is considered as ground truth, it's just what is working well for me!
I've been largely inspired by TianChimp's one written in Hardcore - Hentai checkpoint. Check my favorite models, they usually work pretty well with my way of prompting.
If you want to have a look on my environment, check my ComfyUI Workflow article. Also, my Scene Composer workflow is a good example on the prompting structure I propose.
I will update this article from time to time. Don't hesitate to take it, tweak, and share your thoughts!
Philosophy
I try to follow the philosophic guidelines when I do my prompts. I recommand to read Danbooru's Howto, which are good base lines.
Tag what you see, not what you know. Don't use tags of stuff that is not visible in the final image).
Minimal Tagging Criteria. Too much tags cause noise and lead to less precise results. Keep things to the strict minimum, put down only what you absolutely want to see. For example, why put an "nsfw" tag if your scene is already explicit ?
Structure
I principally structure my prompts into 5 categories, with sub-categories inside. I try to separate those concepts with break lines, it helps me to quickly make adjustment. I recommend having a look at Danbooru tag groups to find what you need.
Keep in mind that it's a guideline. It's ok to mix this order, especially inside a category.
1. Composition
Quality
Style (photorealistic, color palette, etc)
Point of view
Light, Time of day (day, night, sunset, …)
2. Subjects
Main subject(s) (boy, girl, animal, object, landscape, …)
3. Actions
4. Body
Main features (size, weight, body type, body fat, skin color, …)
Body elements (breast, nipples, ass, …)
Face related (eyes color, hairstyle, …)
Expressions (happy, surprised, serious, determined, …)
5. Background
Main environment (indoor, outdoor, …)
Weather (wind, rain, snow, …)
Objects (furnitures, vehicules, …)
Keep in mind that for certain models, some tags will lead to unexpected results. Typically FLUX, tags like boy
/girl
will output children: you should use man
/woman
.
About prompt's length
The prompt is split by words (or chunks of words) to transform them into numerical representation called tokens. Depending on which models are used and how tokens are normalized, certain parts of your prompt will have more or less attention. My rule of thumb: the longer the prompt, the more control you'll have over the whole prompt.
Here's some resources if you want to read more on that matter:
Tokens with SDXL and SD15 models – Alen Knight
Token normalization & Weight interpretation – BlenderNeko (Github)
Example
Here is an example following the structure. I usually put some break lines to have a better look on the main areas of the prompt.
score_9, score_8_up, score_7_up, score_6_up, source_anime,
lineart, portrait, from above,
sidelighting, light particles,
1girl, ginger, solo,
writing, holding pencil,
sitting, heads up,
sweat, freckles, small breasts,
ginger hair, long hair, straight hair,
blue eyes, glowing eyes, glasses, looking at viewer,
smile, smirk, grin, frown,
white tank top,
indoor, library,
sunset, sunny, daylight,
desk, chair,
As you can see, the breaklines don't divide perfectly the 5 fields of the structure. Depending on what you want to generate, it can make more sense to visually separate smaller and longer parts. Here, the subject, actions and posture of the body are grouped together: splitting them would create a mess visually more than anything.
Usecases
Here are some usecases and favorite keywords. I try to organise by logical group, from the most general to the more specific. I recommand to cherry-pick the one that make sense for you rather than copy-paste the all line.
You'll also find a reference to where I place it in the structure. I'll use an ID with the format [xx.yy], using the acronym of the category and its sub-category.
Keep in mind that some of them could also go higher or lower in the apparition order (e.g. upside down could be placed as [compos.pov] or [body.posture].
Generic
Here is what I use in almost all my prompt to influence the overall quality of the image. I usually add additional negative keywords if something that I don't like appear, but not before. Again, I like to keep things short and simple.
Following list cover some classic cases, detailing both positive and negative prompts.
Quality (SD1.5)
(absurdres, best quality, masterpiece:1.4),
(worst quality, low quality, lowres, normal quality:1.4)Quality (Pony)
score_9, score_8_up, score_7_up, score_6_up, score_5_up, score_4_up,
score_6, score_5, score_4,Details
detailed, detailed body, detailed faceNegative+
text, logo, watermark, digit, multiple views, monochrome,
bad proportions, anatomical nonsense, bad hands, bad face
Note: Negative+ is an additional list where I cherry-pick according to the situation. In my experience, negative keywords related to anatomic don't always improve the results, so I just keep them aside in case I need it.
Scenes
Actions [compos.style]: motion lines, emphasis lines, speed lines, afterimage, motion blur, bouncing(+hair, breasts, ass, etc), ass ripple, sweatdrop, trembling, shaking, twitching, (spoken) sound effects, sparkling sweat
Lightning [compos.light]: backlighting, dim light, rim light, dusk, sunset, dawn, sunrise, light particles, light rays, sunlight, dappled sunlight, tree shade, crack of light
Hot [body.posture]: sweat, sweating, very sweaty, sweating profusely, sweatdrop, wet (+clothes,hair, etc), sweat clothes, hot, heat stroke, blush, full-face blush, body blush, breath, heavy breathing, steaming body,
Gangbang [subject]: multiple boys/girls, group sex, gangbang, orgy, dogpile, love train, threesome,
Note: precise exact number with xboys/xgirls.
Subject
Multicolored hair [subject],[hair]: multicolored hair, gradient hair, colored tips, <color-1> hair, <color-2> hair
Yakuza [subject],[body]: yakuza, tattoo (irezumi, full-body, etc.), piercing (nose, navel, nipple, etc), makeup
Demon [subject],[body]: demon, demon girl, horns (demon, dragon, curled, cow, etc), tail (demon, raised, etc), colored skin (red, black, etc.)
Goblin [subject],[body]: goblin, female goblin, green skin, pointy ears, fangs
Furry [subject]: furry, furry female, furry with [furry/non-furry], <color> fur, fang(s)