image-gen

Generate AI images from prompts with model and aspect ratio options.

Updated Jan 24, 2026
One-click install
npx skills add https://github.com/maxgent-ai/maxgent-plugin --skill image-gen-maxgent-ai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: image-gen
Source: https://github.com/maxgent-ai/maxgent-plugin/tree/main/skills/image-gen
Command: npx skills add https://github.com/maxgent-ai/maxgent-plugin --skill image-gen-maxgent-ai

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automate AI image generation and editing tasks, reducing design time and enabling rapid visual content creation from natural language prompts.

Core Features & Use Cases

  • Model-aware image generation using Gemini 2.5 Flash Image or Seedream 4.5 to suit quality and style requirements.
  • Flexible prompts with optional input images for editing, support multiple aspect ratios (1:1, 4:3, 3:4, 16:9, 9:16), and multiple outputs.
  • Local saving with timestamp-based filenames, error handling guidance, and workflows for creative, marketing, and product design contexts.
  • Bun-based execution via image-gen.js, with environment validation and on-disk results.

Quick Start

Provide a detailed prompt and optional input image, then run the image-gen.js script to generate images.

Frequently Asked Questions about image-gen

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

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

You generate AI images by providing a natural language prompt and running the image-gen.js script with Bun, which calls the API and saves the output to disk.

Can I edit an existing image using AI prompts?

Yes, you can edit existing images by providing an optional input image alongside your text prompt, allowing the AI model to modify the visual content based on your instructions.

What aspect ratios are supported for AI image generation?

AI image generation supports multiple aspect ratios including 1:1, 4:3, 3:4, 16:9, and 9:16, giving you flexible control over the output dimensions for different design contexts.

Which AI models can I select for generating images?

You can select between Gemini 2.5 Flash Image and Seedream 4.5 models to match your specific quality and style requirements for AI image generation.

Do I need a specific API key to run the image generation script?

Yes, you need a MAX_API_KEY configured in your environment to validate and execute the image-gen.js script successfully for generating and saving AI images.

How does the script handle generated image outputs?

The script saves generated images locally to disk using timestamp-based filenames, ensuring organized results with built-in error handling guidance for creative workflows.