本技能是一款专业级营销图片生成工具,适用于社交媒体运营、品牌推广、产品营销、活动宣传等全场景。
核心能力:
设计风格库:
| 平台/场景 | 推荐尺寸 | API 尺寸 | 比例 |
|---------|---------|---------|------|
| 小红书封面/笔记 | 1240×1754 | 1024×1536 | 3:4 竖版 |
| 小红书视频封面 | 1240×1660 | 1024×1536 | 3:4 竖版 |
| 微信公众号首图 | 900×383 | 1024×512 | 2.35:1 横版 |
| 微信公众号次图 | 500×383 | 512×512 | 4:3 方版 |
| 朋友圈/微博 | 1080×1080 | 1024×1024 | 1:1 方版 |
| 抖音/快手封面 | 1080×1920 | 1024×1536 | 9:16 竖版 |
| 电商 Banner | 1920×800 | 1536×1024 | 横版大图 |
| 产品主图 | 800×800 | 1024×1024 | 1:1 方版 |
| 海报/宣传单 | 2480×3508 | 1024×1536 | A4 竖版 |
| PPT 封面 | 1920×1080 | 1536×1024 | 16:9 横版 |
重要:默认使用中文输出
当用户没有明确指定输出语言时,生成的图片必须包含中文文案:
例外情况:
本技能已直接集成 AimArt API 调用,无需依赖 hanis-gpt-image2-skill。
https://aimart.vip/v1/images/generations
gpt-image-2-all
.env 文件读取 AIMART_API_KEY)
from generate_marketing_image import generate_image, load_env_api_key
# 图生图模式(使用参考图)
result = generate_image(
prompt="Professional product marketing poster...",
api_key=load_env_api_key(),
size="1024x1536",
images=["参考图路径"]
)
# 文生图模式(无参考图)
result = generate_image(
prompt="科技感海报设计",
api_key=load_env_api_key(),
size="1024x1024"
)
用户输入后,首先判断营销图类型:
| 类型 | 关键词 | 推荐尺寸 |
|-----|-------|---------|
| 城市/景区营销 | "深圳宣传"、"广州旅游" | 1024×1536 |
| 产品营销 | "产品图"、"卖货图" | 1024×1024 |
| 节日节气 | "春节"、"中秋"、"立春" | 1024×1536 |
| 活动宣传 | "促销"、"年会"、"发布会" | 1536×1024 |
| 品牌故事 | "企业介绍"、"品牌故事" | 1536×1024 |
| 社媒配图 | "小红书"、"公众号" | 见上表 |
使用参考图时:
~/.workbuddy/blobs/{前2位}/{完整blob_id}.jpg
不使用参考图时:
提示词使用英文,按以下模块组织:
{Main Subject} marketing poster, {风格描述}.
{Main visual element in the center}.
{Main background: 背景元素1, 背景元素2, 氛围描述}.
{Foreground elements: 前景元素1, 前景元素2, 装饰元素}.
Color palette: {主色调1} and {主色调2} with {点缀色}, {整体氛围描述}.
{CTA or tagline in Chinese}.
{整体风格描述}, {设计定位}.
Same professional design style and layout as reference image.
Prompt 编写原则:
Same professional design style and layout as reference image.
方式一:命令行调用(推荐)
"C:/Program Files/Python311/python.exe" \
"C:/Users/Evan Jiang/.workbuddy/skills/hanis-marketing-image/scripts/generate_marketing_image.py" \
--prompt "构建好的英文Prompt" \
--image "参考图本地路径" \
--size "1024x1536" \
--output "输出路径.png"
方式二:Python 代码调用
import sys
sys.path.insert(0, "C:/Users/Evan Jiang/.workbuddy/skills/hanis-marketing-image/scripts")
from generate_marketing_image import generate_image, load_env_api_key
result = generate_image(
prompt="Your English prompt here",
api_key=load_env_api_key(),
size="1024x1536",
images=["参考图路径"],
output_path="输出路径.png"
)
生成成功后:
Beijing city promotional marketing poster, Chinese capital city, millennium ancient capital meets modern metropolis. Grand Chinese calligraphy characters writing Beijing in the center. Background: Tiananmen Square, Forbidden City corner tower, National Centre for the Performing Arts, CCTV Headquarters, China Zun Tower, modern CBD skyline. Foreground: Peking Opera mask elements, traditional hutong courtyard houses, Great Wall silhouette, modern high-speed rail, space rocket, 5G towers. Color palette: Chinese red and gold dominant, blue sky and white clouds, showcasing ancient capital heritage and national grandeur. Bottom tagline in Chinese. Grand and majestic style, traditional meets modern fusion. Same professional design style and vertical layout as reference image.
Guangzhou city promotional marketing poster, capital of Guangdong Province China, gateway to the world. Grand Chinese calligraphy characters writing Guangzhou in the center. Background: Canton Tower glowing at night, Pearl River skyline, Guangzhou Opera House, Sun Yat-sen Memorial Hall, Shamian Island, Pazhou Internet Innovation Cluster, Baiyun Mountain. Foreground: Canton Fair trade expo elements, dim sum and Cantonese cuisine, lychee and flowers, lion dance, lingnan architecture wok-ear roof, modern port and shipping, dragon boat racing. Color palette: vibrant red and gold with pearl white river reflections, warm tropical energy. Bottom tagline in Chinese. Grand and cosmopolitan style, millennium trade capital meets lingnan culture. Same professional design style and vertical layout as reference image.
Chengdu city promotional marketing poster, capital of Sichuan Province China. Grand Chinese calligraphy characters writing Chengdu in the center. Background: Jinli Ancient Street, Wide and Narrow Alleys, Chunxi Road CBD, Tianfu Square, Sichuan Opera face-changing performer, giant pandas, Mount Qingcheng, Dujiangyan Irrigation System. Foreground: hotpot elements, Sichuan peppercorns, Gaiwan tea culture, Shu brocade, modern metro, aerospace industry. Color palette: warm red and golden with green bamboo accents, hazy poetic atmosphere blending with modern vitality. Bottom tagline in Chinese. Grand and inviting style, traditional Sichuan culture meets modern innovation. Same professional design style and vertical layout as reference image.
Zhuhai city promotional marketing poster, coastal garden city in Guangdong Province China. Grand Chinese calligraphy characters writing Zhuhai in the center. Background: Lover's Road coast, Fisher Girl statue, Hong Kong-Zhuhai-Macao Bridge, Chimelong Ocean Kingdom, Xianglu Bay, Zhuhai Opera House, Hengqin New Area skyline. Foreground: romantic seaside boardwalk, yacht and sailing boats, mangrove wetlands, aviation expo, modern port, ocean elements. Color palette: fresh ocean blue and white, tropical island green, romantic sunset golden glow. Bottom tagline in Chinese. Romantic and clean coastal style, bridge city connecting Greater Bay Area. Same professional design style and vertical layout as reference image.
Hefei city promotional marketing poster, capital of Anhui Province China. Grand Chinese calligraphy characters writing Hefei in the center. Background: Swan Lake CBD skyline, Anhui Grand Theatre, University of Science and Technology of China, Binhu New District, Xiaoyaojin Park, Sanhe Ancient Town, Chaohu Lake. Foreground: quantum computing technology elements, voice recognition AI, national science center, high-speed rail, ancient Huizhou architecture carved wood, yellow plum opera. Color palette: blue-green tech tones blended with warm traditional gold, clear lake water blue. Bottom tagline in Chinese. Grand and forward-looking style, science innovation capital meets cultural heritage. Same professional design style and vertical layout as reference image.
Shanghai city promotional marketing poster, financial center of China, the Paris of the East. Grand Chinese calligraphy characters writing Shanghai in the center. Background: Oriental Pearl Tower, Shanghai Tower, World Financial Center, Bund historic buildings, Huangpu River night view, Lujiazui skyline. Foreground: art deco elements, tea culture, modern fashion, international trade symbols, maglev train, Yangtze River delta, innovation hub. Color palette: silver gray and sapphire blue, golden Huangpu River reflections, cosmopolitan night lights. Bottom tagline in Chinese. Grand and international style, Eastern gateway meets global metropolis. Same professional design style and vertical layout as reference image.
Hangzhou city promotional marketing poster, capital of Zhejiang Province China, paradise on earth. Grand Chinese calligraphy characters writing Hangzhou in the center. Background: West Lake with Leifeng Pagoda, Xixi wetland, Qiantang River, Alibaba headquarters, Hangzhou Olympic Sports Center, Xingqiao ancient district. Foreground: lotus flowers, Longjing tea plantations, silk culture, digital economy elements, West Lake dragon boat, contemporary art. Color palette: fresh green and jade white, misty blue lake, golden sunset reflections, digital purple accents. Bottom tagline in Chinese. Elegant and innovative style, cultural heritage meets digital future. Same professional design style and vertical layout as reference image.
Professional tech product marketing poster, cutting-edge gadget showcase. Modern floating design with elegant product in center. Background: abstract digital grid, soft gradient blue, subtle circuit patterns, bokeh light effects. Foreground: holographic UI elements, floating data points, sleek device mockup, glass reflections. Color palette: deep space blue and electric cyan, white highlights, premium metallic accents. Bottom tagline in Chinese. Clean and futuristic style, premium technology product photography. Same professional design style as reference image.
Professional cosmetics marketing poster, beauty product showcase. Elegant product arrangement in center with soft lighting. Background: rose gold gradient, marble texture, soft pink and cream tones. Foreground: botanical elements, pearl decorations, luxury packaging, floral accents. Color palette: rose gold and blush pink, soft coral, ivory white, champagne highlights. Bottom tagline in Chinese. Luxurious and feminine style, premium beauty product photography. Same professional design style as reference image.
Professional food and beverage marketing poster, delicious culinary showcase. Appetizing food presentation in center with steam effects. Background: warm wooden table texture, soft natural lighting, kitchen atmosphere. Foreground: fresh ingredients, artisan details, steam and aroma effects, colorful garnish. Color palette: warm orange and amber, rich brown tones, fresh green herbs, cream white. Bottom tagline in Chinese. Appetizing and inviting style, professional food photography. Same professional design style as reference image.
Professional fashion marketing poster, stylish clothing showcase. Model silhouette with elegant outfit in center. Background: minimal clean gradient, luxury boutique atmosphere, soft spotlight. Foreground: fashion accessories, fabric texture details, elegant draping, jewelry accents. Color palette: sophisticated black and white, gold accents, subtle gray gradients, cream tones. Bottom tagline in Chinese. Chic and sophisticated style, high-end fashion editorial. Same professional design style as reference image.
Professional home appliance marketing poster, modern smart home showcase. Elegant product in center with lifestyle context. Background: modern living room setting, warm ambient lighting, contemporary interior. Foreground: smart home elements, digital interface displays, lifestyle accessories, indoor plants. Color palette: warm white and soft beige, wood tones, accent blue for technology, golden lighting. Bottom tagline in Chinese. Warm and modern style, smart home lifestyle photography. Same professional design style as reference image.
Professional baby products marketing poster, gentle and caring design. Soft product showcase in center. Background: pastel gradient, cloud-like softness, warm nursery atmosphere. Foreground: cute illustrations, heart elements, soft textures, protective imagery. Color palette: soft pink and baby blue, warm peach, gentle mint green, creamy white. Bottom tagline in Chinese. Gentle and loving style, premium baby care products. Same professional design style as reference image.
Chinese New Year Spring Festival marketing poster, most important traditional celebration. Red lanterns and fireworks in background, festive atmosphere. Central calligraphy: Chinese characters blessing prosperity. Background: traditional red and gold decorations, ancient palace architecture silhouette, dragon dance elements, fireworks night sky. Foreground: lucky bamboo, red envelopes, tangyuan dumplings, plum blossoms, zodiac animal decorations. Color palette: festive red and gold dominant, traditional Chinese red, jade green accents, warm golden glow. Bottom tagline in Chinese. Grand and auspicious style, traditional Chinese New Year celebration. Same professional design style as reference image.
Mid-Autumn Festival mooncake marketing poster, traditional Chinese moon celebration. Large full moon in center, elegant mooncake display. Background: traditional Chinese architecture, Chinese parasol trees, night sky with rabbit in the moon. Foreground: mooncakes, osmanthus flowers, tea ceremony elements, lantern decorations, rabbit lanterns. Color palette: warm amber and silver moonlight, deep blue night sky, red and gold accents, soft orange tones. Bottom tagline in Chinese. Traditional and romantic style, Mid-Autumn reunion celebration. Same professional design style as reference image.
China National Day celebration marketing poster, patriotic theme. Five-star red flag and national emblem elements. Background: Tiananmen Square, Beijing cityscape, national day flower displays, colorful balloons. Foreground: national symbols, patriotic decorations, flowers arrangement, people celebrating. Color palette: Chinese red and golden yellow dominant, blue sky, patriotic color scheme, festive atmosphere. Bottom tagline in Chinese. Grand and patriotic style, National Day celebration. Same professional design style as reference image.
Dragon Boat Festival marketing poster, traditional Chinese cultural celebration. Dragon boat racing scene, traditional atmosphere. Background: river scenery, traditional boats, festive banners, green mountains. Foreground: zongzi dumplings, mugwort and calamus decorations, dragon boat elements, festive flowers. Color palette: fresh green and blue, traditional blue and white, warm brown zongzi, festive red accents. Bottom tagline in Chinese. Traditional and lively style, Dragon Boat Festival culture. Same professional design style as reference image.
Lantern Festival marketing poster, traditional Chinese light festival. Colorful lanterns illuminating the night. Background: traditional Chinese architecture at night, lantern-lit streets, full moon. Foreground: various shaped lanterns, yuanxiao sweet dumplings, riddle猜灯谜 elements, firework effects. Color palette: warm red and golden lanterns, soft pink and purple glows, dark blue night sky, colorful light trails. Bottom tagline in Chinese. Warm and festive style, Lantern Festival celebration. Same professional design style as reference image.
Qingming Festival marketing poster, spring outing and remembrance theme. Fresh spring scenery, traditional Chinese landscape. Background: misty mountains, willow trees, ancient pavilions, spring flowers. Foreground: traditional offerings, spring tea, willow branches, paper crafts. Color palette: fresh green and soft pink, misty blue and gray, warm earth tones, gentle spring palette. Bottom tagline in Chinese. Serene and respectful style, Qingming spring tradition. Same professional design style as reference image.
Qixi Festival Chinese Valentine's Day marketing poster, romantic love theme. Traditional love story atmosphere, elegant design. Background: traditional Chinese architecture, starry night sky, magpie bridge elements. Foreground: romantic symbols, heart decorations, flower arrangements, couple silhouettes. Color palette: romantic pink and purple, soft red and gold, dreamy night blue, gentle white. Bottom tagline in Chinese. Romantic and poetic style, traditional love celebration. Same professional design style as reference image.
Chongyang Festival Double Ninth marketing poster, elderly respect and autumn theme. Autumn scenery, chrysanthemum elements. Background: misty mountains with chrysanthemums, autumn foliage, traditional pavilions. Foreground: chrysanthemum flowers, tea elements, mountain climbing imagery, longevity symbols. Color palette: warm autumn orange and gold, deep red, chrysanthemum yellow, earthy brown tones. Bottom tagline in Chinese. Respectful and autumnal style, traditional elderly respect festival. Same professional design style as reference image.
Double 11 Shopping Festival promotional poster, biggest online sale event. Energetic shopping atmosphere, discount elements. Background: dynamic gradient, shopping bag patterns, digital elements. Foreground: large discount tags, shopping cart, gift boxes, countdown timer, sparkle effects. Color palette: energetic red and orange, electric blue accents, golden highlights, dynamic purple. Bottom tagline in Chinese. Energetic and exciting style, biggest shopping festival promotion. Same professional design style as reference image.
618 Shopping Festival promotional poster, mid-year mega sale event. Summer shopping atmosphere, refreshing design. Background: summer gradient, sun rays, beach elements subtly incorporated. Foreground: shopping bags, gift boxes, discount percentages, summer fruits, refreshing beverages. Color palette: summer blue and coral, energetic orange, fresh green, warm yellow. Bottom tagline in Chinese. Fresh and exciting style, summer shopping carnival. Same professional design style as reference image.
Brand anniversary celebration marketing poster, milestone commemoration. Elegant design with brand heritage elements. Background: timeline design, milestone markers, elegant gradient. Foreground: anniversary badge, celebratory elements, growth imagery, achievement symbols. Color palette: brand colors with gold accents, sophisticated palette, milestone gold, commemorative blue. Bottom tagline in Chinese. Elegant and commemorative style, brand milestone celebration. Same professional design style as reference image.
Product launch event marketing poster, innovative and cutting-edge theme. Tech-forward design with product reveal elements. Background: dynamic abstract shapes, tech grid patterns, spotlight effects. Foreground: product silhouette, innovation symbols, futuristic elements, announcement graphics. Color palette: electric blue and purple, metallic silver, accent cyan, high-tech white. Bottom tagline in Chinese. Innovative and cutting-edge style, product launch event. Same professional design style as reference image.
Corporate annual meeting poster, year-end celebration theme. Professional yet festive design. Background: elegant gradient, geometric patterns, spotlight effects. Foreground: achievement elements, celebration symbols, teamwork imagery, award elements. Color palette: sophisticated blue and gold, professional tones, festive accents, elegant black. Bottom tagline in Chinese. Professional and celebratory style, annual corporate celebration. Same professional design style as reference image.
Corporate brand story marketing poster, professional enterprise introduction. Clean modern design with brand identity. Background: modern office environment, abstract corporate patterns, professional gradient. Foreground: brand logo placement, key metrics display, team collaboration imagery, product highlights. Color palette: professional blue and gray, accent orange for energy, clean white, trustworthy tones. Bottom tagline in Chinese. Professional and trustworthy style, corporate brand introduction. Same professional design style as reference image.
Brand philosophy marketing poster, core values representation. Artistic and meaningful design. Background: abstract art patterns, symbolic imagery, emotional gradient. Foreground: value symbols, meaningful icons, inspirational elements, brand essence representation. Color palette: brand colors, harmonious palette, emotional tones, meaningful accent colors. Bottom tagline in Chinese. Meaningful and inspiring style, brand philosophy expression. Same professional design style as reference image.
Team culture marketing poster, professional team showcase. Collaborative and dynamic design. Background: modern workspace, collaborative environment, warm office atmosphere. Foreground: team members, collaboration symbols, culture elements, workplace happiness imagery. Color palette: warm and inviting colors, professional tones, friendly palette, energetic accents. Bottom tagline in Chinese. Warm and professional style, team culture showcase. Same professional design style as reference image.
Xiaohongshu social media marketing poster, lifestyle content style. Clean and aesthetic design with trendy elements. Background: soft gradient or lifestyle setting, aesthetic atmosphere. Foreground: lifestyle imagery, trendy decorations, text space for engagement, aesthetic elements. Color palette: soft pastel tones, aesthetic colors, trendy palette, Instagram-worthy colors. Bottom tagline in Chinese. Aesthetic and lifestyle style, Xiaohongshu content. Same professional design style as reference image.
WeChat Official Account featured article image, wide format banner. Eye-catching headline design. Background: large gradient or relevant imagery, emotional atmosphere. Foreground: headline typography, attention-grabbing elements, brand colors, engaging imagery. Color palette: brand colors with high contrast, eye-catching palette, WeChat-friendly colors. Bottom tagline in Chinese. Professional and engaging style, WeChat article header. Same professional design style as reference image.
| 风格 | 主色 | 辅色 | 点缀色 |
|-----|-----|-----|-------|
| 城市营销 | 城市代表色 | 白/浅灰 | 金/铜 |
| 科技商务 | #102A43 深蓝 | #3BA0FF 科技蓝 | #FFD700 金 |
| 国潮中国风 | #C41E3A 中国红 | #FFD700 金 | #1E5631 翠绿 |
| 清新自然风 | #4A90A4 天蓝 | #7FBC8C 草绿 | #F5A623 暖橙 |
| 节日喜庆风 | #E53935 喜庆红 | #FFC107 金黄 | #4CAF50 生机绿 |
| 浪漫爱情风 | #E91E63 玫瑰粉 | #9C27B0 紫色 | #FFD700 金 |
必须遵守:
"C:/Program Files/Python311/python.exe" 而非 python3
~/.workbuddy/blobs/{前2位}/{完整blob_id}.jpg
.env 文件
AIMART_API_KEY=你的密钥
| 用户需求 | 触发词 | 推荐尺寸 | 风格 |
|---------|-------|---------|------|
| 城市宣传 | "城市营销"、"XX宣传" | 1024×1536 | 城市营销风 |
| 产品图 | "产品海报"、"卖货图" | 1024×1024 | 产品摄影风 |
| 节日营销 | "春节"、"中秋" | 1024×1536 | 节日喜庆风 |
| 促销 | "双11"、"618" | 1024×1536 | 活力促销风 |
| 小红书 | "小红书封面" | 1024×1536 | 社媒美学风 |
| 公众号 | "公众号首图" | 1024×512 | 内容横版风 |
| 品牌 | "品牌故事" | 1536×1024 | 品牌商务风 |
| 活动 | "年会"、"发布会" | 1536×1024 | 活动庆典风 |
共 1 个版本