imagen

Generate images from natural language prompts via Google Gemini.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/XSIJIE975/agents-skills --skill imagen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: imagen
Source: https://github.com/XSIJIE975/agents-skills/tree/main/skills/imagen
Command: npx skills add https://github.com/XSIJIE975/agents-skills --skill imagen

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This skill provides an easy way to generate AI-created images from natural language prompts, eliminating the manual overhead of sourcing and producing visuals for interfaces, docs, and diagrams.

Core Features & Use Cases

  • Generate images from prompts using Google Gemini's image generation model.
  • Save generated images to a configurable location for direct integration into projects.
  • Use during frontend development, documentation visuals, architecture diagrams, and placeholder artwork.

Quick Start

Use the imagen skill to generate an image from a prompt, for example: python scripts/generate_image.py "A futuristic city skyline at sunset" Save to a custom location: python scripts/generate_image.py "App icon for a weather app" "./assets/weather-icon.png" Optional: set size or model via environment variables or command options: IMAGE_SIZE=2K GEMINI_MODEL=gemini-3-pro-image-preview python scripts/generate_image.py "High-res landscape" "./wallpaper.png"

Frequently Asked Questions about imagen

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

FAQPage Schema
How do I generate images from natural language prompts using Gemini?

To generate images from natural language prompts using Gemini, you run the provided Python script, which calls the Gemini endpoint and saves the resulting image. You pass your text prompt as an argument to the script.

What do I need to set up before generating AI images for my UI mockups?

Before generating AI images for UI mockups, you need a GEMINI_API_KEY and Python 3.6 or higher installed. The script uses these prerequisites to authenticate and execute the image generation calls.

Can I save generated images to a specific file path for my project assets?

Yes, you can save generated images to a specific file path for your project assets by providing a custom location as the second argument to the script, directly integrating the output into your directories.

How can I configure the output size or model when I generate images from prompts?

You can configure the output size or model when you generate images from prompts by setting environment variables like IMAGE_SIZE and GEMINI_MODEL before running the script, allowing for high-res outputs.

What types of visuals can I create with AI image generation for development sessions?

With AI image generation for development sessions, you can create UI mockups, icons, architecture diagrams, and placeholder artwork. It eliminates manual sourcing by generating visuals directly from text prompts.