From majestic-creative
Generates images from text prompts using Google's Gemini API, saving to a specified output path. Supports optional --aspect ratio and --size options.
npx claudepluginhub majesticlabs-dev/majestic-marketplace --plugin majestic-creative<prompt> <output-path> [--aspect RATIO] [--size SIZE]# Generate Image with Gemini Generate images from text prompts using Google's Gemini API. ## Arguments <input_arguments> $ARGUMENTS </input_arguments> **Format:** `<prompt> <output-path> [options]` **Options:** - `--aspect` - Aspect ratio: 1:1, 16:9, 9:16, 3:2, 2:3, 4:3, 3:4, 4:5, 5:4, 21:9 - `--size` - Resolution: 1K, 2K, 4K **Examples:** ## Prerequisites - `GEMINI_API_KEY` environment variable must be set - Python 3.10+ with `google-genai` and `Pillow` packages ## Process ### Step 1: Validate Environment If missing, inform user: ### Step 2: Parse Arguments Extract from `$...
/gemini-imageGenerates images from text descriptions using Google Gemini AI. Interactively selects model (e.g., gemini-3.1-flash-image-preview) and aspect ratio (e.g., 1:1). Requires GEMINI_API_KEY and Python 3.
/imageGenerates images using Codex CLI's /imagen command with automatic mode detection, image-studio prompts, and post-processing prohibition guard. Accepts natural language image requests.
Share bugs, ideas, or general feedback.
Generate images from text prompts using Google's Gemini API.
<input_arguments> $ARGUMENTS </input_arguments>
Format: <prompt> <output-path> [options]
Options:
--aspect - Aspect ratio: 1:1, 16:9, 9:16, 3:2, 2:3, 4:3, 3:4, 4:5, 5:4, 21:9--size - Resolution: 1K, 2K, 4KExamples:
/majestic-creative:generate-image "A cat in space" cat.jpg
/majestic-creative:generate-image "Epic landscape" landscape.jpg --aspect 16:9
/majestic-creative:generate-image "Product mockup" product.jpg --aspect 1:1 --size 2K
GEMINI_API_KEY environment variable must be setgoogle-genai and Pillow packagespython -c "import os; print('ok' if os.environ.get('GEMINI_API_KEY') else 'missing')"
If missing, inform user:
GEMINI_API_KEY not set. Get one at https://aistudio.google.com/apikey
Extract from $ARGUMENTS:
--aspect value (optional)--size value (optional)Use the bundled script (located at skills/gemini-image-coder/scripts/generate_image.py in the plugin):
python generate_image.py "<prompt>" "<output-path>" [--aspect <ratio>] [--size <size>]
Replace placeholders with actual values from the parsed arguments.
Check that the output file was created:
ls -la <output-path>
Report success with file path and size.
If you get "API returned no content", wait 2-3 seconds and retry.
If prompt is rejected, suggest modifying the prompt to be more generic.
When generating multiple images, add 2-second delays between requests:
sleep 2
**Generated:** `<output-path>`
**Size:** <file-size>
**Prompt:** "<prompt>"
[Show the image if in a context that supports it]