[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6ER4P4GQNK4X2DB8MYQQ0Q2":3,"skill-same:01M6ER4P4GQNK4X2DB8MYQQ0Q2":87},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":26,"publishedAt":47,"linkOnly":48,"markdownContent":49,"markdownBody":50,"frontMatter":51,"refName":52,"commitSha":53,"skillDirectory":54,"forksCount":55,"repositoryHtmlUrl":56,"repositoryHomepageUrl":57,"ownerHtmlUrl":58,"ownerBlogUrl":6,"ownerDescription":59,"updatedAt":60,"install":61,"resources":74},"01M6ER4P4GQNK4X2DB8MYQQ0Q2","generate-image",null,"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.","ComeOnOliver\u002Fskillshub","ComeOnOliver","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F43215937?v=4","01M6E5JNFECJAAVFE0W7SMWWD2","Haoran Shu","01M6E5JNNDQS7AJZDYFQ8TPZCK",67,"MIT","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fdavila7\u002Fgenerate-image\u002FSKILL.md",[18,23],{"categoryNo":19,"categoryName":20,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000016","图像与多媒体","SCENARIO","使用场景",{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},"01JBSEEDCAT000000000000023","Skill与智能体开发",[27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46],"generate","generate image","image","images","ai models","scientific","generation","flux","visual","general","models","Art","diagrams","use","edit","technical","assets","Image Generation","diagram","gemini","2026-11-10 10:12:30",false,"---\nname: generate-image\ndescription: 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.\n---\n\n# Generate Image\n\nGenerate and edit high-quality images using OpenRouter's image generation models including FLUX.2 Pro and Gemini 3 Pro.\n\n## When to Use This Skill\n\n**Use generate-image for:**\n- Photos and photorealistic images\n- Artistic illustrations and artwork\n- Concept art and visual concepts\n- Visual assets for presentations or documents\n- Image editing and modifications\n- Any general-purpose image generation needs\n\n**Use scientific-schematics instead for:**\n- Flowcharts and process diagrams\n- Circuit diagrams and electrical schematics\n- Biological pathways and signaling cascades\n- System architecture diagrams\n- CONSORT diagrams and methodology flowcharts\n- Any technical\u002Fschematic diagrams\n\n## Quick Start\n\nUse the `scripts\u002Fgenerate_image.py` script to generate or edit images:\n\n```bash\n# Generate a new image\npython scripts\u002Fgenerate_image.py \"A beautiful sunset over mountains\"\n\n# Edit an existing image\npython scripts\u002Fgenerate_image.py \"Make the sky purple\" --input photo.jpg\n```\n\nThis generates\u002Fedits an image and saves it as `generated_image.png` in the current directory.\n\n## API Key Setup\n\n**CRITICAL**: The script requires an OpenRouter API key. Before running, check if the user has configured their API key:\n\n1. Look for a `.env` file in the project directory or parent directories\n2. Check for `OPENROUTER_API_KEY=\u003Ckey>` in the `.env` file\n3. If not found, inform the user they need to:\n   - Create a `.env` file with `OPENROUTER_API_KEY=your-api-key-here`\n   - Or set the environment variable: `export OPENROUTER_API_KEY=your-api-key-here`\n   - Get an API key from: https:\u002F\u002Fopenrouter.ai\u002Fkeys\n\nThe script will automatically detect the `.env` file and provide clear error messages if the API key is missing.\n\n## Model Selection\n\n**Default model**: `google\u002Fgemini-3-pro-image-preview` (high quality, recommended)\n\n**Available models for generation and editing**:\n- `google\u002Fgemini-3-pro-image-preview` - High quality, supports generation + editing\n- `black-forest-labs\u002Fflux.2-pro` - Fast, high quality, supports generation + editing\n\n**Generation only**:\n- `black-forest-labs\u002Fflux.2-flex` - Fast and cheap, but not as high quality as pro\n\nSelect based on:\n- **Quality**: Use gemini-3-pro or flux.2-pro\n- **Editing**: Use gemini-3-pro or flux.2-pro (both support image editing)\n- **Cost**: Use flux.2-flex for generation only\n\n## Common Usage Patterns\n\n### Basic generation\n```bash\npython scripts\u002Fgenerate_image.py \"Your prompt here\"\n```\n\n### Specify model\n```bash\npython scripts\u002Fgenerate_image.py \"A cat in space\" --model \"black-forest-labs\u002Fflux.2-pro\"\n```\n\n### Custom output path\n```bash\npython scripts\u002Fgenerate_image.py \"Abstract art\" --output artwork.png\n```\n\n### Edit an existing image\n```bash\npython scripts\u002Fgenerate_image.py \"Make the background blue\" --input photo.jpg\n```\n\n### Edit with a specific model\n```bash\npython scripts\u002Fgenerate_image.py \"Add sunglasses to the person\" --input portrait.png --model \"black-forest-labs\u002Fflux.2-pro\"\n```\n\n### Edit with custom output\n```bash\npython scripts\u002Fgenerate_image.py \"Remove the text from the image\" --input screenshot.png --output cleaned.png\n```\n\n### Multiple images\nRun the script multiple times with different prompts or output paths:\n```bash\npython scripts\u002Fgenerate_image.py \"Image 1 description\" --output image1.png\npython scripts\u002Fgenerate_image.py \"Image 2 description\" --output image2.png\n```\n\n## Script Parameters\n\n- `prompt` (required): Text description of the image to generate, or editing instructions\n- `--input` or `-i`: Input image path for editing (enables edit mode)\n- `--model` or `-m`: OpenRouter model ID (default: google\u002Fgemini-3-pro-image-preview)\n- `--output` or `-o`: Output file path (default: generated_image.png)\n- `--api-key`: OpenRouter API key (overrides .env file)\n\n## Example Use Cases\n\n### For Scientific Documents\n```bash\n# Generate a conceptual illustration for a paper\npython scripts\u002Fgenerate_image.py \"Microscopic view of cancer cells being attacked by immunotherapy agents, scientific illustration style\" --output figures\u002Fimmunotherapy_concept.png\n\n# Create a visual for a presentation\npython scripts\u002Fgenerate_image.py \"DNA double helix structure with highlighted mutation site, modern scientific visualization\" --output slides\u002Fdna_mutation.png\n```\n\n### For Presentations and Posters\n```bash\n# Title slide background\npython scripts\u002Fgenerate_image.py \"Abstract blue and white background with subtle molecular patterns, professional presentation style\" --output slides\u002Fbackground.png\n\n# Poster hero image\npython scripts\u002Fgenerate_image.py \"Laboratory setting with modern equipment, photorealistic, well-lit\" --output poster\u002Fhero.png\n```\n\n### For General Visual Content\n```bash\n# Website or documentation images\npython scripts\u002Fgenerate_image.py \"Professional team collaboration around a digital whiteboard, modern office\" --output docs\u002Fteam_collaboration.png\n\n# Marketing materials\npython scripts\u002Fgenerate_image.py \"Futuristic AI brain concept with glowing neural networks\" --output marketing\u002Fai_concept.png\n```\n\n## Error Handling\n\nThe script provides clear error messages for:\n- Missing API key (with setup instructions)\n- API errors (with status codes)\n- Unexpected response formats\n- Missing dependencies (requests library)\n\nIf the script fails, read the error message and address the issue before retrying.\n\n## Notes\n\n- Images are returned as base64-encoded data URLs and automatically saved as PNG files\n- The script supports both `images` and `content` response formats from different OpenRouter models\n- Generation time varies by model (typically 5-30 seconds)\n- For image editing, the input image is encoded as base64 and sent to the model\n- Supported input image formats: PNG, JPEG, GIF, WebP\n- Check OpenRouter pricing for cost information: https:\u002F\u002Fopenrouter.ai\u002Fmodels\n\n## Image Editing Tips\n\n- Be specific about what changes you want (e.g., \"change the sky to sunset colors\" vs \"edit the sky\")\n- Reference specific elements in the image when possible\n- For best results, use clear and detailed editing instructions\n- Both Gemini 3 Pro and FLUX.2 Pro support image editing through OpenRouter\n\n## Integration with Other Skills\n\n- **scientific-schematics**: Use for technical diagrams, flowcharts, circuits, pathways\n- **generate-image**: Use for photos, illustrations, artwork, visual concepts\n- **scientific-slides**: Combine with generate-image for visually rich presentations\n- **latex-posters**: Use generate-image for poster visuals and hero images\n","# Generate Image\n\nGenerate and edit high-quality images using OpenRouter's image generation models including FLUX.2 Pro and Gemini 3 Pro.\n\n## When to Use This Skill\n\n**Use generate-image for:**\n- Photos and photorealistic images\n- Artistic illustrations and artwork\n- Concept art and visual concepts\n- Visual assets for presentations or documents\n- Image editing and modifications\n- Any general-purpose image generation needs\n\n**Use scientific-schematics instead for:**\n- Flowcharts and process diagrams\n- Circuit diagrams and electrical schematics\n- Biological pathways and signaling cascades\n- System architecture diagrams\n- CONSORT diagrams and methodology flowcharts\n- Any technical\u002Fschematic diagrams\n\n## Quick Start\n\nUse the `scripts\u002Fgenerate_image.py` script to generate or edit images:\n\n```bash\n# Generate a new image\npython scripts\u002Fgenerate_image.py \"A beautiful sunset over mountains\"\n\n# Edit an existing image\npython scripts\u002Fgenerate_image.py \"Make the sky purple\" --input photo.jpg\n```\n\nThis generates\u002Fedits an image and saves it as `generated_image.png` in the current directory.\n\n## API Key Setup\n\n**CRITICAL**: The script requires an OpenRouter API key. Before running, check if the user has configured their API key:\n\n1. Look for a `.env` file in the project directory or parent directories\n2. Check for `OPENROUTER_API_KEY=\u003Ckey>` in the `.env` file\n3. If not found, inform the user they need to:\n   - Create a `.env` file with `OPENROUTER_API_KEY=your-api-key-here`\n   - Or set the environment variable: `export OPENROUTER_API_KEY=your-api-key-here`\n   - Get an API key from: https:\u002F\u002Fopenrouter.ai\u002Fkeys\n\nThe script will automatically detect the `.env` file and provide clear error messages if the API key is missing.\n\n## Model Selection\n\n**Default model**: `google\u002Fgemini-3-pro-image-preview` (high quality, recommended)\n\n**Available models for generation and editing**:\n- `google\u002Fgemini-3-pro-image-preview` - High quality, supports generation + editing\n- `black-forest-labs\u002Fflux.2-pro` - Fast, high quality, supports generation + editing\n\n**Generation only**:\n- `black-forest-labs\u002Fflux.2-flex` - Fast and cheap, but not as high quality as pro\n\nSelect based on:\n- **Quality**: Use gemini-3-pro or flux.2-pro\n- **Editing**: Use gemini-3-pro or flux.2-pro (both support image editing)\n- **Cost**: Use flux.2-flex for generation only\n\n## Common Usage Patterns\n\n### Basic generation\n```bash\npython scripts\u002Fgenerate_image.py \"Your prompt here\"\n```\n\n### Specify model\n```bash\npython scripts\u002Fgenerate_image.py \"A cat in space\" --model \"black-forest-labs\u002Fflux.2-pro\"\n```\n\n### Custom output path\n```bash\npython scripts\u002Fgenerate_image.py \"Abstract art\" --output artwork.png\n```\n\n### Edit an existing image\n```bash\npython scripts\u002Fgenerate_image.py \"Make the background blue\" --input photo.jpg\n```\n\n### Edit with a specific model\n```bash\npython scripts\u002Fgenerate_image.py \"Add sunglasses to the person\" --input portrait.png --model \"black-forest-labs\u002Fflux.2-pro\"\n```\n\n### Edit with custom output\n```bash\npython scripts\u002Fgenerate_image.py \"Remove the text from the image\" --input screenshot.png --output cleaned.png\n```\n\n### Multiple images\nRun the script multiple times with different prompts or output paths:\n```bash\npython scripts\u002Fgenerate_image.py \"Image 1 description\" --output image1.png\npython scripts\u002Fgenerate_image.py \"Image 2 description\" --output image2.png\n```\n\n## Script Parameters\n\n- `prompt` (required): Text description of the image to generate, or editing instructions\n- `--input` or `-i`: Input image path for editing (enables edit mode)\n- `--model` or `-m`: OpenRouter model ID (default: google\u002Fgemini-3-pro-image-preview)\n- `--output` or `-o`: Output file path (default: generated_image.png)\n- `--api-key`: OpenRouter API key (overrides .env file)\n\n## Example Use Cases\n\n### For Scientific Documents\n```bash\n# Generate a conceptual illustration for a paper\npython scripts\u002Fgenerate_image.py \"Microscopic view of cancer cells being attacked by immunotherapy agents, scientific illustration style\" --output figures\u002Fimmunotherapy_concept.png\n\n# Create a visual for a presentation\npython scripts\u002Fgenerate_image.py \"DNA double helix structure with highlighted mutation site, modern scientific visualization\" --output slides\u002Fdna_mutation.png\n```\n\n### For Presentations and Posters\n```bash\n# Title slide background\npython scripts\u002Fgenerate_image.py \"Abstract blue and white background with subtle molecular patterns, professional presentation style\" --output slides\u002Fbackground.png\n\n# Poster hero image\npython scripts\u002Fgenerate_image.py \"Laboratory setting with modern equipment, photorealistic, well-lit\" --output poster\u002Fhero.png\n```\n\n### For General Visual Content\n```bash\n# Website or documentation images\npython scripts\u002Fgenerate_image.py \"Professional team collaboration around a digital whiteboard, modern office\" --output docs\u002Fteam_collaboration.png\n\n# Marketing materials\npython scripts\u002Fgenerate_image.py \"Futuristic AI brain concept with glowing neural networks\" --output marketing\u002Fai_concept.png\n```\n\n## Error Handling\n\nThe script provides clear error messages for:\n- Missing API key (with setup instructions)\n- API errors (with status codes)\n- Unexpected response formats\n- Missing dependencies (requests library)\n\nIf the script fails, read the error message and address the issue before retrying.\n\n## Notes\n\n- Images are returned as base64-encoded data URLs and automatically saved as PNG files\n- The script supports both `images` and `content` response formats from different OpenRouter models\n- Generation time varies by model (typically 5-30 seconds)\n- For image editing, the input image is encoded as base64 and sent to the model\n- Supported input image formats: PNG, JPEG, GIF, WebP\n- Check OpenRouter pricing for cost information: https:\u002F\u002Fopenrouter.ai\u002Fmodels\n\n## Image Editing Tips\n\n- Be specific about what changes you want (e.g., \"change the sky to sunset colors\" vs \"edit the sky\")\n- Reference specific elements in the image when possible\n- For best results, use clear and detailed editing instructions\n- Both Gemini 3 Pro and FLUX.2 Pro support image editing through OpenRouter\n\n## Integration with Other Skills\n\n- **scientific-schematics**: Use for technical diagrams, flowcharts, circuits, pathways\n- **generate-image**: Use for photos, illustrations, artwork, visual concepts\n- **scientific-slides**: Combine with generate-image for visually rich presentations\n- **latex-posters**: Use generate-image for poster visuals and hero images\n",{"name":5,"description":7},"main","def8531e65114c0fca8fb8551c1871ee0eed705c","skills\u002Faiskillstore\u002Fmarketplace\u002Fdavila7\u002Fgenerate-image",24,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub","https:\u002F\u002Fskillshub.wtf","https:\u002F\u002Fgithub.com\u002FComeOnOliver","AI & Blockchain Engineer\r\n","2026-06-24 22:07:19",{"source":8,"skillName":5,"commands":62,"prompt":72,"zipAvailable":73},[63,66,69],{"tool":64,"command":65},"npx","npx skills add ComeOnOliver\u002Fskillshub --skill generate-image",{"tool":67,"command":68},"bunx","bunx skills add ComeOnOliver\u002Fskillshub --skill generate-image",{"tool":70,"command":71},"pnpm","pnpm dlx skills add ComeOnOliver\u002Fskillshub --skill generate-image","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fdavila7\u002Fgenerate-image\u002FSKILL.md",true,[75,81],{"path":76,"resourceType":77,"resourceTypeDesc":78,"sizeBytes":79,"sourceHtmlUrl":80},"scripts\u002Fgenerate_image.py","SCRIPT","脚本",8787,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fdavila7\u002Fgenerate-image\u002Fscripts\u002Fgenerate_image.py",{"path":82,"resourceType":83,"resourceTypeDesc":84,"sizeBytes":85,"sourceHtmlUrl":86},"skill-report.json","REFERENCE","参考文档",11482,"https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Faiskillstore\u002Fmarketplace\u002Fdavila7\u002Fgenerate-image\u002Fskill-report.json",[88,98,108,117,123,130],{"skillNo":89,"name":90,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":94,"publishedAt":47},"01M6FKJN13GMG4KY57J3QD8GY5","model-hierarchy-skill","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzscole\u002Fmodel-hierarchy-skill\u002Fmodel-hierarchy-skill\u002FSKILL.md",[93],{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},[95,96,97],"model","model hierarchy","model hierarchy skill",{"skillNo":99,"name":100,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":101,"categories":102,"keywords":104,"publishedAt":47},"01M6FKJJJ6GCAMR4PPPRD12M5X","zoom-mcp","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-mcp\u002FSKILL.md",[103],{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},[105,106,107],"MCP","zoom","zoom mcp",{"skillNo":109,"name":110,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":47},"01M6FKJE3KYT3KPEZMEEHYKA6K","zoom-apps-sdk","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fzoom-apps-sdk\u002FSKILL.md",[],[114,115,116,106],"sdk","zoom apps sdk","apps",{"skillNo":118,"name":119,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":120,"categories":121,"keywords":122,"publishedAt":47},"01M6FKJ9EDH9Q5VWDF8HAJRSP0","windows","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwindows\u002FSKILL.md",[],[119],{"skillNo":124,"name":125,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":126,"categories":127,"keywords":129,"publishedAt":47},"01M6FKJ666BEEFC3AE9GJ72Q93","whiteboard","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwhiteboard\u002FSKILL.md",[128],{"categoryNo":24,"categoryName":25,"taxonomyType":21,"taxonomyTypeDesc":22},[125],{"skillNo":131,"name":132,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":135,"publishedAt":47},"01M6FKJ21WFCDGTJQ2Q91T9DVW","websockets","https:\u002F\u002Fgithub.com\u002FComeOnOliver\u002Fskillshub\u002Fblob\u002Fmain\u002Fskills\u002Fzoom\u002Fskills\u002Fwebsockets\u002FSKILL.md",[],[132]]