Loading...
Loading...
Compare original and translation side by side
GEMINI_API_KEYexport GEMINI_API_KEY="your-key-here"GEMINI_API_KEYexport GEMINI_API_KEY="your-key-here"python3 plugins/design-assets/skills/gemini-image-gen/scripts/generate-image.py \
--prompt "Soft-focus atmospheric background, warm gold and cream botanical elements, luxury spa aesthetic, wide landscape" \
--output public/images/hero.png \
--model gemini-2.5-flash-imagepython3 .../generate-image.py --prompt "..." --output public/images/hero.png --count 3python3 plugins/design-assets/skills/gemini-image-gen/scripts/generate-image.py \
--prompt "Soft-focus atmospheric background, warm gold and cream botanical elements, luxury spa aesthetic, wide landscape" \
--output public/images/hero.png \
--model gemini-2.5-flash-imagepython3 .../generate-image.py --prompt "..." --output public/images/hero.png --count 3
Style matching from a reference image:
```bash
python3 .../generate-image.py \
--prompt "Same warm lighting and colour palette, but showing a massage treatment room" \
--reference public/images/existing-hero.jpg \
--output public/images/services-bg.png \
--model gemini-3-pro-image-preview
根据参考图匹配风格生成:
```bash
python3 .../generate-image.py \
--prompt "Same warm lighting and colour palette, but showing a massage treatment room" \
--reference public/images/existing-hero.jpg \
--output public/images/services-bg.png \
--model gemini-3-pro-image-previewpython3 plugins/design-assets/skills/image-processing/scripts/process-image.py \
optimise public/images/hero.png --output public/images/hero.webp --width 1920python3 plugins/design-assets/skills/image-processing/scripts/process-image.py \
optimise public/images/hero.png --output public/images/hero.webp --width 1920| Preset | Base Prompt |
|---|---|
| "Wide atmospheric background, soft-focus, [colour tones], [mood], landscape 1920x1080" |
| "Clean branded card background, [brand colours], subtle gradient, 1200x630" |
| "Professional stock-style photo of [subject], natural lighting, warm tones" |
| "Subtle repeating texture, [material], seamless tile, muted [colour]" |
| "Product photography, [item] on [surface], soft studio lighting, clean background" |
| 预设名称 | 基础提示词 |
|---|---|
| "Wide atmospheric background, soft-focus, [colour tones], [mood], landscape 1920x1080" |
| "Clean branded card background, [brand colours], subtle gradient, 1200x630" |
| "Professional stock-style photo of [subject], natural lighting, warm tones" |
| "Subtle repeating texture, [material], seamless tile, muted [colour]" |
| "Product photography, [item] on [surface], soft studio lighting, clean background" |
| Use case | Model | Cost |
|---|---|---|
| Drafts, quick placeholders | | Free (~500/day) |
| Final client assets | | ~$0.04/image |
| Style-matched variants | | ~$0.04/image |
| 使用场景 | 模型 | 成本 |
|---|---|---|
| 草稿、快速占位图 | | 免费(每日约500次调用) |
| 最终客户资产 | | 约0.04美元/张 |
| 风格匹配变体图 | | 约0.04美元/张 |
| When | Read |
|---|---|
| Building effective prompts | references/prompting-guide.md |
| 适用场景 | 参考文档 |
|---|---|
| 构建有效的提示词 | references/prompting-guide.md |