作者注:分享 8 組即用型電商套圖提示詞模板,覆蓋白底主圖、場景圖、細節圖等常見需求,適用於 Nano Banana 2 和 Nano Banana Pro 圖像生成模型

電商運營中,產品圖的視覺一致性直接影響轉化率。很多賣家在使用 AI 生成產品圖時遇到的最大痛點是:每次生成的風格不統一,無法形成一套視覺連貫的產品套圖。
本文分享 8 組經過實戰驗證的電商套圖提示詞模板,適用於 Nano Banana 2 和 Nano Banana Pro 兩款模型,幫助你快速批量生成白底主圖、場景圖、細節圖、對比圖等完整產品套圖。
核心價值: 讀完本文,你將獲得一套可直接複製使用的電商套圖提示詞體系,實現「一個產品 → 一套統一風格的 8 張產品圖」的高效工作流。
電商套圖提示詞模板 核心要點
| 要點 | 說明 | 價值 |
|---|---|---|
| 8 組提示詞模板 | 覆蓋主圖、場景、細節、對比等全套圖片類型 | 一個產品即可生成完整套圖 |
| 風格鎖定公式 | 固定「光照 + 角度 + 背景 + 色溫」四要素 | 確保全套圖片視覺統一 |
| Nano Banana 雙模型適配 | 同時適用 Nano Banana 2 和 Pro | 按需選擇速度或畫質優先 |
| 平臺合規參數 | 針對淘寶、亞馬遜等平臺的尺寸和背景要求 | 無需二次調整即可上架 |
電商套圖提示詞模板的核心邏輯
電商套圖的關鍵不在於單張圖有多精美,而在於一組圖片之間的風格一致性。傳統攝影通過統一布光、機位和後期調色來實現,AI 生成則需要通過提示詞中的「固定參數」來保證。
我們總結出的核心公式是:固定要素 + 變化要素 = 風格統一的套圖。固定要素包括光照方向、色溫、產品擺放角度風格;變化要素則是背景場景、構圖方式、展示重點。每組模板都遵循這個邏輯,讓你只需替換產品描述即可批量使用。
電商套圖提示詞模板的模型選擇
Nano Banana 2 和 Nano Banana Pro 各有側重。Nano Banana 2 基於 Gemini 3.1 Flash 架構,生成速度快 3-5 倍,支持最高 4K 分辨率,適合批量出圖的電商場景;Nano Banana Pro 基於 Gemini 3 Pro 架構,畫質最細膩,適合需要極致質感的高端產品。兩者的提示詞格式完全兼容,可根據實際需求靈活切換。

