alterlab-generate-image

Generate images from prompts using OpenRouter models with optional input image editing.

58|9|Updated Mar 16, 2026
One-click install
npx skills add https://github.com/AlterLab-IEU/AlterLab-Academic-Skills --skill alterlab-generate-image
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: alterlab-generate-image
Source: https://github.com/AlterLab-IEU/AlterLab-Academic-Skills/tree/main/skills/visualization/alterlab-generate-image
Command: npx skills add https://github.com/AlterLab-IEU/AlterLab-Academic-Skills --skill alterlab-generate-image

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, and includes scripts (resource) components.

What problem does it solve?

Generate high-quality images from text prompts and edit existing visuals using AI models.

Core Features & Use Cases

  • Generate photos, illustrations, and artwork from prompts using multiple OpenRouter models.
  • Edit existing images by providing an input file and an editing prompt.
  • Use in presentations, documentation, marketing visuals, and concept art.

Quick Start

Run the script to generate an image from a prompt or edit an existing image using an input file.

Frequently Asked Questions about alterlab-generate-image

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I generate AI images from text prompts using OpenRouter?

Generate AI images from text prompts by providing a descriptive prompt to an OpenRouter model, which processes the input and saves the output directly to an image file. This supports creating photos, illustrations, and concept art for various visual content needs.

Can I edit an existing image with an AI model?

Edit an existing image by supplying an input file alongside an editing prompt to the OpenRouter API. The tool applies the prompt instructions to modify the visual and saves the updated output to a new file with robust error handling.

Do I need an OpenRouter API key to generate images?

An OpenRouter API key is required to authenticate requests and access the multiple AI models supported for image generation and editing. You must provide this key before running the script to ensure successful visual content creation.

What is the best way to create concept art for marketing materials?

The best way to create concept art for marketing materials is using OpenRouter AI models to generate high-quality visuals from text prompts. This streamlines content creation for presentations and documentation by saving outputs directly to files.

Does the image generation script support multiple AI models?

The script supports multiple AI models accessible through OpenRouter, allowing you to select different models for generating photos or illustrations. This flexibility helps tailor the visual content creation process to specific project requirements.

Why does image generation fail when editing an input file?

Image generation or editing failures are handled by robust error handling within the script. Common issues include missing OpenRouter API keys, invalid input image formats, or network errors during the API request and file saving process.