ce-gemini-imagegen

Generate and edit images using the Gemini API.

Updated Sep 25, 2024
One-click install
npx skills add https://github.com/kwam1na/athena --skill ce-gemini-imagegen-kwam1na
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: ce-gemini-imagegen
Source: https://github.com/kwam1na/athena/tree/main/.agents/skills/ce-gemini-imagegen
Command: npx skills add https://github.com/kwam1na/athena --skill ce-gemini-imagegen-kwam1na

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This skill enables automated image generation and editing using Google's Gemini API, simplifying the creation and refinement of visuals from prompts and reference images.

Core Features & Use Cases

  • Text-to-image generation and image editing using Gemini models.
  • Multi-turn refinement and composition from multiple reference images for logos, product mockups, stickers, and artwork.
  • Easy integration via Python scripts and CLI for batch workflows and iterative design.

Quick Start

Set the GEMINI_API_KEY environment variable, install dependencies, and run the provided scripts to generate or edit images with Gemini.

Frequently Asked Questions about ce-gemini-imagegen

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

FAQPage Schema
How do I generate and edit images using the Gemini API in Python?

You can generate and edit images using the Gemini API by running provided Python scripts and CLI tools that handle text-to-image prompts, multi-turn refinement, and image composition. The skill requires setting the GEMINI_API_KEY environment variable and installing the google-genai and Pillow dependencies.

Can I use multiple reference images to compose a product mockup with Gemini?

Yes, you can compose product mockups, stickers, and artwork from multiple reference images. The skill applies multi-turn refinement to iteratively edit and blend visual elements, allowing you to generate complex compositions directly through Gemini API requests.

What dependencies do I need to run Gemini image generation scripts?

You need the google-genai package for API communication and Pillow for image processing. You must also configure the GEMINI_API_KEY environment variable before executing the provided Python scripts or CLI batch workflows.

How does multi-turn refinement work for AI art generation with Gemini?

Multi-turn refinement allows you to iteratively adjust and edit AI-generated images by sending follow-up prompts. This process uses the Gemini API to apply sequential changes, enabling you to gradually achieve desired results for logos or artwork without restarting the generation.

Are there CLI tools for batch image generation and editing with Gemini?

Yes, the skill provides CLI scripts that support batch image generation and editing workflows. These scripts interface with the Gemini API to automate repetitive visual creation tasks, including text-to-image generation and multi-turn composition.

Does the Gemini image generation skill include error handling for API requests?

Yes, the Python library and scripts include error handling for Gemini API image generation and editing. This ensures robust execution of text-to-image workflows, multi-turn refinement, and composition tasks across batch operations.