image-gen

Generate AI images from prompts via Google Gemini with a Node.js script.

14|7|Updated Apr 25, 2026
One-click install
npx skills add https://github.com/nikolaj-lat/World-Puppeteer --skill image-gen-nikolaj-lat
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: image-gen
Source: https://github.com/nikolaj-lat/World-Puppeteer/tree/main/.claude/skills/image-gen
Command: npx skills add https://github.com/nikolaj-lat/World-Puppeteer --skill image-gen-nikolaj-lat

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Generating consistent, high-quality AI images from prompts typically requires manual iteration and tooling. This Skill automates image creation via a Node.js script and a Gemini API, streamlining creative workflows.

Core Features & Use Cases

  • Image generation from text prompts with configurable model, aspect ratio, and size.
  • Batch variations and deterministic file naming with atomic write safeguards.
  • Suitable for concept art, thumbnails, game assets, and character visuals.

Quick Start

Run node .claude/skills/image-gen/scripts/generate-image.mjs -n <name> [options] <prompt> to generate an image and save it to images/generated.

Frequently Asked Questions about image-gen

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

FAQPage Schema
How do I generate AI images from text prompts using Node.js?

You can generate AI images from text prompts by running a Node.js script that calls the Google Gemini API, configuring the model, aspect ratio, and size to output files directly to your local directory.

Can I batch generate multiple variations of concept art for game assets?

Yes, you can batch generate multiple variations of concept art for game assets by passing a prompt with a specified name and size parameters, producing deterministic files with atomic write safeguards.

Do I need the @google/genai dependency to run this image generation script?

Yes, you need the @google/genai dependency installed in your Node.js environment to execute the script and interface with the Google Gemini API for AI image generation.

How do I configure the aspect ratio and size for AI generated thumbnails?

You can configure the aspect ratio and size for AI generated thumbnails by passing the -r and -s command-line arguments to the Node.js script along with your text prompt.

What is the best way to automate AI art generation for story world assets?

The best way to automate AI art generation for story world assets is using a Node.js script with deterministic file naming and atomic writes, ensuring consistent outputs for characters and environments.

Where are the generated AI images and metadata saved on disk?

The generated AI images and their accompanying metadata are saved locally in the images/generated directory, ensuring organized access for your creative workflow.