generate-image
Generate AI images with FLUX and Gemini
Also available from: davila7
Create high-quality images for presentations, documents, and publications using AI models. Generate original artwork or edit existing images with simple text prompts. Access FLUX and Gemini models through OpenRouter API.
Download the skill ZIP
Upload in Claude
Go to Settings → Capabilities → Skills → Upload skill
Toggle on and start using
Test it
Using "generate-image". Generate an image of a molecular structure with glowing bonds, scientific illustration style
Expected outcome:
- Model: google/gemini-3-pro-image-preview
- Image saved to: generated_image.png
- Generation time: ~15 seconds
Using "generate-image". Edit this image: Make the sky purple with sunset colors, input: landscape.png
Expected outcome:
- Model: google/gemini-3-pro-image-preview
- Input image: landscape.png
- Image saved to: generated_image.png
Security Audit
SafeAll 153 static findings are FALSE POSITIVES. The skill is a legitimate image generation tool using OpenRouter API. The static scanner flagged standard API key handling, base64 image encoding, and documentation code blocks as suspicious patterns. No malicious intent or exfiltration behavior was found. The code performs exactly as documented - generating images via API calls to https://openrouter.ai/api/v1/chat/completions.
Risk Factors
🌐 Network access (1)
📁 Filesystem access (1)
🔑 Env variables (1)
⚙️ External commands (1)
Quality Score
What You Can Build
Create figures for papers
Generate conceptual illustrations for research papers and presentations with scientific visualization style.
Produce visual assets
Create illustrations, artwork, and marketing visuals for documents, websites, and campaigns.
Design presentation graphics
Generate hero images, backgrounds, and visual aids for slides, posters, and educational materials.
Try These Prompts
Generate an image of [subject] in [style] style, [additional details]
[Scientific concept description], scientific illustration style, clean and professional, suitable for academic presentation
Edit this image: [specific instructions for changes to the input image]
Generate [description] using model black-forest-labs/flux.2-pro, output to [filename].png
Best Practices
- Be specific in prompts - describe subjects, styles, lighting, and composition details
- Use gemini-3-pro or flux.2-pro models for image editing tasks
- Check OpenRouter pricing page to understand model costs before generation
Avoid
- Do not use for technical diagrams, flowcharts, or schematics - use scientific-schematics skill instead
- Do not share API keys in prompts or scripts - store in .env file
- Do not expect photorealistic output from FLUX.2-flex - use Pro models for higher quality
Frequently Asked Questions
Which model should I use for image editing?
How do I set up my OpenRouter API key?
Can I edit images with this skill?
What image formats are supported?
Why should I not use this for diagrams?
How long does image generation take?
Developer Details
Author
K-Dense-AILicense
MIT license
Repository
https://github.com/K-Dense-AI/claude-scientific-skills/tree/main/scientific-skills/generate-imageRef
main
File structure