Gemini Image

Generate and edit images via Google's Gemini Nano Banana API.

1|2|Updated Feb 28, 2026
One-click install
npx skills add https://github.com/vibecode/Skillsforagent --skill gemini-image-vibecode
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Gemini Image
Source: https://github.com/vibecode/Skillsforagent/tree/main/Foundational/gemini-image
Command: npx skills add https://github.com/vibecode/Skillsforagent --skill gemini-image-vibecode

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill automates the creation and modification of images using advanced AI models, eliminating the need for complex design software or manual editing for many tasks.

Core Features & Use Cases

  • Text-to-Image Generation: Create photorealistic or stylized images from detailed text prompts.
  • Image Editing: Modify existing images based on textual instructions, such as removing backgrounds or applying artistic styles.
  • Multi-Image Input: Combine multiple reference images with a prompt for complex collage or editing tasks.
  • Use Case: Generate a marketing banner with a specific aspect ratio and then edit it to remove a distracting element, all through simple commands.

Quick Start

Generate a photorealistic image of a cat wearing a top hat with a 1:1 aspect ratio and save it as cat.png.

Frequently Asked Questions about Gemini Image

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

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

Text-to-image generation with the Gemini API uses the Nano Banana model to create images from detailed text prompts. You can generate photorealistic or stylized images by providing a prompt and specifying a desired aspect ratio.

Can I edit existing images with text instructions using Gemini?

Yes, image editing with Gemini allows you to modify existing images based on textual instructions. You can apply artistic styles, remove backgrounds, or remove distracting elements from images through simple text commands.

Do I need an API key to use Gemini for AI image generation?

Yes, Gemini image generation requires the GOOGLE_API_KEY environment variable for authentication. You must configure this environment variable in your setup before executing any text-to-image or image editing commands.

How do I combine multiple reference images for collage creation?

Multi-image composition combines multiple reference images with a text prompt to execute complex editing tasks. This feature allows you to merge several input images together to create a unified collage or composite output.

What is the best way to create marketing banners with specific aspect ratios?

Creating marketing banners with specific aspect ratios is handled by specifying the dimensions during text-to-image generation. You can generate a banner with a 1:1 aspect ratio and then use text instructions to edit and refine the output.

Why does my Gemini image generation command fail to execute?

Gemini image generation commands fail when the GOOGLE_API_KEY environment variable is missing or invalid. Ensure the API key is properly configured for authentication before attempting any text-to-image creation or image editing tasks.