Loading...
Loading...
Generate or edit images using AI models (FLUX, Gemini). Use for general-purpose image generation including photos, illustrations, artwork, visual assets, concept art, and any image that isn't a technical diagram or schematic. For flowcharts, circuits, pathways, and technical diagrams, use the scientific-schematics skill instead.
npx skill4agent add davila7/claude-code-templates generate-imagescripts/generate_image.py# Generate a new image
python scripts/generate_image.py "A beautiful sunset over mountains"
# Edit an existing image
python scripts/generate_image.py "Make the sky purple" --input photo.jpggenerated_image.png.envOPENROUTER_API_KEY=<key>.env.envOPENROUTER_API_KEY=your-api-key-hereexport OPENROUTER_API_KEY=your-api-key-here.envgoogle/gemini-3-pro-image-previewgoogle/gemini-3-pro-image-previewblack-forest-labs/flux.2-problack-forest-labs/flux.2-flexpython scripts/generate_image.py "Your prompt here"python scripts/generate_image.py "A cat in space" --model "black-forest-labs/flux.2-pro"python scripts/generate_image.py "Abstract art" --output artwork.pngpython scripts/generate_image.py "Make the background blue" --input photo.jpgpython scripts/generate_image.py "Add sunglasses to the person" --input portrait.png --model "black-forest-labs/flux.2-pro"python scripts/generate_image.py "Remove the text from the image" --input screenshot.png --output cleaned.pngpython scripts/generate_image.py "Image 1 description" --output image1.png
python scripts/generate_image.py "Image 2 description" --output image2.pngprompt--input-i--model-m--output-o--api-key# Generate a conceptual illustration for a paper
python scripts/generate_image.py "Microscopic view of cancer cells being attacked by immunotherapy agents, scientific illustration style" --output figures/immunotherapy_concept.png
# Create a visual for a presentation
python scripts/generate_image.py "DNA double helix structure with highlighted mutation site, modern scientific visualization" --output slides/dna_mutation.png# Title slide background
python scripts/generate_image.py "Abstract blue and white background with subtle molecular patterns, professional presentation style" --output slides/background.png
# Poster hero image
python scripts/generate_image.py "Laboratory setting with modern equipment, photorealistic, well-lit" --output poster/hero.png# Website or documentation images
python scripts/generate_image.py "Professional team collaboration around a digital whiteboard, modern office" --output docs/team_collaboration.png
# Marketing materials
python scripts/generate_image.py "Futuristic AI brain concept with glowing neural networks" --output marketing/ai_concept.pngimagescontent