一键导入
generate-image
AI image generation CLI using Gemini. Use when generating images, checking syntax for resolution, aspect ratio, and reference image options.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
AI image generation CLI using Gemini. Use when generating images, checking syntax for resolution, aspect ratio, and reference image options.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | generate-image |
| description | AI image generation CLI using Gemini. Use when generating images, checking syntax for resolution, aspect ratio, and reference image options. |
| disable-model-invocation | false |
Uses Google Gemini (gemini-3-pro-image-preview) to generate images from text prompts.
codev generate-image "<prompt>" [options]
-o, --output <file> # Output file path (default: output.png)
-r, --resolution <res> # Resolution: 1K, 2K, 4K (default: 1K)
-a, --aspect <ratio> # Aspect ratio (default: 1:1)
--ref <image> # Reference image (repeatable, max 14)
1:1 | 16:9 | 9:16 | 3:4 | 4:3 | 3:2 | 2:3
# Basic generation
codev generate-image "A sunset over mountains"
# High-res widescreen
codev generate-image "A futuristic city" -r 4K -a 16:9 -o city.png
# With reference images (style transfer)
codev generate-image "Same style but with cats" --ref style.png --ref layout.png
# Prompt from file
codev generate-image prompt.txt -o result.png
Requires GEMINI_API_KEY or GOOGLE_API_KEY environment variable.
Get a key at https://aistudio.google.com/apikey
.txt file path (auto-detected by extension)output.png in current directory — use -o to changeAgent Farm CLI quick reference. Use when running af commands to check correct syntax, subcommands, and flags. Prevents guessing at command names.
Codev project management CLI quick reference. Use when running codev commands to check correct syntax for init, adopt, update, and doctor.
AI consultation CLI quick reference. Use when running consult commands to check syntax for general queries, protocol reviews, and stats across Gemini, Codex, and Claude.
Protocol orchestrator CLI quick reference. Use when running porch commands to check correct syntax for status, run, done, approve, next, and pending.