gemini-imagegen

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

240|75|Updated Jul 13, 2023
One-click install
npx skills add https://github.com/udecode/plate-playground-template --skill gemini-imagegen-udecode
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: gemini-imagegen
Source: https://github.com/udecode/plate-playground-template/tree/main/.codex/skills/gemini-imagegen
Command: npx skills add https://github.com/udecode/plate-playground-template --skill gemini-imagegen-udecode

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the creation and modification of images using advanced AI, eliminating the need for complex design software or manual editing for a wide range of visual content needs.

Core Features & Use Cases

  • Text-to-Image Generation: Create images from detailed text prompts.
  • Image Editing & Refinement: Modify existing images based on instructions, including style transfer and object manipulation.
  • Multi-Turn Conversation: Iteratively refine generated images through a chat interface.
  • Composition: Combine multiple images into a single scene.
  • Use Case: Generate a photorealistic product mockup for a new shoe design, then ask the AI to change the background to a beach scene and adjust the lighting to be more dramatic.

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?

Text-to-image generation using the Gemini API requires a GEMINI_API_KEY environment variable to process your text prompts. This skill automates creating visual content from detailed text descriptions through the google-genai library.

Can I edit existing images and change backgrounds with AI?

AI image editing allows you to modify existing images by requesting background changes, style transfer, and object manipulation. You can iteratively refine generated images through multi-turn conversation to adjust lighting or scenery.

Do I need a GEMINI_API_KEY to create visual content with this tool?

A GEMINI_API_KEY environment variable is required to authenticate requests and generate visual content. You must configure this key before using the skill to handle image generation and manipulation tasks.

What is the best way to refine AI generated images through a chat interface?

Multi-turn conversation refinement allows you to iteratively adjust AI generated images by providing sequential instructions. You can modify elements like lighting or background scene by asking the AI to change specific attributes.

Does this image generation skill support image composition?

Image composition is supported to combine multiple images into a single scene. This feature works alongside text-to-image generation and image editing to produce complex visual assets.