بنقرة واحدة
ai-ggbond-poster-portrait
GPT Image 2女性肖像海报生成系统。生成具有摄影感、电影感、情绪感的高质量女性肖像海报,同时避免安全审核问题。支持云雾API直接对接。
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
GPT Image 2女性肖像海报生成系统。生成具有摄影感、电影感、情绪感的高质量女性肖像海报,同时避免安全审核问题。支持云雾API直接对接。
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
AI朱朱侠长图生成技能。使用云雾API(GPT-Image-2)生成有实际内容的信息图长图,支持小红书竖图、公众号横图、超长图等多种预设。HTML+CSS渲染为备选方案。
AI朱朱侠文章写作技能。从AI Native超级个体视角撰写微信公众号文章,涵盖AI产品拆解、场景解决方案、效率提升实战、产品方法论、行业观察、个人品牌故事。当用户说"写一篇关于XXX的文章""分析一下XXX产品""聊聊XXX""写我的故事""品牌故事"时使用。
GBrain 记忆层在 Hermes 环境下的安装、配置与内容灌入。当用户提到"brain""gbrain""灌内容""记忆层""知识库搭建"时触发。桥接 gbrain 上游技能(RESOLVER/signal-detector/brain-ops)与飞哥的 Hermes agent 生态。
检索、筛选并解读 GitHub Trending 热门开源项目,输出适合飞哥的 AI Native、开发者工具、Agent、MCP、LLM 应用趋势洞察。Use when 用户提到 GitHub Trending、热门开源项目、趋势仓库、AI 项目发现、开发者工具发现、开源项目选题、公众号选题、副业机会或需要从 GitHub 热榜找人脉/商机。
推送文章到微信公众号(草稿箱)。支持 Markdown/HTML 输入,自动图片上传(正文内联 + 封面),主题样式,API 模式(推荐)和 Chrome CDP 模式(备用)。
发布内容到 X (Twitter)。支持短帖(文字+图片+视频)、引用转发、长文(X Articles/Markdown)、帖子串(Thread)。对接 ai-ggbond-article-writer 和 ai-ggbond-x-followings-feed。当用户说"发到X""发推""tweet""publish to X"时触发。
| name | ai-ggbond-poster-portrait |
| description | GPT Image 2女性肖像海报生成系统。生成具有摄影感、电影感、情绪感的高质量女性肖像海报,同时避免安全审核问题。支持云雾API直接对接。 |
| triggers | ["肖像海报","女性写真","CCD风格","摄影感海报","电影感人像","情绪感写真","GPT Image 2 肖像","街拍风格"] |
| version | 2.1.0 |
| author | ai-ggbond |
生成具有摄影感、电影感、情绪感的高质量女性肖像海报,同时避免GPT Image 2的安全审核问题。支持云雾API直接对接,确保图像生成稳定可靠。
配置按以下优先级加载(高优先级覆盖低优先级):
| 优先级 | 来源 | 路径 | 说明 |
|---|---|---|---|
| 1 | 环境变量 | os.environ | 系统环境变量 |
| 2 | 项目级配置 | ./.ai-ggbond-skills/.env | 当前项目目录 |
| 3 | 用户级配置 | ~/.ai-ggbond-skills/.env | 用户主目录 |
方式一:手动创建配置文件(推荐)
# 用户级配置(推荐,所有项目共享)
mkdir -p ~/.ai-ggbond-skills
cat > ~/.ai-ggbond-skills/.env << 'EOF'
YUNWU_API_KEY=sk-8lcvuMcVjtK1RkRpa640NLTzCmg9uIZtqFnviqTOIBwKxstB
YUNWU_BASE_URL=https://yunwu.ai
YUNWU_DEFAULT_MODEL=gpt-image-2
EOF
⚠️ Hermes HOME路径陷阱:Hermes terminal中 $HOME 和 ~ 展开为 /Users/admin/.hermes/profiles/gongcheng/home(非 /Users/admin)。配置文件实际创建在 ~/.ai-ggbond-skills/.env = /Users/admin/.hermes/profiles/gongcheng/home/.ai-ggbond-skills/.env。skills目录在 /Users/admin/.hermes/skills/(symlink)。
# 多链路配置(自动切换,应对429负载饱和)
YUNWU_BASE_URLS=https://yunwu.ai,https://api.apiplus.org,https://api3.wlai.vip
# 图片生成端点(默认:/v1/images/generations)
YUNWU_IMAGE_ENDPOINT=/v1/images/generations
# 重试策略
YUNWU_MAX_RETRIES=3
YUNWU_RETRY_DELAY=8
# 图片间隔(秒,避免连续请求触发429)
YUNWU_IMAGE_INTERVAL=20
# 超时时间(秒)
YUNWU_IMAGE_TIMEOUT=300
# 代理策略(默认尊重系统代理,设置1禁用)
YUNWU_DISABLE_PROXY=0
摄影风格:{摄影风格}
写真方向:{写真方向}
场景方向:{场景方向}
服装方向:{服装方向}
气质标签:{气质标签}
五官方向:{五官方向}
身形方向:{身形方向}
线条强调:{线条强调}
镜头方向:{镜头方向}
姿态动作:{姿态动作}
光线氛围:{光线氛围}
滤镜效果:{滤镜效果}
画幅比例:{画幅比例}
补充要求:{补充要求}
摄影风格:柔光CCD风
滤镜效果:夜色柔光CCD色彩 + 奶白高光 + 轻颗粒 + 轻数码噪点
摄影风格:日系胶片风
滤镜效果:暖色调胶片质感 + 自然颗粒 + 色彩偏移
摄影风格:商业写真风
滤镜效果:高清商业质感 + 精致光线 + 干净背景
场景方向:雨夜车内副驾驶 / 车窗旁
光线氛围:雨夜路灯反射 + 车内冷暖混合柔闪
场景方向:咖啡馆窗边座位
光线氛围:午后自然光 + 室内暖光
场景方向:城市天台 / 日落时分
光线氛围:黄金时刻自然光 + 城市背景虚化
服装方向:深灰色修身上衣 + 宽松外套半披 + 高腰短裙
服装方向:白色棉麻衬衫 + 浅色牛仔裤 + 帆布鞋
服装方向:黑色针织衫 + 高腰阔腿裤 + 高跟鞋
气质标签:安静、疏离、情绪感、克制、有故事感
气质标签:温暖、治愈、亲切、自然、有亲和力
气质标签:时尚、高级、冷艳、自信、有气场
五官方向:清冷淡颜
五官方向:温柔暖颜
五官方向:混血高级颜
镜头方向:半身到大腿
镜头方向:全身
镜头方向:面部特写
摄影风格:柔光CCD风
写真方向:夜晚街头写真
场景方向:雨夜车内副驾驶 / 车窗旁
服装方向:深灰色修身上衣 + 宽松外套半披 + 高腰短裙
气质标签:安静、疏离、情绪感、克制、有故事感
五官方向:清冷淡颜
身形方向:匀称柔美
线条强调:中
镜头方向:半身到大腿
姿态动作:靠近车窗坐姿,身体轻微侧向镜头,一只手自然搭在腿边
光线氛围:雨夜路灯反射 + 车内冷暖混合柔闪
滤镜效果:夜色柔光CCD色彩 + 奶白高光 + 轻颗粒 + 轻数码噪点
画幅比例:9:16
补充要求:像雨夜车内被CCD相机随手拍下的一帧,安静、情绪化、电影感强
摄影风格:日系胶片风
写真方向:室内写真
场景方向:咖啡馆窗边座位
服装方向:白色棉麻衬衫 + 浅色A字裙
气质标签:安静、文艺、温柔、自然、有书卷气
五官方向:温柔暖颜
身形方向:纤细修长
线条强调:低
镜头方向:半身
姿态动作:坐在窗边,手捧咖啡杯,微微低头微笑
光线氛围:午后自然光从窗户洒入 + 室内暖光
滤镜效果:暖色调胶片质感 + 自然颗粒 + 轻微光晕
画幅比例:4:5
补充要求:像午后咖啡馆里被胶片相机记录的一刻,温暖、治愈、有生活气息
摄影风格:商业写真风
写真方向:户外写真
场景方向:城市天台 / 日落时分
服装方向:黑色吊带裙 + 高跟鞋
气质标签:时尚、高级、自信、有气场、女神感
五官方向:混血高级颜
身形方向:高挑匀称
线条强调:高
镜头方向:全身
姿态动作:站在天台边缘,风吹动头发,身体微微后仰
光线氛围:黄金时刻自然光 + 城市背景虚化
滤镜效果:高清商业质感 + 暖色调 + 精致光影
画幅比例:16:9
补充要求:像时尚杂志的封面大片,高级、大气、有视觉冲击力
adult female character, mature temperament, refined feminine beauty,
gentle confidence, elegant composure, natural smile,
healthy fullness, rounded and balanced figure, natural curves,
soft S-shaped posture, relaxed shoulders and neck,
high-fashion feeling, commercial portrait, brand lookbook,
fashion editorial, clean soft light, tasteful clothing,
character art design
temptation, provocation, seducing, nipples, nudity,
breast close-up, hip close-up, cleavage, private parts,
wet-body temptation, clothes slipping off, vulgar pose,
adult photoshoot, borderline adult content, fetish styling,
minor-looking girl, lolita, childlike but sexy
girl, lolita, childlike, cute and sexy20-year-old woman, adult female character, mature natural face shapeemphasize the chest/hips, very large chest, close-up of body partshealthy full upper body, natural rounded chest outline, balanced overall figureprovocative pose, lying face down, teasing movement, low-angle upward shotnatural standing pose, upright seated pose, slight side turn, calm elegant posturesexy photoshoot on a bed, wet body in bathroom, dim ambiguous roombright indoor space, soft bedroom-like scene, premium home interiorrevealing, extremely short, low-cut, transparent, clothes about to slip offelegant tailoring, soft material, fitted silhouette, tasteful and refinedsexy swimsuit beauty, hot body, wet body, low anglehigh-end swimwear brand lookbook, adult female model, healthy and confidentsexy looking back, emphasize the hips, low anglebody turns slightly, head looks back naturally, shoulders and neck relaxedemphasize S-curve, large chest, tiny waist, lifted hipsnatural soft S-shaped dynamic posture; shoulders, waist, hips create smooth visual rhythm"我想生成一个性感、有魅力的女性角色,身材很吸引人。"
sexy beautiful woman, hot body, large chest, lifted hips, seductive eyes, low-angle shot
A 20-year-old adult female character with a fresh, elegant temperament, a healthy full figure, and naturally flowing body curves. Her posture is open and relaxed, the shoulder and neck lines are soft, the upper body is naturally full, and the waist is gently defined. The image uses a high-fashion magazine portrait style, soft light, a clean background, and restrained composition.
import os, base64, time, requests
from pathlib import Path
def load_yunwu_config():
"""加载云雾API配置"""
config = {
"api_key": os.environ.get("YUNWU_API_KEY", ""),
"base_url": os.environ.get("YUNWU_BASE_URL", "https://yunwu.ai"),
"base_urls": os.environ.get("YUNWU_BASE_URLS", "https://yunwu.ai,https://api.apiplus.org,https://api3.wlai.vip"),
"endpoint": os.environ.get("YUNWU_IMAGE_ENDPOINT", "/v1/images/generations"),
"model": os.environ.get("YUNWU_DEFAULT_MODEL", "gpt-image-2"),
"max_retries": int(os.environ.get("YUNWU_MAX_RETRIES", "3")),
"retry_delay": int(os.environ.get("YUNWU_RETRY_DELAY", "8")),
"timeout": int(os.environ.get("YUNWU_IMAGE_TIMEOUT", "300")),
}
# 从配置文件读取(如果环境变量为空)
if not config["api_key"]:
config_paths = [
Path("./.ai-ggbond-skills/.env"),
Path("~/.ai-ggbond-skills/.env").expanduser(),
]
for config_path in config_paths:
if config_path.exists():
for line in config_path.read_text().splitlines():
if line.startswith("YUNWU_API_KEY="):
config["api_key"] = line.split("=", 1)[1].strip()
break
if config["api_key"]:
break
# 解析多链路
config["base_url_list"] = [u.strip() for u in config["base_urls"].split(",") if u.strip()]
return config
def generate_portrait(prompt, output_path, ratio="9:16", model=None):
"""
生成肖像海报
Args:
prompt: 完整的提示词
output_path: 输出图片路径
ratio: 画幅比例 (9:16, 16:9, 1:1, 4:5)
model: 模型名称(可选,默认使用配置)
Returns:
bool: 是否成功
"""
config = load_yunwu_config()
if not config["api_key"]:
print("❌ 错误:未配置YUNWU_API_KEY")
print("请创建配置文件 ~/.ai-ggbond-skills/.env 并添加:")
print("YUNWU_API_KEY=sk-your-api-key")
return False
# 根据比例设置尺寸
size_map = {
"9:16": "1024x1792",
"16:9": "1792x1024",
"1:1": "1024x1024",
"4:5": "1024x1280",
}
size = size_map.get(ratio, "1024x1792")
# 使用指定模型或默认模型
use_model = model or config["model"]
# 构建请求数据
data = {
"model": use_model,
"prompt": prompt,
"n": 1,
"size": size,
}
headers = {
"Authorization": f"Bearer {config['api_key']}",
"Content-Type": "application/json",
}
# 尝试所有链路
for base_url in config["base_url_list"]:
endpoint = f"{base_url}{config['endpoint']}"
print(f"🔄 尝试链路: {base_url}")
for attempt in range(config["max_retries"]):
try:
response = requests.post(
endpoint,
headers=headers,
json=data,
timeout=config["timeout"]
)
if response.status_code == 200:
result = response.json()
img_data = result["data"][0]
# 保存图片
if "b64_json" in img_data:
img_bytes = base64.b64decode(img_data["b64_json"])
with open(output_path, "wb") as f:
f.write(img_bytes)
elif "url" in img_data:
img_response = requests.get(img_data["url"], timeout=60)
with open(output_path, "wb") as f:
f.write(img_response.content)
print(f"✅ 图片已保存: {output_path}")
return True
elif response.status_code == 429:
print(f"⚠️ 链路负载饱和 (429),等待 {config['retry_delay'] * (attempt + 1)} 秒后重试...")
time.sleep(config["retry_delay"] * (attempt + 1))
continue
else:
print(f"❌ 请求失败: {response.status_code} - {response.text[:200]}")
break
except requests.exceptions.Timeout:
print(f"⏰ 请求超时,重试 {attempt + 1}/{config['max_retries']}")
time.sleep(config["retry_delay"])
continue
except Exception as e:
print(f"❌ 请求异常: {e}")
break
print("❌ 所有链路均失败")
return False
# 使用示例
if __name__ == "__main__":
# 构建提示词
prompt = """A 22-year-old adult female character with a petite and delicate build, youthful appearance, and gentle sweet temperament. She is sitting on a comfortable sofa in a cozy living room, looking directly at the camera with a soft natural smile.
Photography style: Soft CCD aesthetic with vintage digital texture
Scene: Living room sofa with warm home interior
Clothing: Cream-colored knit sweater paired with casual shorts, comfortable and relaxed styling
Temperament: Gentle, sweet, approachable, warm, and friendly
Facial features: Soft rounded face with delicate features, natural makeup
Body type: Petite and slender, balanced proportions
Camera angle: Half-body to thigh shot
Pose: Sitting naturally on the sofa, body slightly turned toward the camera, hands resting comfortably on her lap
Lighting: Soft indoor natural light mixed with warm ambient lighting, gentle shadows
Filter effect: CCD color palette with creamy highlights, light film grain, subtle digital noise
The image should look like a casual CCD camera snapshot taken at home, warm and intimate, with a nostalgic digital aesthetic. Soft focus, gentle colors, and a cozy atmosphere."""
# 生成图片
output_path = "portrait_ccd_style.png"
success = generate_portrait(prompt, output_path, ratio="9:16")
if success:
print("🎉 生成完成!")
else:
print("💥 生成失败,请检查配置和网络")
将上述代码保存为 generate_portrait.py,然后运行:
python3 generate_portrait.py
| 比例 | 尺寸 | 适用场景 |
|---|---|---|
| 9:16 | 1024x1792 | 竖版海报、手机壁纸、小红书 |
| 16:9 | 1792x1024 | 横版海报、桌面壁纸、公众号封面 |
| 1:1 | 1024x1024 | 正方形、朋友圈、头像 |
| 4:5 | 1024x1280 | 竖版、Instagram |
| 模型 | 特点 | 推荐场景 |
|---|---|---|
| gpt-image-2 | 默认推荐,稳定性好 | 大多数场景 |
| gpt-image-1 | 上一代,更稳定 | 敏感内容、政治时事 |
| gemini-2.5-flash-image | 速度快 | 快速预览 |
| dall-e-3 | 英文渲染好 | 英文内容 |
| qwen-image-edit-2509 | 中文优化 | 中文文字为主 |
"当前分组上游负载已饱和""sensitive words detected""Incorrect API key provided: dummy"references/openai-codex-ecosystem.md。insuffi 开头时,需充值。当前价格约 $0.004/张。生成具有以下特点的女性肖像海报:
references/ccd-style-examples.md — CCD风格提示词库、中英术语映射、场景/姿态/光线/滤镜模板references/yunwu-api-integration.md — 云雾API集成指南、配置说明、错误处理、脚本使用references/openai-codex-ecosystem.md — OpenAI Codex 工具生态调研:Codex Desktop/CLI/API 区别,为什么 Codex 不能生成图片基于@liyue_ai的GPT Image 2女性肖像提示词安全指南。 基于ai-ggbond-sticker-writer的云雾API对接方案。