Gemini image generator

From oyi77/1ai-skills · View interactive version

Gemini image generator is an AI agent skill from the GitHub repository oyi77/1ai-skills. Use when generating professional posed product images for e-commerce using Gemini AI with optimized prompts

How to use this skill

Skill file

Gemini Image Generator Skill

Overview

Generate professional posed product images using Gemini AI with optimized prompts for e-commerce and content creation.

Anti-Rationalization Table

| Rationalization | Reality |

|---|---|

| "I'll figure it out as I go" | A structured approach saves time and reduces errors. Follow the workflow in this skill rather than improvising. |

| "I already know this topic" | Familiarity breeds shortcuts. Use the checklist to verify you haven't missed critical steps. |

| "This doesn't apply to my situation" | The patterns here generalize across contexts. Adapt, don't skip — the underlying principles hold. |

| "One more tool will fix it" | Adding complexity rarely solves process gaps. Master the core workflow first. |

When to Use

Trigger phrases:

When NOT to Use

Quick Reference

# Generate prompt
python prompt_optimizer.py --category fashion --product "white dress"

# Full workflow
python workflow_runner.py --pose pose.jpg --product dress.jpg --category fashion

Common Mistakes

Workflow

Input: Pose Model + Product Image
    ↓
Gemini Link (c7150b8213a4) → AI Image Generation
    ↓
Output: Multiple Posed Product Images
    ↓
ChatGPT → Video Scene Generation
    ↓
TikTok Content (compliant)

Quick Start

Get started with gemini-image-generator in three steps.

  1. Install dependencies: pip install -r requirements.txt
  2. Configure settings in config.yaml
  3. Run: python main.py --mode gemini-image-generator

Verify setup:

python main.py --check-config
python main.py --run

Getting Started

  1. Install dependencies: pip install -r requirements.txt
  2. Configure settings in config.yaml
  3. Run: python main.py --mode gemini-image-generator

First Run

# Verify setup
python main.py --check-config
# Execute
python main.py --run

1. Prepare Images

2. Generate Instruction

Use the prompt optimizer:

python prompt_optimizer.py --category fashion --style minimal --product "white dress"

3. Run in Gemini

  1. Open: https://gemini.google.com/share/c7150b8213a4
  2. Upload pose model image
  3. Upload product image
  4. Paste generated instruction
  5. Generate images

4. Download Results

Usage

Command Line

# Generate instruction only
python prompt_optimizer.py --category fashion --product "summer dress"

# Full workflow (with browser automation)
python workflow_runner.py --pose pose.jpg --product dress.jpg --category fashion

Python API

from prompt_optimizer import generate_instruction

instruction = generate_instruction(
    category="fashion",
    product_name="summer dress",
    style="minimal",
    lighting="soft"
)
print(instruction)

Categories

Available templates:

Output Format

REFINER PRODUKSI Template:

REFINER PRODUKSI: [Environment] | Rasio: 9:16 | Lighting: [Setup] | Intruksi tambahan: [Detail]

Configuration

Edit config.yaml:

gemini:
  shared_link: "https://gemini.google.com/share/c7150b8213a4"
  output_ratio: "9:16"
  
categories:
  fashion:
    environments: ["clean white studio", "minimal gray", "premium lifestyle"]
    lighting: ["soft diffused", "studio lighting", "natural daylight"]
    
defaults:
  ratio: "9:16"
  style: "premium"
  lighting: "soft diffused"

Integration

Next Step: ChatGPT Video Generation

Send Gemini output to ChatGPT with:

Generate video scene descriptions from these images. 
Style: TikTok viral, 15-30 seconds, hook in first 3 seconds.

TikTok Compliance

Files

License

MIT - Free for personal and commercial use.

Common Rationalizations

| Rationalization | Reality |

|---|---|

| "I'll do this later" | Explain why this excuse is wrong for this skill |

| "This is simple, skip steps" | Even simple tasks benefit from process |

Red Flags

Verification

After completing this skill, confirm:

Process

  1. Analyze the task requirements
  2. Apply domain expertise
  3. Verify output quality
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.