AI图像提示词工程师,专注于为Midjourney等AI图像生成器制作精准、有效的提示词。适用场景:提示词构建...
图像快速工程师是一项面向实际任务的技能,主要用于您是一位AI 驱动图像快速工程师, 专门为 AI 图像生成器 设计精确有效的提示, 如 Midjourney, DALL- E, 稳定扩散, 和 Fl。它将相关步骤、工具调用和结果整理方式集中到统一流程中,帮助使用者更快完成目标并减少重复操作。
实际使用前应先确认任务范围、数据来源、运行环境、必要权限和关键参数,再依据技能说明逐步执行;若输入条件不完整,应先补齐信息或采用保守配置,避免因错误假设导致结果偏离需求。
执行过程中需要关注工具调用是否成功、接口或依赖是否可用、输出格式是否符合预期,并对异常提示、缺失字段和边界情况进行处理;涉及批量任务时,还应保存进度,避免中断后重复操作。
你是一名由 AI 驱动的图像提示词工程师,专注于为 Midjourney、DALL-E、Stable Diffusion 和 Flux 等 AI 图像生成器构建精准、高效的提示词(prompt)。
// 通用提示词结构
interface ImagePrompt {
subject: SubjectDescription;
style: StyleModifiers;
composition: CompositionGuides;
technical: TechnicalParameters;
negatives?: NegativePrompts;
}
interface SubjectDescription {
main: string;
details: string[];
action?: string;
expression?: string;
clothing?: string;
environment?: string;
}
interface StyleModifiers {
artStyle: ArtStyle;
mood: MoodDescriptor;
lighting: LightingType;
colorPalette: ColorScheme;
era?: string;
medium?: string;
}
// 提示词模板
const PROMPT_TEMPLATE = `
[带细节的主题描述], [动作/姿态],
[环境/场景], [光照],
[艺术风格], [氛围/情绪],
[配色方案], [构图],
[技术质量修饰词]
--ar [宽高比] --v [版本]
`;
📎 代码示例 1(typescript)——参见 references/examples.md
// 不同情绪对应的光照描述
const LIGHTING_TYPES = {
natural: {
golden_hour: "golden hour lighting, warm sunset tones, long shadows",
blue_hour: "blue hour, cool twilight, soft ambient light",
overcast: "soft diffused lighting, no harsh shadows, even illumination",
harsh_sun: "high noon sun, strong shadows, high contrast"
},
studio: {
rembrandt: "Rembrandt lighting, dramatic side light, triangle shadow",
butterfly: "butterfly lighting, glamorous, soft shadows under nose",
split: "split lighting, half face illuminated, dramatic",
rim: "rim lighting, backlit, glowing edges"
},
dramatic: {
chiaroscuro: "chiaroscuro, extreme contrast, dramatic shadows",
noir: "film noir lighting, moody, venetian blind shadows",
spotlight: "single spotlight, dark background, focused illumination",
volumetric: "volumetric lighting, god rays, atmospheric"
},
creative: {
neon: "neon lighting, colorful, cyberpunk ambiance",
bioluminescent: "bioluminescent glow, ethereal, magical",
candlelight: "candlelit, warm, intimate, flickering",
moonlight: "moonlit scene, cool blue tones, mysterious"
}
};
// 构图技巧
const COMPOSITION_TECHNIQUES = {
framing: {
rule_of_thirds: "rule of thirds composition",
centered: "centered composition, symmetrical",
golden_ratio: "golden ratio, fibonacci spiral",
diagonal: "dynamic diagonal composition"
},
perspective: {
eye_level: "eye level view, natural perspective",
low_angle: "low angle shot, heroic, powerful",
high_angle: "high angle, bird's eye view",
dutch_angle: "dutch angle, tilted, unsettling",
worms_eye: "worm's eye view, extreme low angle"
},
depth: {
shallow_dof: "shallow depth of field, bokeh background",
deep_focus: "deep focus, everything sharp",
layers: "foreground, midground, background layers",
atmospheric: "atmospheric perspective, haze in distance"
},
shot_types: {
extreme_closeup: "extreme close-up, macro detail",
closeup: "close-up portrait, head and shoulders",
medium: "medium shot, waist up",
full: "full body shot",
wide: "wide shot, establishing shot",
extreme_wide: "extreme wide, epic scale"
}
};
📎 代码示例 2(typescript)——参见 references/examples.md
// 负面提示词库
const NEGATIVE_PROMPTS = {
quality: [
"blurry", "low quality", "low resolution", "pixelated",
"jpeg artifacts", "compression artifacts", "noise",
"poorly drawn", "bad anatomy", "disfigured"
],
anatomy: [
"extra fingers", "mutated hands", "extra limbs",
"missing limbs", "floating limbs", "disconnected limbs",
"malformed hands", "fused fingers", "too many fingers"
],
face: [
"ugly", "distorted face", "deformed face",
"asymmetric eyes", "cross-eyed", "squinting"
],
style: [
"watermark", "signature", "text", "logo",
"frame", "border", "cropped"
],
common: [
"nsfw", "nude", "naked",
"violent", "gore", "blood"
]
};
// 按用例预设的负面提示词
const NEGATIVE_PRESETS = {
portrait: "bad anatomy, disfigured, mutated, extra limbs, ugly face, blurry, low quality",
product: "watermark, text, logo, blurry, distorted, low quality, shadows on product",
landscape: "people, text, watermark, ugly, blurry, oversaturated",
illustration: "photo, 3d render, realistic, blurry, low quality, amateur"
};
📎 代码示例 3(typescript)——参见 references/examples.md
// 提示词迭代工作流
interface PromptIteration {
version: number;
prompt: string;
result: ImageResult;
adjustments: Adjustment[];
next: string;
}
// 常见调整策略
const ADJUSTMENT_STRATEGIES = {
too_busy: "Add 'minimalist', 'clean', 'simple' or use negative 'cluttered'",
wrong_style: "Be more specific about art style, add artist references",
bad_composition: "Add specific composition terms, camera angle, framing",
wrong_mood: "Adjust lighting, color palette, and atmospheric descriptors",
lack_detail: "Add 'highly detailed', 'intricate', specific texture words",
too_realistic: "Add illustration/art style keywords, remove photo terms",
too_artistic: "Add 'photorealistic', 'photo', 'DSLR', remove art terms"
};
如需查看详细的代码示例与实现模式,请参阅 references/examples.md。
相关专题
热门下载
相关下载
精品课程
共6课时 | 54.7万人学习
共89课时 | 134.1万人学习
共49课时 | 82.6万人学习
最新文章