Gemini Nano Images — Gemini工具
v1.0.0[AI辅助] Generate ultra-realistic images and Instagram content using Gemini 2.0 Flash Experimental. Use when creating photorealistic images, social media content, or...
详细分析 ▾
运行时依赖
版本
Ultra-realistic image generation with Gemini 2.5 Flash Image + Instagram content creation
安装命令 点击复制
技能文档
Generate ultra-realistic, photorealistic images using Google's Gemini 2.0 Flash Experimental model with native image generation capabilities.
Quick 开始
1. 设置 API 键
export GEMINI_API_KEY="your-api-key-here"
Get your API key at: https://aistudio.google.com/app/apikey
2. Generate Single Image
python3 scripts/generate_image.py "A cozy family breakfast scene with warm morning light"
3. Generate 满 Instagram Post
python3 scripts/generate_instagram_post.py "Morning routine with kids" --mood cozy
Scripts
generate_image.py
Creates ultra-realistic images from text prompts.
Usage:
python3 scripts/generate_image.py "PROMPT" [options]
Options:
-o, --输出 DIR- 输出 directory (默认: current)-k, --api-键 键- Gemini API 键--样式 {realistic,artistic,minimal}- 样式 preset
示例:
python3 scripts/generate_image.py "Father reading bedtime story to child" -o ~/images
generate_instagram_post.py
Creates complete Instagram posts: image + caption.
Usage:
python3 scripts/generate_instagram_post.py "TOPIC" [options]
Options:
-m, --mood MOOD- Post mood: inspiring, cozy, energetic, calm, family, productive-o, --输出 DIR- 输出 directory (默认: ~/.openclaw/workspace/assets)-k, --api-键 键- Gemini API 键
示例:
python3 scripts/generate_instagram_post.py "Organized family calendar" --mood productive
Mood Presets
| Mood | Description |
|---|---|
inspiring | Uplifting, motivational, golden hour |
cozy | Warm, comfortable, soft lighting |
energetic | Vibrant, dynamic, bright colors |
calm | Peaceful, serene, soft pastels |
family | Loving family moments, candid |
productive | Organized, clean, modern aesthetic |
输出
- Images: Saved 作为 PNG 带有 时间戳 prefix
- Captions: Saved 作为 .txt file alongside image
- Location: 默认
~/.openclaw/workspace/assets
Integration 带有 Instagram Workflow
Generated content can be directly used with the Social Media Suite:
- Generate content:
python3 scripts/generate_instagram_post.py "Weekend family adventure"
- Results saved 到 assets folder, 就绪 对于 posting
- 使用 带有 instagram-poster 或 instagrapi workflow
Stock-仅 Mode (Community Building Phase)
Für 1-2 Wochen nur Stockfotos posten (keine KI-Generierung):
# Stock-Only Mode für 14 Tage aktivieren
cd ~/.openclaw/workspace/skills/ig-automation
python3 smart_poster_v4.py --set-mode stock_only --stock-days 14# Stockfotos in Ordner legen
mkdir -p assets/stock
cp ~/deine-stockfotos/*.jpg assets/stock/
# Jetzt werden nur Stockfotos gepostet (zufällige Auswahl, keine Doppelungen)
python3 smart_poster_v4.py
# Nach 14 Tagen automatischer Wechsel zu "auto" (KI + Stock)
Modes:
auto- Bevorzugt KI, Fallback zu Stockstock_only- Nur Stockfotos ausassets/stock/ai_only- Nur KI-generierte Bilder
Wichtig: Bei Stockfotos kein Wasserzeichen (Logo) - sieht authentischer aus!
Requirements
pip install google-genai
模型 Details
- 模型: Gemini 2.0 Flash Experimental
- Capability: Native image generation
- Resolution: Up 到 1024x1024
- 样式: Photorealistic 由 默认
See references/gemini_api.md for API details.
免费技能或插件可能存在安全风险,如需更匹配、更安全的方案,建议联系付费定制