gemini-imagegen

Generate and edit images using the Gemini API with configurable aspect ratios.

11|Updated Jun 19, 2013
One-click install
npx skills add https://github.com/MadBomber/experiments --skill gemini-imagegen-madbomber
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gemini-imagegen
Source: https://github.com/MadBomber/experiments/tree/main/ai_misc/skills/gemini-imagegen
Command: npx skills add https://github.com/MadBomber/experiments --skill gemini-imagegen-madbomber

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires google-genai, Pillow, and includes scripts (resource) components.

What problem does it solve?

This Skill empowers users to generate novel images from text descriptions and to edit existing images with natural language instructions, streamlining creative workflows and content creation.

Core Features & Use Cases

  • Text-to-Image Generation: Create original images based on detailed prompts.
  • Image Editing: Modify existing images by describing desired changes.
  • Multi-Turn Refinement: Iteratively improve generated or edited images through conversation.
  • Use Case: Design a unique logo for a new startup by describing its brand identity, then refine the text and colors through a series of prompts until satisfied.

Quick Start

Use the gemini-imagegen skill to generate an image of a futuristic cityscape at sunset.

Frequently Asked Questions about gemini-imagegen

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

FAQPage Schema
How do I generate images from text using the Gemini API?

To generate images from text using the Gemini API, you provide detailed text prompts to models like gemini-3-pro-image-preview, which creates original images with configurable aspect ratios and resolutions.

Can I edit existing images with natural language instructions?

Yes, you can edit existing images by describing desired changes in natural language, enabling multi-turn refinement to iteratively improve generated or edited images through conversation.

Do I need a specific API key to use this image generation Skill?

Yes, you need to set the GEMINI_API_KEY environment variable, and the Python environment requires the google-genai and Pillow libraries to handle API requests and process image data.

What's the best way to refine AI art generation iteratively?

The best way to refine AI art is through multi-turn refinement, iteratively improving generated or edited images by providing a series of text prompts that adjust specific elements like text and colors.

Does this Skill support composing images from multiple reference images?

Yes, it supports composition from multiple reference images, allowing you to blend and edit existing images together using the Gemini API to achieve your desired visual output.

What are the limitations when using the Gemini API for content creation?

Limitations include dependency on the gemini-3-pro-image-preview model for high-quality output and the requirement to configure aspect ratios and resolutions manually within your environment setup.