imagen

Generate PNG images from text prompts via the Gemini API.

9|2|Updated Mar 12, 2026
One-click install
npx skills add https://github.com/hongmaple0820/agent-academy --skill imagen-hongmaple0820
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: imagen
Source: https://github.com/hongmaple0820/agent-academy/tree/main/skills/ai-ml/imagen
Command: npx skills add https://github.com/hongmaple0820/agent-academy --skill imagen-hongmaple0820

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

Generating AI images from text prompts saves time and resources by eliminating manual image creation, enabling rapid visuals for UI mockups, diagrams, and documentation.

Core Features & Use Cases

  • Prompt-driven image generation: Generate images via the Gemini API from concise descriptions.
  • Flexible output: Save PNG images to a chosen path with adjustable size.
  • Cross-platform CLI: Python-based script works on Windows, macOS, and Linux.
  • Use Case: Create UI icons, placeholders, diagrams, or illustration assets during development and documentation.

Quick Start

Run the script with a prompt to generate an image, for example: python scripts/generate_image.py 'A sunset over mountains'.

Frequently Asked Questions about imagen

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

FAQPage Schema
How do I generate AI images from text prompts for UI design?

You can generate AI images from text prompts by running a Python script that sends your concise descriptions to the Gemini API, which then outputs a PNG file to your chosen directory for UI mockups.

Can I use the Gemini API to create placeholder images and diagrams for documentation?

Yes, you can use the Gemini API to create placeholder images and diagrams by providing text prompts that describe the desired visual assets for your documentation.

How do I configure image size and output path when generating images with the Gemini API?

You can configure the image size and output path by adjusting the script parameters before execution, allowing you to save the generated PNG file to a specific location with your desired dimensions.

Does this Python image generation script work on Windows, macOS, and Linux?

Yes, the Python-based script works on Windows, macOS, and Linux, providing a cross-platform CLI solution for generating visual assets from text prompts.

What is the best way to create concept art and icons during development without manual image creation?

The best way to create concept art and icons without manual image creation is using prompt-driven image generation via the Gemini API, which saves time and resources by automating visual asset production.

Do I need any dependencies to run the Python script for prompt-driven image generation?

No external dependencies are required to run the Python script, as it operates independently using the Gemini API to generate PNG images from your text prompts.