Logo for AiToolGo

Mastering Text-to-Image Prompts: A Complete Guide to AI Image Creation

In-depth discussion
Easy to understand
 0
 0
 5
本文介绍阿里云大模型服务平台百炼中文生图模型(万相-文生图V2/V1)的提示词使用技巧。内容包括 prompt 与 negative_prompt 参数说明、prompt_extend 智能改写功能、两套提示词公式(基础公式:主体+场景+风格;进阶公式:加入镜头语言、氛围词、细节修饰等),以及提示词词典,涵盖景别、视角、镜头类型、艺术风格和光线五大要素,并附有大量示例与对应图像效果,帮助用户快速上手图像创作。
  • main points
  • unique insights
  • practical applications
  • key topics
  • key insights
  • learning outcomes
  • • main points

    • 1
      提供清晰的基础公式与进阶公式,层层递进,便于新手快速入门并逐步提升
    • 2
      提示词词典按景别、视角、镜头、风格、光线五大维度分类,示例丰富、可直接套用
    • 3
      结合具体参数(prompt、negative_prompt、prompt_extend)给出可运行的请求示例,操作性强
  • • unique insights

    • 1
      将图像提示词拆解为可组合的五大要素体系,使用户能够系统化地控制画面内容与质感
    • 2
      强调提示词的完整性、精确性与丰富度与生成图像质量的正相关关系,并通过对比示例说明进阶细节修饰的作用
  • • practical applications

    • 对使用通义万相文生图模型的开发者与创作者具有很强的直接指导意义:可按公式快速组织提示词,借助词典选择景别、风格和光线,并通过 negative_prompt 排除不需要的元素,显著提升出图质量与可控性,适合电商图、插画、海报、概念设计等场景的快速落地。
  • • key topics

    • 1
      文生图模型的 prompt 与 negative_prompt 参数及 prompt_extend 智能改写功能
    • 2
      提示词的基础公式(主体+场景+风格)与进阶公式(加入镜头语言、氛围词、细节修饰)
    • 3
      提示词词典:景别、视角、镜头拍摄类型、艺术风格与光线的分类示例
  • • key insights

    • 1
      官方出品,针对通义万相文生图模型的参数与能力量身定制,权威性强
    • 2
      公式化写作方法与分类词典相结合,降低提示词撰写门槛,兼顾新手与进阶用户
    • 3
      每个示例均配有对应效果图,直观展示提示词与画面之间的对应关系
  • • learning outcomes

    • 1
      掌握 prompt、negative_prompt 与 prompt_extend 参数的作用与用法
    • 2
      能够运用基础公式与进阶公式系统化撰写文生图提示词
    • 3
      熟练使用景别、视角、镜头、风格与光线等词典要素精准控制图像效果
examples
tutorials
code samples
visuals
fundamentals
advanced content
practical tips
best practices

“ Introduction to Text-to-Image Prompts

Writing effective prompts is the key to controlling the content and quality of AI-generated images. A richer, more precise description produces higher-quality results that closely match your creative vision. This guide walks you through the prompt techniques that help you turn ideas into images with text-to-image models such as Wan Text-to-Image V1 and V2, from simple starting formulas to a detailed vocabulary of visual elements.

“ Prompt Parameters Overview

Text-to-image models rely on two prompt-related parameters. The prompt parameter is the positive prompt, supporting both Chinese and English, where you describe the image you want to generate. The negative_prompt parameter describes what you do not want to see in the image. Wan Text-to-Image V2 additionally supports prompt_extend, which enables LLM-based intelligent rewriting of your prompt. It defaults to true, and Alibaba Cloud recommends keeping this default setting for the best results.

“ Basic Prompt Formula

The basic formula is designed for newcomers and for users who want AI to serve as a source of inspiration. Its structure is: Prompt = Subject + Scene + Style. The subject is the main focus of the image, which can be a person, animal, plant, object, or an imaginative element. The scene is the environment surrounding the subject, including indoor or outdoor settings, season, weather, and lighting. The style defines the artistic look, such as realistic or abstract, guiding the model toward a particular visual effect. A simple example is describing a 25-year-old woman with a round face, looking at the camera, wearing elegant traditional clothing, shot as commercial photography outdoors with cinematic lighting in a half-body close-up with refined makeup and sharp edges.

“ Advanced Prompt Formula