電商套圖提示詞模板 完整 8 組模板
以下 8 組模板覆蓋電商產品圖的全場景需求。每組模板均標註了固定參數(保持一致)和可替換參數(按需修改),直接複製到 Nano Banana 即可使用。
模板 1:白底主圖(平臺合規)
白底主圖是電商平臺最基礎的要求,淘寶、亞馬遜、拼多多均要求主圖爲純白背景。
Ultra-realistic studio photograph of [YOUR PRODUCT] on a pure white seamless background,
centered composition, product fills 85-90% of frame,
shot with 85mm prime lens, f/8 sharpness, ISO 100,
softbox high-key lighting with gentle contact shadow under product,
natural accurate colors, no props, no text, no logos, no watermark,
square 1:1 composition, commercial product photography
可替換參數:
[YOUR PRODUCT]:替換爲你的產品描述,例如a matte black wireless Bluetooth speaker或a red leather crossbody bag with gold hardwaresquare 1:1 composition:根據平臺要求調整比例,亞馬遜主圖推薦 1:1,詳情圖可用 3:4
模板 2:45 度角展示圖
45 度角是展示產品立體感和設計細節的最佳角度,適合作爲套圖中的第 2-3 張。
Professional product photograph of [YOUR PRODUCT],
three-quarter view at 45-degree angle from slightly above,
on a seamless light gray gradient background (#f0f0f0 to #ffffff),
studio softbox lighting from upper left with subtle fill light from right,
f/5.6 aperture for slight depth of field,
sharp focus on product front, gentle bokeh on rear edge,
natural material textures preserved, no artificial smoothing,
commercial e-commerce photography style
模板 3:生活場景圖
場景圖用於傳達產品的使用氛圍,幫助買家想象擁有後的體驗。
Lifestyle product photography of [YOUR PRODUCT] in a [SCENE SETTING],
natural window light from the left side creating soft warm shadows,
product placed on [SURFACE DESCRIPTION],
surrounded by [2-3 COMPLEMENTARY PROPS],
shallow depth of field f/2.8 with product in sharp focus,
warm color temperature 5500K, cozy and inviting atmosphere,
editorial style composition with rule of thirds placement,
high resolution commercial photography
可替換參數:
[SCENE SETTING]:modern minimalist living room/bright kitchen countertop/cozy home office desk[SURFACE DESCRIPTION]:smooth white marble countertop/rustic wooden table/clean linen tablecloth[2-3 COMPLEMENTARY PROPS]:a small potted plant and a ceramic cup/scattered coffee beans and a notebook
模板 4:產品細節特寫圖
細節圖用於展示材質、工藝和品質感,是提升客單價的關鍵圖片。
Extreme close-up macro product photography of [PRODUCT DETAIL AREA],
shot with 100mm macro lens at f/4,
focused on [SPECIFIC TEXTURE/DETAIL],
single directional studio light from upper right creating texture-revealing shadows,
preserve natural grain and material texture, no plastic sheen,
dark background gradient from #1a1a2e to #16213e for contrast,
showing fine craftsmanship details, stitching, and material quality,
ultra-sharp commercial photography, 8K detail level
可替換參數:
[PRODUCT DETAIL AREA]:the leather strap connection point of the bag/the speaker's aluminum mesh grille[SPECIFIC TEXTURE/DETAIL]:woven leather texture and metal buckle/brushed aluminum finish and precise ventilation holes
模板 5:尺寸參照對比圖
尺寸參照圖幫助買家直觀理解產品大小,減少因尺寸預期不符導致的退貨。
Product size reference photograph of [YOUR PRODUCT]
placed next to [COMMON REFERENCE OBJECT] for scale comparison,
both items on a clean white surface,
top-down flat lay composition shot directly from above,
even studio lighting with minimal shadows,
f/11 for maximum depth of field ensuring both items in sharp focus,
neutral color temperature, accurate color reproduction,
clean informational style, commercial product photography
常用參照物選擇:
| 產品尺寸 | 推薦參照物 | 英文描述 |
|---|---|---|
| 小件(耳機、手錶) | 硬幣或信用卡 | a standard credit card |
| 中件(音箱、水杯) | 手機或手掌 | an iPhone 15 Pro |
| 大件(揹包、電器) | 雜誌或筆記本電腦 | a 13-inch laptop |
模板 6:多色系變體展示圖
多色系展示圖用於一個鏈接展示多個顏色選項,需要保證角度和光照完全一致。
Product color variant display of [YOUR PRODUCT] in [COLOR],
identical three-quarter view at 30-degree angle,
on pure white background,
consistent softbox lighting setup: key light upper left,
fill light right side, rim light from behind,
f/8 sharpness, same exact camera position and framing,
accurate color reproduction matching real product color,
uniform white balance D65, commercial product photography
關鍵提示:生成多色時,除了 [COLOR] 外其他所有參數保持不變。例如依次生成 in matte black / in pearl white / in navy blue / in rose gold,即可得到一組角度完全一致的色卡圖。
模板 7:產品使用演示圖
使用演示圖展示產品被使用時的狀態,適合功能性產品和穿戴類產品。
Product in-use demonstration photograph of [USAGE SCENARIO],
natural lifestyle setting with [ENVIRONMENT DETAILS],
product clearly visible and in focus as the main subject,
candid natural pose, not overly staged,
warm natural lighting simulating golden hour,
f/3.5 aperture creating natural background separation,
authentic and relatable atmosphere,
editorial commercial photography style,
high resolution output
可替換參數:
[USAGE SCENARIO]:a person wearing the wireless earbuds while jogging in a park/hands holding the portable charger while sitting at a cafe[ENVIRONMENT DETAILS]:outdoor morning light, tree-lined path/modern cafe interior with warm ambient lighting
模板 8:組合套裝圖 / 全家福
全家福圖用於展示套裝產品或配件組合的完整內容物。
Product flatlay photograph showing complete set contents of [PRODUCT SET],
all items arranged in organized grid layout on [BACKGROUND SURFACE],
top-down overhead perspective shot directly from above,
each item clearly separated with equal spacing,
even diffused studio lighting with no harsh shadows,
f/11 maximum sharpness across all items,
clean minimal style, accurate colors,
items labeled with subtle positioning,
commercial catalog photography style
排列建議:主產品居中放大,配件按大小依次環繞排列,間距保持均勻(Nano Banana 會根據描述自動優化構圖)。
電商套圖提示詞模板 風格鎖定技巧
掌握模板只是第一步,真正讓套圖「看起來像一套」的關鍵在於風格鎖定。以下是我們在實戰中總結的 4 個核心鎖定參數。
電商套圖提示詞的 4 要素鎖定法
| 鎖定要素 | 作用 | 推薦固定值 | 不建議頻繁更改 |
|---|---|---|---|
| 光照方向 | 決定陰影一致性 | softbox lighting from upper left |
避免混用左右光源 |
| 色溫白平衡 | 決定色調統一 | white balance D65, 5500K |
避免混用冷暖色溫 |
| 鏡頭參數 | 決定透視感統一 | 85mm lens, f/8 |
避免混用廣角和長焦 |
| 背景處理 | 決定視覺連貫性 | 統一使用一種背景風格 | 避免白底和場景圖混排 |
電商套圖提示詞的通用後綴
以下後綴可以追加到任意模板末尾,用於進一步統一風格和滿足平臺要求:
, high resolution output,
sRGB color space,
no chromatic aberration,
preserve natural grain texture, no plastic sheen,
no AI artifacts, photorealistic quality
防止過度平滑:Nano Banana 有時會將產品材質渲染得過於光滑,加入 preserve natural grain texture, no plastic sheen 可以有效避免塑料感。
色彩準確性:加入 match to reference sRGB color space; remove warm cast; uniform white balance 確保同一批次生成的圖片色調一致。
🎯 實戰建議: 建議先用 Nano Banana 2 快速出一版草圖確認構圖和風格,滿意後再用 Nano Banana Pro 生成最終的高畫質版本。通過 API易 apiyi.com 平臺調用這兩個模型,可以用統一接口靈活切換,無需分別配置。
電商套圖提示詞模板 API 快速上手
極簡示例
以下是通過 API 調用 Nano Banana 2 生成電商產品圖的最簡代碼,10 行即可運行:
import requests, base64, json
API_KEY = "your-apiyi-api-key"
ENDPOINT = "https://api.apiyi.com/v1beta/models/gemini-3.1-flash-image-preview:generateContent"
payload = {
"contents": [{"parts": [{"text": "Ultra-realistic studio photograph of a matte black wireless speaker on pure white seamless background, centered, fills 85% of frame, 85mm lens, f/8, softbox high-key lighting, gentle contact shadow, no text, no watermark, 1:1 composition"}]}],
"generationConfig": {"responseModalities": ["IMAGE"], "imageConfig": {"aspectRatio": "1:1", "imageSize": "2K"}}
}
response = requests.post(ENDPOINT, headers={"Content-Type": "application/json", "x-goog-api-key": API_KEY}, json=payload, timeout=120)
image_data = response.json()["candidates"][0]["content"]["parts"][0]["inlineData"]["data"]
with open("product_main.png", "wb") as f:
f.write(base64.b64decode(image_data))
查看批量生成套圖的完整代碼
import requests
import base64
import json
import os
import time
API_KEY = "your-apiyi-api-key"
ENDPOINT = "https://api.apiyi.com/v1beta/models/gemini-3.1-flash-image-preview:generateContent"
# 產品描述 - 修改這裏即可
PRODUCT = "a matte black portable Bluetooth speaker with fabric mesh exterior"
# 8 組套圖提示詞模板
TEMPLATES = {
"01_main_white": f"Ultra-realistic studio photograph of {PRODUCT} on a pure white seamless background, centered, fills 85-90% of frame, 85mm lens, f/8, ISO 100, softbox high-key lighting, gentle contact shadow, natural colors, no props, no text, no watermark, 1:1 composition",
"02_angle_45": f"Professional product photograph of {PRODUCT}, three-quarter view at 45-degree angle, light gray gradient background, studio softbox from upper left, f/5.6, sharp focus on front, commercial photography",
"03_lifestyle": f"Lifestyle product photography of {PRODUCT} on a modern wooden desk, natural window light from left, next to a small potted plant and notebook, f/2.8 with product in sharp focus, warm 5500K atmosphere",
"04_detail": f"Extreme close-up macro of {PRODUCT} fabric mesh texture and aluminum edge detail, 100mm macro lens f/4, directional light revealing texture, dark background, ultra-sharp 8K",
"05_scale": f"Size reference photograph of {PRODUCT} placed next to an iPhone 15 Pro, top-down flat lay on white surface, even lighting, f/11 sharp focus, clean informational style",
"06_in_use": f"Product in-use photograph of a person's hand picking up {PRODUCT} from a cafe table, warm natural lighting, f/3.5 background blur, candid authentic atmosphere",
"07_packaging": f"Product flatlay showing {PRODUCT} with charging cable, carrying pouch, and user manual arranged in grid layout, top-down view, even studio lighting, catalog style",
"08_hero": f"Dramatic product photograph of {PRODUCT} on dark surface with subtle blue accent lighting from behind, moody atmosphere, f/4, sharp focus, premium brand feel"
}
headers = {"Content-Type": "application/json", "x-goog-api-key": API_KEY}
os.makedirs("product_photos", exist_ok=True)
for name, prompt in TEMPLATES.items():
print(f"Generating {name}...")
payload = {
"contents": [{"parts": [{"text": prompt}]}],
"generationConfig": {
"responseModalities": ["IMAGE"],
"imageConfig": {"aspectRatio": "1:1", "imageSize": "2K"}
}
}
response = requests.post(ENDPOINT, headers=headers, json=payload, timeout=120)
result = response.json()
image_data = result["candidates"][0]["content"]["parts"][0]["inlineData"]["data"]
with open(f"product_photos/{name}.png", "wb") as f:
f.write(base64.b64decode(image_data))
print(f" Saved: product_photos/{name}.png")
time.sleep(2) # 控制請求頻率
print("Done! 8 product photos generated.")
建議: 通過 API易 apiyi.com 調用 Nano Banana 系列模型,按次計費僅 $0.045/次(不限分辨率),批量生成 8 張套圖成本不到 $0.36。平臺同時支持 Nano Banana 2 和 Nano Banana Pro,一個 API Key 即可靈活切換。
電商套圖提示詞模板 模型對比與選擇

| 對比項 | Nano Banana 2 | Nano Banana Pro | 電商場景建議 |
|---|---|---|---|
| 生成速度 | 5-20 秒 | 60-90 秒 | 批量出圖選 NB2 |
| 最大分辨率 | 4K(4096px) | 2K(2048px) | 大圖展示選 NB2 |
| 畫質水平 | Pro 的 95% | 最高畫質 | 高端產品選 Pro |
| 文字渲染 | 優秀(97%+) | 最佳(98%+) | 需要文字疊加選 Pro |
| 角色一致性 | 5 角色 | 5 角色 | 模特圖兩者皆可 |
| 物體保真度 | 14 張參考圖 | 14 張參考圖 | 產品還原兩者皆可 |
| API易按次價格 | $0.045/次 | $0.05/次 | NB2 性價比更高 |
| 推薦場景 | 日常運營、批量生成 | 品牌旗艦圖、詳情頁首圖 | 按需組合使用 |
💡 選擇建議: 日常電商運營推薦 Nano Banana 2,速度快、成本低、分辨率更高。僅在拍攝高端產品品牌首圖、需要極致材質質感時使用 Nano Banana Pro。建議通過 API易 apiyi.com 平臺同時接入兩個模型,根據圖片用途靈活切換。
電商套圖提示詞模板 平臺適配參數
不同電商平臺對產品圖有不同的尺寸和格式要求,以下參數可直接用於 Nano Banana 的 imageConfig 配置。
| 電商平臺 | 主圖比例 | 推薦分辨率 | 背景要求 | Nano Banana 參數 |
|---|---|---|---|---|
| 淘寶/天貓 | 1:1 | 800×800 以上 | 白底或淺色 | aspectRatio: "1:1", imageSize: "1K" |
| 亞馬遜 | 1:1 | 2000×2000 | 純白 RGB(255,255,255) | aspectRatio: "1:1", imageSize: "2K" |
| 拼多多 | 1:1 | 750×750 以上 | 白底 | aspectRatio: "1:1", imageSize: "1K" |
| 抖音電商 | 3:4 | 900×1200 | 不限 | aspectRatio: "3:4", imageSize: "1K" |
| 小紅書 | 3:4 | 1080×1440 | 不限 | aspectRatio: "3:4", imageSize: "2K" |
| Shopify | 1:1 | 2048×2048 | 不限 | aspectRatio: "1:1", imageSize: "2K" |
🎯 平臺提示: 亞馬遜對主圖背景要求最嚴格,必須是純白(RGB 255,255,255),建議在提示詞中明確寫
pure white seamless background並在生成後用圖片編輯工具做最終確認。
常見問題
Q1: 爲什麼生成的多張圖風格不統一?
風格不統一的根本原因是提示詞中的「變量」太多。解決方法是使用本文的「4 要素鎖定法」:固定光照方向、色溫白平衡、鏡頭參數和背景處理。具體操作是將這 4 個固定參數寫成一個「基礎後綴」,追加到每張圖的提示詞末尾。另外,使用 Nano Banana 的參考圖功能(最多支持 14 張物體參考圖)可以進一步提升產品外觀的一致性。
Q2: 一套 8 張電商產品圖的生成成本是多少?
通過 API易 apiyi.com 平臺調用 Nano Banana 2,按次計費爲 $0.045/次,8 張套圖成本爲 $0.36(約 2.6 元人民幣)。如果使用按量計費方案,1K 分辨率下單張約 $0.025,8 張僅需 $0.20。相比傳統電商產品攝影動輒幾百到幾千元的成本,AI 生成的性價比優勢非常明顯。
Q3: 如何用參考圖提升產品外觀還原度?
Nano Banana 2 和 Pro 均支持上傳最多 14 張參考圖片。在 API 調用時,將產品實拍照作爲 contents 中的圖像部分傳入,配合文字提示詞描述目標場景即可。建議:
- 上傳 2-3 張不同角度的產品實拍照
- 在文字提示中明確寫
maintain exact product appearance from reference images - 通過 API易 apiyi.com 平臺獲取 API Key,快速測試參考圖效果
Q4: Nano Banana 生成的圖片有水印嗎?
Nano Banana 所有輸出圖像會自動包含 Google SynthID 不可見水印,這是一種數字水印技術,肉眼不可見,不影響產品圖的正常使用和上架。但需要注意的是,AI 生成圖片在部分平臺可能需要標註,建議瞭解目標平臺的最新政策。
總結
電商套圖提示詞模板的核心要點:
- 固定 4 要素:光照方向、色溫、鏡頭參數、背景風格是套圖統一的關鍵
- 8 組模板覆蓋全場景:白底主圖、角度圖、場景圖、細節圖、尺寸圖、色卡圖、使用圖、全家福
- 雙模型靈活搭配:Nano Banana 2 適合批量生成(快、便宜),Pro 適合品牌首圖(極致畫質)
- 平臺參數直接適配:針對淘寶、亞馬遜、抖音等平臺的尺寸比例一鍵設置
掌握這套提示詞體系後,一個產品從拍攝到上架的圖片準備時間可以從數小時縮短到 10 分鐘以內。推薦通過 API易 apiyi.com 平臺接入 Nano Banana 系列模型,按次計費 $0.045 起,8 張套圖成本不到 3 元。
📚 參考資料
-
Google Nano Banana 2 官方文檔: 圖像生成 API 完整參考
- 鏈接:
ai.google.dev/gemini-api/docs/image-generation - 說明: 官方 API 參數和最佳實踐指南
- 鏈接:
-
Google Nano Banana 開發者指南: 從文本到圖像的開發教程
- 鏈接:
blog.google/innovation-and-ai/technology/developers-tools/build-with-nano-banana-2/ - 說明: 官方推薦的開發集成方法和示例代碼
- 鏈接:
-
API易 Nano Banana 2 接入文檔: API易平臺的 Nano Banana 調用指南
- 鏈接:
docs.apiyi.com/en/api-capabilities/nano-banana-2-image - 說明: 包含按次和按量計費方案的詳細說明
- 鏈接:
作者: APIYI 技術團隊
技術交流: 更多 AI 圖像生成技巧和電商套圖實戰經驗,歡迎訪問 API易 docs.apiyi.com 文檔中心
