gemini-imagegen

Generate and edit images using the Gemini API with text prompts.

Updated Feb 17, 2026
One-click install
npx skills add https://github.com/danfrdn/antigravity-config --skill gemini-imagegen-danfrdn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gemini-imagegen
Source: https://github.com/danfrdn/antigravity-config/tree/main/skills/gemini-imagegen
Command: npx skills add https://github.com/danfrdn/antigravity-config --skill gemini-imagegen-danfrdn

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines the creation and modification of visual content by leveraging the Gemini API, eliminating the need for complex design software for many tasks.

Core Features & Use Cases

  • Text-to-Image Generation: Create images from detailed text prompts.
  • Image Editing & Refinement: Modify existing images based on natural language instructions.
  • Multi-turn Conversation: Iteratively refine generated or edited images.
  • Use Case: Generate a photorealistic image of a "futuristic cityscape at sunset with flying cars" or edit a product photo by "changing the background to a beach scene."

Quick Start

Use the gemini-imagegen skill to generate an image of a happy dog playing in a park.

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 prompts using the Gemini API?

Text-to-image generation with the Gemini API requires a GEMINI_API_KEY and the google-genai library. You provide detailed text prompts, and the API creates visual content like marketing assets or concept art without needing complex design software.

Can I edit and refine existing images through multi-turn conversation?

Image editing with the Gemini API supports modifying existing images using natural language instructions. You can iteratively refine generated or edited images through multi-turn conversation, allowing step-by-step adjustments like changing a background to a beach scene.

Do I need a GEMINI_API_KEY to create AI art and visual content?

Yes, generating AI art and visual content requires a GEMINI_API_KEY. The Skill utilizes this key alongside the google-genai and Pillow libraries to process text-to-image requests and perform image manipulation tasks.

What's the best way to create marketing assets without complex design software?

Using the Gemini API for text-to-image generation is an effective way to create marketing assets without complex design software. It allows you to generate photorealistic images or personalized imagery directly from detailed text descriptions.

Does this image generation approach support iterative refinement for concept art?

Yes, this approach supports iterative refinement for concept art through multi-turn conversation. You can generate an initial image from a text prompt and then apply sequential natural language instructions to refine the visual content until it meets your requirements.