English
This page is available in English
The whole page — instructions, buttons and results.
Switch to English依萬相官方指南寫文生圖提示詞:公式與用語取自指南,反向提示詞單獨給出,依模型檢查字數並產生 API 請求體。
中文文生圖提示詞產生器
依萬相官方文生圖指南的公式寫提示詞,反向提示詞單獨給出;用 API 的話,再依所選模型檢查字數,給出請求體。
模型與 API 請求
畫面比例(size 參數)
這幾個模型官方沒有給比例表,尺寸是本工具依「每邊 512 到 1440」的規則推算的。
n 寫成 1:介面預設產生 4 張,依張計費。
怎樣寫一條文生圖提示詞
寫主體和場景
主體是畫面裡的主要對象,寫清它的特徵和動作,比如「一個可愛的 10 歲小女孩,穿著紅色衣服」;場景寫它所處的環境。
點選風格和鏡頭語言
風格、景別、視角和鏡頭類型都可以點選,這些寫法都出自萬相的文生圖提示詞指南。也可以在旁邊的框裡寫指南沒有列出的風格。
加上氛圍和細節
氛圍詞描述畫面的感覺,比如夢幻、孤獨、宏偉;細節修飾寫光源的位置、道具、環境細節或「高解析度」。
分開複製兩個框
提示詞放進工具的提示詞欄,反向提示詞只放進反向(負面)提示詞欄。
用 API 時,選模型和比例
選好模型,計數器會依它的字數上限檢查;超出的部分阿里雲會直接截掉,不報錯。再點一個比例,下方就是可以直接送出的請求體。
為什麼依指南的公式寫
這一頁依照阿里雲百煉為萬相寫的文生圖提示詞指南來寫提示詞。指南給了兩條公式:基礎公式是「主體 + 場景 + 風格」;進階公式是「主體(主體描述)+ 場景(場景描述)+ 風格(定義風格)+ 鏡頭語言 + 氛圍詞 + 細節修飾」。這裡依進階公式的順序把你寫的和點選的內容接成一段描述。
這一頁以前把各欄用「## 標題」拼起來,標題文字會跟著貼進模型;還把反向提示詞接在同一段文字後面,而指南說 prompt 和 negative_prompt 是兩個參數。現在提示詞是一段連貫的描述,反向提示詞單獨放在一個框裡。
用 API 產生圖片時還有三件事指南沒講,寫在阿里雲的文生圖 API 參考裡:每個模型的字數上限不同,超出部分直接截斷;畫面尺寸由 size 參數設定,不設就是預設的 1280*1280;prompt_extend 預設會改寫你的提示詞。模型、比例和改寫開關就是為這三件事放的。
其他圖像模型的官方指南沒有在本頁引用,所以這裡不聲稱同一套寫法對即夢、可靈或混元同樣有效。
常見問題
出自阿里雲百煉為萬相寫的文生圖提示詞指南。進階公式是「主體(主體描述)+ 場景(場景描述)+ 風格(定義風格)+ 鏡頭語言 + 氛圍詞 + 細節修飾」,按鈕上的景別、視角、鏡頭類型、風格和光線用語都取自指南的提示詞詞典。
指南說明文生圖模型有兩個參數: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.
資料來源
- Jimeng (即梦AI), ByteDance: official site. https://jimeng.jianying.com/
- Wan (万相), Alibaba Tongyi: 「万相是阿里巴巴通义旗下的AI创意创作平台…提供文生图、图生图…」. https://tongyi.aliyun.com/wan/
- Tencent Hunyuan (腾讯混元): official site. https://hunyuan.tencent.com/
- Kolors (可图大模型), Kuaishou: official site. https://kolors.kuaishou.com/
- Baidu 文心助手: description lists 图片创作; yige.baidu.com (文心一格) redirects here. https://wenxin.baidu.com/
- Alibaba Cloud Model Studio. 文生图Prompt指南 (万相): the basic and advanced formulas, the prompt and negative_prompt parameters, and the term tables every button is taken from. https://help.aliyun.com/zh/model-studio/text-to-image-prompt — read 2026-11-03.
- Alibaba Cloud Model Studio. 文生图 V2 API reference (万相): prompt limits (wan2.6-t2i 2100, wan2.5-t2i-preview 2000, wanx2.0-t2i-turbo 800, wan2.2 and wan2.1 500), negative_prompt 500, 「超过部分会自动截断」; size rules and 「常见比例推荐的分辨率」; the wan2.6 input.messages shape; n 「默认为 4」 and billed per image; prompt_extend 「true:默认值」. https://help.aliyun.com/zh/model-studio/text-to-image-v2-api-refe… — read 2026-11-04.
Pick up where you left off
Stored only in this browser — never sent to our servers.