generate-image
Generate or edit images using AI models (FLUX, Gemini).
Skill by lamm-mit
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/lamm-mit-generate-image
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: writing, research
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
- Runs as
- Python package
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/generate-image
What's inside
- Skill name
generate-image- Description
- 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 is not a technical diagram or schematic. For flowcharts, circuits, pathways, and technical diagrams, use the scientific-schematics skill instead.
- License
- MIT
- Compatibility
- Requires an OpenRouter API key
- Metadata
- skill-author: K-Dense Inc.
- Instructions
- 177 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (3)
- SKILL.md
- generate_image.cpython-313.pyc · scripts/__pycache__/
- generate_image.py · scripts/
SKILL.md (first lines)
# Generate Image Generate and edit high-quality images using OpenRouter's image generation models including FLUX.2 Pro and Gemini 3 Pro. ## When to Use This Skill **Use generate-image for:** - Photos and photorealistic images - Artistic illustrations and artwork - Concept art and visual concepts - Visual assets for presentations or documents - Image editing and modifications - Any general-purpose image generation needs **Use scientific-schematics instead for:** - Flowcharts and process diagrams - Circuit diagrams and electrical schematics - Biological pathways and signaling cascades - System architecture diagrams - CONSORT diagrams and methodology flowcharts - Any technical/schematic diagrams ## Quick Start Use the `scripts/generate_image.py` script to generate or edit images: ```bash # 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.jpg ``` This generates/edits an image and saves it as `generated_image.png` in the current directory. ## API Key Setup **CRITICAL**: The script requires an OpenRouter API key. Before running, check if the user has configured their API key: 1. Look for a `.env` file in the project directory or parent directories 2. Check for `OPENROUTER_API_KEY=<key>` in the `.env` file 3. If not found, inform the user they need to: - Create a `.env` file with `OPENROUTER_API_KEY=your-api-key-here` - Or set the environment variable: `export OPENROUTER_API_KEY=your-api-key-here` - Get an API key from: https://openrouter.ai/keys The script will automatically detect the `.env` file and provide clear error messages if the API key is missing. ## Model Selection **Default model**: `google/gemini-3-pro-image-preview` (high quality, recommended) **Available models for generation and editing**: - `google/gemini-3-pro-image-preview` - High quality, supports generation + editing - `black-forest-labs/flux.2-pro` - Fast, high quality, supports generation + editing **Generation only**: - `black-forest-labs/flux.2-flex` - Fast and cheap, but not as high quality as pro Select based on: - **Quality**: Use gemini-3-pro or flux.2-pro - **Editing**: Use gemini-3-pro or flux.2-pro (both support image editing) - **Cost**: Use flux.2-flex for generation only ## Common Usage Patterns ### Basic generation ```bash python scripts/generate_image.py "Your prompt here" ``` ### Specify model ```bash python scripts/generate_image.py "A cat in space" --model "black-forest-labs/flux.2-pro" ``` ### Custom output path ```bash python scripts/generate_image.py "Abstract art" --output artwork.png ``` ### Edit an existing image ```bash python scripts/generate_image.py "Make the background blue" --input photo.jpg ``` ### Edit with a specific model ```bash python scripts/generate_image.py "Add sunglasses to the person" --input portrait.png --model "black-forest-labs/flux.2-pro" ``` ### Edit with custom output ```bash python scripts/generate_image.py "Remove the text from the image" --input screenshot.png --output cleaned.png ``` ### Multiple images Run the script multiple times with different prompts or output paths: ```bash python scripts/generate_image.py "Image 1 description" --output image1.png python scripts/generate_image.py "Image 2 description" --output image2.png ``` ## Script Parameters - `prompt` (required): Text description of the image to generate, or editing instructions - `--input` or `-i`: Input image path for editing (enables edit mode) - `--model` or `-m`: OpenRouter model ID (default: google/gemini-3-pro-image-preview) - `--output` or `-o`: Output file path (default: generated_image.png) - `--api-key`: OpenRouter API key (overrides .env file) ## Example Use Cases ### For Scientific Documents ```bash # 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
From lamm-mit/scienceclaw, MIT.
More from lamm-mit/scienceclaw
- 0.516score
drugbank-database
lamm-mit
Access and analyze comprehensive drug information from the DrugBank database including drug properties, interactions, targets, pathways, chemical structures…
SkillCFreshness: C★ 250Claude Code +9 - 0.516score
jax-modal-analysis
lamm-mit
3D tetrahedral FEM modal analysis of a membrane STL.
SkillCFreshness: C★ 250Claude Code +9 - 0.516score
disease-research
lamm-mit
Generate comprehensive disease research reports using 100+ ToolUniverse tools.
SkillCFreshness: C★ 250Claude Code +9 - 0.516score
drug-research
lamm-mit
Generates comprehensive drug research reports with compound disambiguation, evidence grading, and mandatory completeness sections.
SkillCFreshness: C★ 250Claude Code +9 - 0.516score
fem-analysis
lamm-mit
Modal analysis of a membrane STL using Kirchhoff plate FEM (scipy eigensolver).
SkillCFreshness: C★ 250Claude Code +9 - 0.516score
geometry-generator
lamm-mit
Generate parametric bioinspired ribbed membrane STL geometry via LLM-guided design.
SkillCFreshness: C★ 250Claude Code +9 - 0.516score
ase
lamm-mit
Atomic Simulation Environment (ASE) for computational materials science.
SkillCFreshness: C★ 250Claude Code +9 - 0.516score
askcos
lamm-mit
Retrosynthetic template relevance prediction using a locally deployed ASKCOS TorchServe service.
SkillCFreshness: C★ 250Claude Code +9 - 0.516score
pylabrobot
lamm-mit
Vendor-agnostic lab automation framework.
SkillCFreshness: C★ 250Claude Code +9 - 0.516score
biorxiv-database
lamm-mit
Efficient database search tool for bioRxiv preprint server.
SkillCFreshness: C★ 250Claude Code +9 - 0.516score
esm
lamm-mit
Comprehensive toolkit for protein language models including ESM3 (generative multimodal protein design across sequence, structure, and function) and ESM C…
SkillCFreshness: C★ 250Claude Code +9 - 0.516score
modal
lamm-mit
Run Python code in the cloud with serverless containers, GPUs, and autoscaling.
SkillCFreshness: C★ 250Claude Code +9
Signals
- Stars
- 250
- Forks
- 47
- Open issues
- 1
- Last commit (this folder)
- Mar 14, 2026 (7 months ago)
- Last release
- Jun 23, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/lamm-mit/scienceclaw
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from lamm-mit
- 0.516score
biorxiv-database
lamm-mit
Efficient database search tool for bioRxiv preprint server.
SkillCFreshness: C★ 250Claude Code +9 - 0.516score
disease-research
lamm-mit
Generate comprehensive disease research reports using 100+ ToolUniverse tools.
SkillCFreshness: C★ 250Claude Code +9 - 0.516score
askcos
lamm-mit
Retrosynthetic template relevance prediction using a locally deployed ASKCOS TorchServe service.
SkillCFreshness: C★ 250Claude Code +9 - 0.516score
ase
lamm-mit
Atomic Simulation Environment (ASE) for computational materials science.
SkillCFreshness: C★ 250Claude Code +9 - 0.516score
pylabrobot
lamm-mit
Vendor-agnostic lab automation framework.
SkillCFreshness: C★ 250Claude Code +9 - 0.516score
drug-research
lamm-mit
Generates comprehensive drug research reports with compound disambiguation, evidence grading, and mandatory completeness sections.
SkillCFreshness: C★ 250Claude Code +9
Cite this page
generate-image skill. Agent Mart. https://agentmart.dev/skills/lamm-mit-generate-image (last updated 2026-10-24)