generate-image

Generate and edit images from text prompts via OpenRouter, saving PNG outputs.

Updated May 24, 2026
One-click install
npx skills add https://github.com/Estrella-231/Mathematical_modeling_tongmeng --skill generate-image-estrella-231
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: generate-image
Source: https://github.com/Estrella-231/Mathematical_modeling_tongmeng/tree/main/.agents/skills/generate-image
Command: npx skills add https://github.com/Estrella-231/Mathematical_modeling_tongmeng --skill generate-image-estrella-231

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Generate or edit high-quality images from natural-language prompts without manual design work, saving time for visual assets and presentations.

Core Features & Use Cases

  • General-purpose image generation: Create photorealistic images, illustrations, artwork, and concept art from text prompts for reports, posters, and slides.
  • Image editing: Modify an existing image using an edit prompt plus an input image, such as changing background colors or removing unwanted elements.
  • Model flexibility via OpenRouter: Supports popular image models (e.g., FLUX and Gemini image preview) and uses an OpenRouter API key for execution.

Quick Start

Run the generator with an OpenRouter key set in a .env file, then generate an image by sending the prompt: "Design a poster hero image featuring a clean campus map style, modern and professional, high detail" (output defaults to generated_image.png).

Frequently Asked Questions about generate-image

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

FAQPage Schema
How do I generate images from text prompts using OpenRouter and FLUX?▼

To generate images from text prompts, you set an OpenRouter API key in a .env file and run the script with a natural-language description. The Skill uses models like FLUX or Gemini to process the prompt and returns a saved PNG file.

Can I edit an existing image by changing the background or removing elements?▼

Yes, you can edit an existing image by providing the input image alongside an edit prompt. The Skill applies the prompt-driven modifications, such as changing background colors or removing unwanted elements, and outputs the updated PNG.

What is text-to-image generation used for in presentations and reports?▼

Text-to-image generation creates photorealistic images, illustrations, and concept art from text prompts. It solves the problem of manual design work by quickly producing high-quality visual assets for posters, slides, and reports.

Do I need an OpenRouter API key to use Gemini image preview models?▼

Yes, an OpenRouter API key is required to execute any supported image generation or editing model, including Gemini image preview and FLUX. You must configure this key in a .env file before running the script.

What image formats does the text prompt generator output?▼

The text prompt generator outputs PNG files. By default, the generated visual asset is saved directly as generated_image.png in your working directory after the model processes the prompt.