中文文生图提示词生成器

Share:

按万相官方指南写文生图提示词:公式与用语取自指南,反向提示词单独给出,按模型检查字数并生成 API 请求体。

RT-AI-053 · AI Tools
你的浏览器版本过旧,此工具的交互功能无法运行。请更新至 Safari 13.1、Chrome 或 Edge 80、Firefox 74 或以上版本。

中文文生图提示词生成器

按万相官方文生图指南的公式写提示词,反向提示词单独给出;用 API 的话,再按所选模型检查字数,给出请求体。

提示词
反向提示词

模型与 API 请求

画面比例(size 参数)

API 请求体

n 写成 1:接口默认生成 4 张,按张计费。

📅 研究资料截至 2026年11月4日 · 来源: Alibaba Cloud Model Studio, 文生图Prompt指南 for 万相 (Wan): formulas and term tables, read 2026-11-03; its 文生图 V2 API reference: length limits, sizes, request shapes and prompt_extend, read 2026-11-04.
标准、已发表的公式与参考数据会随时间修订 — 依据这些数字行事前,请对照当前的权威来源核实。
Advertisement
After tool · AD-W1Responsive · Post-tool

怎样写一条文生图提示词

写主体和场景

主体是画面里的主要对象,写清它的特征和动作,比如「一个可爱的 10 岁中国小女孩,穿着红色衣服」;场景写它所处的环境。

点选风格和镜头语言

风格、景别、视角和镜头类型都可以点选,这些写法都出自万相的文生图提示词指南。也可以在旁边的框里写指南没有列出的风格。

加上氛围和细节

氛围词描述画面的感觉,比如梦幻、孤独、宏伟;细节修饰写光源的位置、道具、环境细节或「高分辨率」。

分开复制两个框

提示词放进工具的提示词栏,反向提示词只放进反向(负面)提示词栏。

用 API 时,选模型和比例

选好模型,计数器会按它的字数上限检查;超出的部分阿里云会直接截掉,不报错。再点一个比例,下方就是可以直接发送的请求体。

Advertisement
After how-to · AD-W2Responsive

为什么按指南的公式写

这一页照着阿里云百炼的「文生图Prompt指南」(万相)来写提示词。指南给了两条公式:基础公式是「主体 + 场景 + 风格」;进阶公式是「主体(主体描述)+ 场景(场景描述)+ 风格(定义风格)+ 镜头语言 + 氛围词 + 细节修饰」。这里按进阶公式的顺序把你写的和点选的内容接成一段描述。

这一页以前把各栏用「## 标题」拼起来,标题文字会跟着粘进模型;还把反向提示词接在同一段文字后面,而指南说 prompt 和 negative_prompt 是两个参数。现在提示词是一段连贯的描述,反向提示词单独放在一个框里。

用 API 出图时还有三件事指南没讲,写在阿里云的文生图 API 参考里:每个模型的字数上限不同,超出部分直接截断;画面尺寸由 size 参数设定,不设就是默认的 1280*1280;prompt_extend 默认会改写你的提示词。模型、比例和改写开关就是为这三件事放的。

其他图像模型的官方指南没有在本页引用,所以这里不声称同一套写法对即梦、可灵或混元同样有效。

阿里云:文生图Prompt指南(万相)

阿里云:文生图 API 参考(万相)

常见问题

  • 出自阿里云百炼的「文生图Prompt指南」(万相)。进阶公式是「主体(主体描述)+ 场景(场景描述)+ 风格(定义风格)+ 镜头语言 + 氛围词 + 细节修饰」,按钮上的景别、视角、镜头类型、风格和光线用语都取自指南的提示词词典。

  • 指南说明文生图模型有两个参数:prompt 是正向提示词,描述想要的画面;negative_prompt 是反向提示词,描述不希望出现的内容。两者是分开的参数,所以这里也分开给你。

  • 每个模型有字数上限:wan2.6-t2i 为 2100,wan2.5-t2i-preview 为 2000,wanx2.0-t2i-turbo 为 800,wan2.2 和 wan2.1 只有 500;反向提示词都是 500。超出的部分会被自动截断,不会报错,所以要先选对模型,留意计数器。

  • 默认会。prompt_extend 默认开启,会先用大模型优化正向提示词;想按原文出图,就取消勾选。阿里云还提醒,改写后的提示词可能触发版权内容审核,遇到这类报错时可以关闭改写再试。

  • 能复制过去用,但这里的公式和用语是万相官方写的,别家的指南没有在本页引用。用在别的工具上,请以那个工具自己的说明为准。

  • 不会。提示词完全在你的浏览器里拼好,不调用任何模型,也不发送到任何地方。

方法与来源

计算方式

In the browser, by a tested kernel: subject, scene, style, camera language, mood and detail joined into one description in the order of the advanced formula in Alibaba Cloud's 万相 (Wan) text-to-image prompt guide, with the negative prompt separate. Each is counted against the chosen model's limit, and the request body is shaped as that model's API reference shapes it (input.messages for wan2.6, input.prompt below it). No model is called.

本工具依据的标准

  • Corrected 2026-10-21: the page sent readers to ERNIE ViLG (文心一格), but yige.baidu.com now redirects to Baidu's 文心助手, whose own description lists image creation (图片创作). Every mention, in all three languages and the tool config, now names Wenxin (文心). The other four products were checked on their own sites: Jimeng (ByteDance), Wan (万相, Alibaba Tongyi; the page's older name 通义万相 is kept as a recognisable alias), Hunyuan (Tencent) and Kolors (可图, Kuaishou).
  • Rebuilt 2026-11-03 in all three languages. The page joined its fields under Markdown "##" headings, so each heading was pasted into the model with the picture, and it appended the negative terms to the same text, while the 万相 guide gives prompt and negative_prompt as separate parameters. The prompt is now one description in the guide's advanced-formula order, and the negative prompt has its own box and copy button.
  • Every shot-size, angle, lens and lighting term is written as the guide's prompt column writes it (特写镜头, 俯视视角), each style as its example prompt uses it (国风水墨风格, 浅水彩), and 梦幻, 孤独 and 宏伟 are its own examples of mood words. 陶瓷 is left out because its example names a subject (瓷器小狗), not a style phrase.
  • Extended 2026-11-04, when /tongyi-wanxiang-prompt-builder/ was merged into this page: its model picker and length counter, size values, prompt_extend switch and API request body now sit under the prompt, written by the same tested kernel. Every figure was re-read in Alibaba's API reference on 2026-11-04 and matched what that page carried.
  • The sizes for wan2.2 and below are COMPUTED: Alibaba gives those models a rule (each side 512 to 1440 pixels, default 1024*1024) and no ratio table, and the page says so beside them. The body asks for n = 1 because the API default is 4 images, each billed.
  • Merged 2026-11-04: /tongyi-wanxiang-prompt-builder/ now redirects here. Its model picker and length limits, size values, prompt_extend switch and API request body were moved onto this page first, each re-read in Alibaba's API reference the same day.

资料来源

Advertisement
Pre-footer · AD-W3 728 × 90