← 返回
内容创作 Key 中文

Gemini Nano Images

Generate ultra-realistic images and Instagram content using Gemini 2.0 Flash Experimental. Use when creating photorealistic images, social media content, or...
利用 Gemini 2.0 Flash Experimental 生成超写实图像和 Instagram 内容。适用于创作照片级写实图像、社交媒体内容等。
vitja1988
内容创作 clawhub v1.0.0 1 版本 99872 Key: 需要
★ 1
Stars
📥 760
下载
💾 66
安装
1
版本
#latest

概述

Gemini Nano Images

Generate ultra-realistic, photorealistic images using Google's Gemini 2.0 Flash Experimental model with native image generation capabilities.

Quick Start

1. Set API Key

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 Full 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, --output DIR - Output directory (default: current)
  • -k, --api-key KEY - Gemini API key
  • --style {realistic,artistic,minimal} - Style preset

Example:

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, --output DIR - Output directory (default: ~/.openclaw/workspace/assets)
  • -k, --api-key KEY - Gemini API key

Example:

python3 scripts/generate_instagram_post.py "Organized family calendar" --mood productive

Mood Presets

MoodDescription
-------------------
inspiringUplifting, motivational, golden hour
cozyWarm, comfortable, soft lighting
energeticVibrant, dynamic, bright colors
calmPeaceful, serene, soft pastels
familyLoving family moments, candid
productiveOrganized, clean, modern aesthetic

Output

  • Images: Saved as PNG with timestamp prefix
  • Captions: Saved as .txt file alongside image
  • Location: Default is ~/.openclaw/workspace/assets

Integration with Instagram Workflow

Generated content can be directly used with the Social Media Suite:

  1. Generate content:

```bash

python3 scripts/generate_instagram_post.py "Weekend family adventure"

```

  1. Results saved to assets folder, ready for posting
  1. Use with instagram-poster or instagrapi workflow

Stock-Only 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 Stock
  • stock_only - Nur Stockfotos aus assets/stock/
  • ai_only - Nur KI-generierte Bilder

Wichtig: Bei Stockfotos kein Wasserzeichen (Logo) - sieht authentischer aus!

Requirements

pip install google-genai

Model Details

  • Model: Gemini 2.0 Flash Experimental
  • Capability: Native image generation
  • Resolution: Up to 1024x1024
  • Style: Photorealistic by default

See references/gemini_api.md for API details.

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-03-30 07:26 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

Crypto Alert Agent

vitja1988
一个主动监控加密货币价格、追踪投资组合并通过Telegram发送提醒的代理。
★ 0 📥 602
content-creation

Humanizer

biostartechnology
消除AI写作痕迹,使文本更自然真实。基于维基百科"AI写作特征"指南,识别并修正夸张象征、宣传用语、肤浅-ing分析、模糊归因、破折号滥用、三项排比、AI词汇、负面平行结构及冗长连接词等模式。
★ 860 📥 199,942
content-creation

Baidu Wenku AIPPT

ide-rea
使用百度文库 AI 智能生成 PPT,自动根据内容选择模板。
★ 66 📥 46,215