The advanced formula suits users with some experience in AI image generation and adds detail to improve texture, richness, and expressiveness. Its structure is: Prompt = Subject (description) + Scene (description) + Style (definition) + Shot language + Atmosphere words + Detail modifiers. Subject description specifies features and actions, for example 'a cute 10-year-old Chinese girl wearing red clothes.' Scene description adds environmental details through adjectives or phrases. Style definition explicitly names the artistic approach, such as watercolor or comic style. Shot language covers framing and camera perspective. Atmosphere words convey mood, such as dreamy, lonely, or majestic. Detail modifiers refine the image further, covering light source position, props, environmental elements, and resolution. An example prompt describes a wool-felt giant panda in a peaked cap and blue police vest running in an animal-kingdom street at night, with felt texture, Pixar style, backlighting, and 4K quality.

“ Shot Size: Choosing the Right Framing

Shot size describes how much of the subject appears in the frame, determined by the distance between camera and subject. Common shot sizes include close-up, which emphasizes emotion and fine detail, as in a portrait with a high-definition camera and a sunset backdrop; close shot, which frames a half-body portrait with a traditional costume and cinematic light; medium shot, which balances subject and environment, as in a stylish young woman in a mid-wide-angle view under bright sunlight; and long shot, which showcases a wide landscape, such as two small figures on a snowy mountaintop watching the sunset with golden light on the snow.

“ Camera Angles for Visual Impact

Camera angle is the viewpoint from which the scene is captured. An eye-level angle shows the subject at natural height, as in grazing sheep in a meadow with golden morning light. A top-down angle looks straight down, useful for revealing patterns, such as an aerial view of a frozen lake with a small boat surrounded by swirling blue water. A low-angle shot looks up at the subject to create a sense of grandeur, like a towering coconut tree in a tropical scene with light filtering through the leaves. An aerial angle captures a broad overview from high above, such as a village under heavy snow with roads and lights visible.

“ Lens Types and Their Effects

Lens type shapes how the image looks and feels. Macro lenses capture tiny subjects with extreme sharpness, suitable for product photography such as cherries and sparkling water with professional color grading. Ultra-wide lenses capture expansive scenes, as with an island under blue skies with sunlight filtering through leaves. Telephoto lenses compress distance and blur backgrounds to isolate the subject, as with a cheetah in a forest with a sharp face against a soft background. Fisheye lenses produce a distinctive, distorted look that exaggerates the center of the frame, creating strong visual impact.

“ Art Styles to Define Your Image

Specifying a style tells the model which artistic approach to follow. Popular options include 3D cartoon, which suits playful character designs like a tennis player in a cartoon-rendered style; wasteland style, for post-apocalyptic scenes like a Martian city; pointillism, for soft, dotted textures reminiscent of Monet; surrealism, for dreamlike imagery such as a glowing pink river in deep grey; watercolor, for light, airy, dreamy paintings; clay style, for handcrafted figures; realism, for photorealistic still life; porcelain, for finely detailed ceramic subjects; 3D rendering, for volumetric, C4D-like visuals; ink wash painting, for minimal, poetic compositions with blank space; meticulous gongbi, for refined traditional Chinese brushwork; Chinese ink style, which blends traditional aesthetics with modern elements; and origami, for paper-folded sculptural subjects.

“ Lighting Techniques for Mood

Lighting sets the emotional tone of an image. Natural light, including sunlight, moonlight, and starlight, creates realistic and serene atmospheres, such as morning sun piercing through treetops in a misty forest. Backlight outlines the subject with glowing edges and can add a dreamy halo, as with a model wrapped in silk. Neon light produces vibrant reflections on wet surfaces, ideal for urban night scenes after rain. Ambient light creates a soft, warm glow, such as floating lanterns drifting across a riverside at night with light shimmering on the water.

“ Putting It All Together: Practical Tips

The strongest prompts combine elements from several categories. Start with a clear subject and scene using the basic formula, then layer in shot size, camera angle, lens type, style, and lighting from the advanced formula. Keep descriptions specific and avoid contradictions. Use the negative prompt to exclude unwanted elements, such as people in a flower-shop scene. Experiment with prompt_extend to see how intelligent rewriting enhances your input, and iterate by adjusting one element at a time to understand its effect. With practice, the prompt dictionary becomes a toolkit for reliably producing images that match your creative intent.

 Original link: https://help.aliyun.com/zh/model-studio/text-to-image-prompt

Comment(0)

user's avatar

      Related Tools