generate-image
Generate or edit images using AI models (FLUX, Nano Banana 2).
Skill by qinyan-ai
Chalk Labs
Need help deploying generate-image?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
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/qinyan-ai-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: not checked yet.
What's inside
- Skill name
generate-image- Description
- Generate or edit images using AI models (FLUX, Nano Banana 2). 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
- 176 lines in SKILL.md · view on GitHub
Before installing
- Ships executable scripts
Files (2)
- SKILL.md
- 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.1 Flash Image Preview. ## 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.1-flash-image-preview` (high quality, recommended) **Available models for generation and editing**: - `google/gemini-3.1-flash-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.1-flash-image-preview or flux.2-pro - **Editing**: Use gemini-3.1-flash-image-preview 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.1-flash-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 qinyan-ai/qinyan-academic-skills, MIT.
More from qinyan-ai/qinyan-academic-skills
- 0.522score
consciousness-council
qinyan-ai
Run a multi-perspective Mind Council deliberation on any question, decision, or creative challenge.
SkillDFreshness: D★ 87Claude Code +9 - 0.522score
dhdna-profiler
qinyan-ai
Extract cognitive patterns and thinking fingerprints from any text.
SkillDFreshness: D★ 87Claude Code +9 - 0.522score
what-if-oracle
qinyan-ai
Run structured What-If scenario analysis with multi-branch possibility exploration.
SkillDFreshness: D★ 87Claude Code +9 - 0.513score
venue-templates
qinyan-ai
Access comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE…
SkillDFreshness: D★ 87Claude Code +9
Signals
- Stars
- 87
- Forks
- 7
- Open issues
- 0
- Last commit (this folder)
- Mar 9, 2026 (7 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.652score
generate-image
foryourhealth111-pixel
Generate or edit images using AI models (FLUX, Nano Banana 2).
SkillAFreshness: A★ 3.8KClaude Code +9 - 0.312score
generate-image
Simulasi-Ekonomi
Generate or edit images using AI models (FLUX, Nano Banana 2).
SkillBFreshness: BClaude Code +9 - 0.251score
generate-image
beita6969
Generate or edit images using AI models (FLUX, Nano Banana 2).
SkillDFreshness: D★ 1KClaude Code +9
More from qinyan-ai
- 0.522score
consciousness-council
qinyan-ai
Run a multi-perspective Mind Council deliberation on any question, decision, or creative challenge.
SkillDFreshness: D★ 87Claude Code +9 - 0.522score
dhdna-profiler
qinyan-ai
Extract cognitive patterns and thinking fingerprints from any text.
SkillDFreshness: D★ 87Claude Code +9 - 0.522score
what-if-oracle
qinyan-ai
Run structured What-If scenario analysis with multi-branch possibility exploration.
SkillDFreshness: D★ 87Claude Code +9 - 0.513score
venue-templates
qinyan-ai
Access comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE…
SkillDFreshness: D★ 87Claude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get generate-image running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
generate-image skill. Agent Mart. https://agentmart.dev/skills/qinyan-ai-generate-image (last updated 2026-10-24)