generate-image

Generate and edit images with Gemini models via CLI scripts or inline code.

1|Updated Mar 24, 2026
One-click install
npx skills add https://github.com/nawwwal/dex --skill generate-image-nawwwal
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: generate-image
Source: https://github.com/nawwwal/dex/tree/main/plugins/tools/skills/generate-image
Command: npx skills add https://github.com/nawwwal/dex --skill generate-image-nawwwal

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill enables rapid image creation and editing by providing both natural-language, inline-code workflows and deterministic CLI scripts that leverage Gemini image models, reducing context switching and setup time for design tasks.

Core Features & Use Cases

  • Dual surfaces: natural-language inline code for interactive usage and a script-based CLI for deterministic pipelines.
  • Model options: default to gemini-3.1-flash-image-preview with an explicit path to gemini-3-pro-image-preview for higher quality.
  • Flexible parameters: supports aspect ratio, output size, modalities (TEXT,IMAGE), and thinking configurations; can ground results with Google or image searches.
  • Use Case: generate product visuals or social banners by supplying prompts and optional source images, then save outputs to disk for asset pipelines.

Quick Start

Provide a prompt and any optional editing instructions to generate or modify an image, then save the resulting output to a file.

Frequently Asked Questions about generate-image

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

FAQPage Schema
How do I generate and edit images using Gemini models through a CLI?

To generate and edit images via CLI, this Skill uses Gemini models with configurable prompts, aspect ratios, and output sizes. You provide a prompt and optional source images, then save the resulting output directly to disk for asset pipelines.

Can I automate marketing visuals and design assets with deterministic CLI scripts?

Yes, you can automate marketing visuals using deterministic CLI scripts. This Skill provides repeatable workflows for design assets and prototypes, reducing context switching by leveraging Gemini image models directly within your engineering pipelines.

Does this image generation tool support custom aspect ratios and output sizes?

Yes, the image generation tool supports flexible parameters including custom aspect ratios, output sizes, and modalities. You can configure these settings alongside your prompts to generate traceable outputs grounded via Google or image searches.

What is the best way to create product visuals using inline code and Gemini?

The best way to create product visuals is using the dual surfaces provided: natural-language inline code for interactive usage or script-based CLI for deterministic pipelines. Both leverage Gemini models to rapidly generate and modify images.

Are there Gemini model options for higher quality image generation?

Yes, there are Gemini model options for higher quality image generation. The Skill defaults to the gemini-3.1-flash-image-preview model but provides an explicit path to gemini-3-pro-image-preview when you need higher quality outputs.

How does image generation handle grounding for accurate and traceable outputs?

Image generation handles grounding by optionally integrating Google or image searches. This ensures the generated or edited images are accurate and traceable, enforcing configurable prompts and modalities for reliable design results.