用你的產品產生海報/廣告素材
上傳您的產品和一個簡單的文字提示詞,用於海報或廣告設計。在將產品放入產生的版面之前,疊代調整外觀。
關於
此 ComfyUI 工作流程專為將產品圖片整合進 AI 生成的海報或廣告版面而設計,讓視覺設計流程更有效率。流程從上傳產品圖片與輸入簡單文字提示(描述主題或風格)開始,結合 ByteDance 與 Google Gemini 等先進 AI 模型,根據提示生成符合需求的基礎版面。Seedream 模型進一步優化視覺細節,確保輸出品質。comfyui_essentials 等自訂節點則提供圖片儲存與預覽等必要功能,方便設計者在最終置入產品前反覆調整設計。
技術上,流程會用 LoadImage 節點匯入產品圖片,並透過 ByteDanceSeedreamNode 套用 Seedream 模型的美學轉換。GeminiNode 則整合 Google Gemini 模型,根據文字提示生成協調且具吸引力的版面。PreviewAny 與 Reroute 節點協助即時預覽與資料流管理,讓設計者能隨時根據預覽結果調整設計。此流程特別適合行銷人員與設計師,能快速產出專業級宣傳素材,減少手動作業。
您提供的內容
- 正在讀取工作流程
在 ComfyUI 中執行。 此工作流程無法在此頁面上執行。請在已載入所有內容的 Comfy Cloud 中開啟,或下載到您自己的 ComfyUI。
在 Cloud 中試用工作流程內部
節點圖的唯讀預覽。請在 Comfy Cloud 中開啟,或下載後編輯節點。
Loading the graph
Open full-size workflow preview- 作者
- Rob
需要自訂節點
- 正在讀取工作流程
從程式碼使用此工作流程
可行時會根據工作流程圖和輸入內容產生;否則會顯示儲存的範例。執行可能產生費用的程式碼前,請檢查認證資訊和端點。
What you need
- Runs on
- Comfy Cloud
- 金鑰
- COMFY_API_KEY
需要付費 Cloud 方案與點數。
# Python 3.10+: pip install comfy-sdk==0.4.0
import os
from comfy_sdk import Comfy
api_key = os.environ.get("COMFY_API_KEY", "").strip()
if not api_key: raise RuntimeError("Set COMFY_API_KEY")
os.environ.setdefault("COMFY_BASE_URL", "https://cloud.comfy.org")
client = Comfy(api_key=api_key)
workflow = client.workflows.from_json({
"10": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "ComfyUI-poster",
"images": [
"14",
0
]
},
"_meta": {
"title": "Save Image"
}
},
"13": {
"class_type": "SaveImage",
"inputs": {
"filename_prefix": "ComfyUI-poster_product",
"images": [
"19",
0
]
},
"_meta": {
"title": "Save Image"
}
},
"14": {
"class_type": "ByteDanceSeedreamNode",
"inputs": {
"fail_on_partial": True,
"height": 2048,
"max_images": 1,
"model": "seedream-4-5-251128",
"prompt": [
"23",
0
],
"seed": 123,
"sequential_image_generation": "auto",
"size_preset": "1664x2496 (2:3)",
"watermark": False,
"width": 2048
},
"_meta": {
"title": "ByteDance Seedream 4.5 & 5.0"
}
},
"15": {
"class_type": "LoadImage",
"inputs": {
"image": "comfy_cloud_water_can.jpg"
},
"_meta": {
"title": "Load Product Image"
}
},
"19": {
"class_type": "ByteDanceSeedreamNode",
"inputs": {
"fail_on_partial": True,
"height": 2048,
"image": [
"29:33",
0
],
"max_images": 1,
"model": "seedream-4-5-251128",
"prompt": "Replace the product from image 1 with the product from image 2. Ensure the products dimensions stay consistent with input image 2.",
"seed": 321,
"sequential_image_generation": "disabled",
"size_preset": "1664x2496 (2:3)",
"watermark": False,
"width": 2048
},
"_meta": {
"title": "ByteDance Seedream 4.5 & 5.0"
}
},
"23": {
"class_type": "GeminiNode",
"inputs": {
"images": [
"15",
0
],
"model": "gemini-3-pro-preview",
"prompt": "The canned product sits on a reflective glass table, faintly reflecting the sky, liquid water textures sit on the table, small silicon computer chips are scattered around. In the blue sky, clouds form as text that says \"Comfy Cloud\" amongst scattered clouds. Realistic product photography.",
"seed": 12345,
"system_prompt": "# Role: Prompt Architect & Creative Director\n\n## 1. Core Objective\n\nYou are an expert **Prompt Engineer and Commercial Art Director**. Your mission is to transform natural language user requests—ranging from simple object/product names, mandatory H1 header titles, typography fonts styles to use, taglines phrases, to specific hex color codes, detailed brand briefs—into a **structured, detailed, and execution-ready English prompt**.\n\nYou must seamlessly integrate user-provided details (brand names, specific color codes, product features) while creatively \"gap-filling\" any missing aesthetic details to ensure a high-quality, cohesive visual output.\n\n\n## 2. Input Processing & Adaptation Strategy\n\nBefore generating the output, analyze the user's input against these three levels of granularity:\n\n* **Level 1: Sparse (e.g., \"a coffee poster\").**\n\n * *Action:* You must invent a cohesive brand identity, mood, and style. Infer a suitable context (e.g., a cozy morning or a high-energy workspace).\n\n* **Level 2: Hybrid (e.g., \"Retro sci-fi poster for a sleek energy drink\").**\n\n * *Action:* Adopt the requested style (\"Retro sci-fi\"). Create a visual scene that highlights the \"sleekness\" of the product. Invent a brand name if none is provided.\n\n* **Level 3: Specific (e.g., \"Rolex Submariner, underwater scene, emerald green and gold palette, Title: 'Deep Dive'\").**\n\n * *Action:* strictly adhere to the brand name, color palette, and specific product details provided. Do not deviate from these constraints.\n\n\n## 3. Output Structure Requirements\n\nYou must organize the final prompt into **five distinct dimensions**. Do not use bullet points within the sections; instead, write coherent, descriptive paragraphs for each dimension.\n\n\n### Dimension 1: Poster Content & Hero Object\n\n* **Goal:** Define the visual reality and the Product/Subject placement.\n\n* **Instruction:** clearly describe the main visual elements. If a product is mentioned, treat it as the \"Hero Object\"—describe its lighting, material qualities (e.g., condensation on a can, sheen on leather), and interaction with the environment.\n\n* **Example logic:** Instead of \"a shoe,\" write \"a floating high-top sneaker with reflective holographic panels, surrounded by shattered concrete debris suspended in mid-air.\"\n\n\n### Dimension 2: Aesthetic Style & Brand Identity\n\n* **Goal:** Define the artistic lens and color strategy.\n\n* **Instruction:** Describe the visual tone (e.g., cinematic, minimalist, brutalist, ethereal). **Crucial:** If the user provided brand colors, explicitly mandate them here. Describe the hex code colors into natural english, DO NOT output the actual hex code #. If no colors are provided, define a sophisticated palette that compliments the subject. Mention textures (e.g., matte finish, film grain, glossy plastic) and lighting style (e.g., volumetric god-rays, neon rim lighting).\n\n\n### Dimension 3: Poster Text\n\n* **Goal:** Define the exact strings to render.\n\n* **Instruction:** Provide **only** the exact text content to appear on the poster.\n\n 1. If the user provides a Brand Name/Title, use it exactly.\n\n 2. If the user provides *no* text, you **must** invent a short, punchy, thematic title or brand name that fits the vibe.\n\n 3. Maintain exact spelling and capitalization.\n\n\n### Dimension 4: Text Style and Position\n\n* **Goal:** Define typography and hierarchy.\n\n* **Instruction:**\n\n * **Font:** Describe the font family (e.g., bold sans-serif, elegant serif, handwritten marker, futuristic digital display).\n\n * **Attributes:** Specify material effects on the text (e.g., metallic gold, glowing neon, negative space cutout).\n\n * **Placement:** Describe the layout of the text relative to the image (e.g., bold header centered at the top, small legal text at the bottom, vertical tagline interlaced with the main subject).\n\n\n### Dimension 5: Layout\n\n* **Goal:** Define composition and flow.\n\n* **Instruction:** Describe how elements are arranged to guide the viewer's eye. Explain the relationship between the background and the foreground. Define the camera angle (e.g., low-angle hero shot, top-down flat lay, macro close-up). Ensure there is clear \"safe space\" for the text defined in Dimension 4 so it does not clash with the busy parts of the image.\n\n\n## 4. Strict Constraints\n\n1. **Language:** The final output must be in **English only**.\n\n2. **Purity:** Output **only** the structured prompt content. Do not include conversational fillers (e.g., \"Here is your prompt\"), explanations, or markdown code block fences (like ```).\n\n3. **Format:** Strictly follow the header structure shown in the \"Output Structure Requirements\"."
},
"_meta": {
"title": "Prompt + Google Gemini Prompt Enhancer"
}
},
"24": {
"class_type": "PreviewAny",
"inputs": {
"source": [
"23",
0
]
},
"_meta": {
"title": "Preview Prompt as Text"
}
},
"29:16": {
"class_type": "GetImageSize",
"inputs": {
"image": [
"14",
0
]
},
"_meta": {
"title": "Get Image Size"
}
},
"29:17": {
"class_type": "ResizeAndPadImage",
"inputs": {
"image": [
"29:30",
0
],
"interpolation": "area",
"padding_color": "black",
"target_height": [
"29:16",
1
],
"target_width": [
"29:16",
0
]
},
"_meta": {
"title": "Resize And Pad Image"
}
},
"29:29": {
"class_type": "RemBGSession+",
"inputs": {
"model": "u2net: general purpose",
"providers": "CPU"
},
"_meta": {
"title": "🔧 RemBG Session"
}
},
"29:30": {
"class_type": "ImageRemoveBackground+",
"inputs": {
"image": [
"15",
0
],
"rembg_session": [
"29:29",
0
]
},
"_meta": {
"title": "🔧 Image Remove Background"
}
},
"29:33": {
"class_type": "BatchImagesNode",
"inputs": {
"images.image0": [
"14",
0
],
"images.image1": [
"29:17",
0
]
},
"_meta": {
"title": "Batch Images"
}
}
})
# run() also passes api_key to the partner nodes in this workflow.
job = client.run(workflow, api_key=api_key)問答
建議使用高解析度、背景乾淨的產品圖片,能更自然地融入 AI 生成的版面。
可以,你可根據品牌風格調整提示詞,指定主題、色彩與設計風格。
可利用 PreviewAny 節點反覆預覽與微調設計,確保與品牌視覺一致後再完成。
雖然主要針對產品圖片設計,也可嘗試其他類型圖片,但效果會依輸入內容有所不同。
相關工作流程
- Seedance1.0 Pro, ByteDance
ByteDance: 起始結束到影片
- Seedance1.0 Pro, ByteDance
Seedance 1.0 Pro:圖生影片
- ByteDance, Seedance
Seedance 1.5 Pro:FLF2V
- Seedance1.0 Pro, ByteDance
Seedance1.0 Pro: 文生影片
- ByteDance, Seedream 4.0
位元組跳動 Seedream 4.0
- ByteDance, Seedream, Google Gemini, Nano Banana Pro
動感3D標誌動畫
- Gemini3 Pro Image Preview, Nano Banana Pro, Google, ByteDance, Seedance
為 Logo 應用材質
- Gemini3 Pro Image Preview, Nano Banana Pro, Google, ByteDance, Seedance
為 logo 新增紋理元素
- ByteDance, Seedream
產品場景合成與重新光照
- Gemini3 Pro Image Preview, Nano Banana Pro, Google, ByteDance, Seedance
產品廣告替換