Generate a graphic image from any text or topic using Gemini API. A quick, single-image generator for visual summaries, concept illustrations, diagrams, and simple graphics. Use this skill whenever the user wants to create a graphic, illustration, visual, poster, or image from text content — even if they just say "make a picture of this" or "visualize this". Triggers on phrases like "generate a graphic", "create an image", "make a visual", "illustrate this", "draw this", or "visualize".
Generate a single graphic image from text using the Gemini image generation API. This is the lightweight counterpart to nano-banana-infographic — one image, one language, minimal ceremony.
Set one of these environment variables with a valid Gemini API key:
GEMINI_API_KEYGOOGLE_API_KEYNANOBANANA_GEMINI_API_KEYRead what the user wants to visualize. Identify:
If the user's request is vague, ask one clarifying question — but default to a clean, modern infographic style if they don't specify.
Size: Did the user specify dimensions or an aspect ratio? Common options:
1920x1080 — landscape (default)1080x1920 — portrait / mobile1080x1080 — square / social media1200x628 — OG image / link previewIf no size is mentioned, default to 1920x1080 landscape.
Write a detailed image generation prompt that tells Gemini exactly what to create. A good prompt includes:
Save the prompt to a temporary file for the script to read.
Example prompt structure:
Generate a [WIDTHxHEIGHT] [orientation] infographic image.
Topic: [topic]
Style: Modern flat design with white background, corporate blue (#3B5998) headings,
accent colors (#FF6B6B, #FFD93D, #6C5CE7). Clean geometric sans-serif typography.
Layout: [describe the layout — e.g., "3 columns flowing left to right"]
Content:
- Title: [title]
- Section 1: [heading + key points]
- Section 2: [heading + key points]
- Section 3: [heading + key points]
Include flat vector icons next to each section heading.
Add subtle decorative elements (dots, wavy lines) in the background.
All text must be clearly readable.
Run the generation script:
python3 <skill-path>/scripts/generate_image.py \
--prompt-file <prompt-file> \
--output <output-dir>/graphic.png \
--model gemini-2.5-flash-image
For higher quality results (at the cost of speed), use --model gemini-3-pro-image-preview.
Show the generated image to the user. Offer: