image-generator

Generate images from text prompts via the Openrouter API.

Updated Mar 24, 2026
One-click install
npx skills add https://github.com/NEXUZ-SYS/nxz-tutorial-agents --skill image-generator-nexuz-sys
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: image-generator
Source: https://github.com/NEXUZ-SYS/nxz-tutorial-agents/tree/main/skills/image-generator
Command: npx skills add https://github.com/NEXUZ-SYS/nxz-tutorial-agents --skill image-generator-nexuz-sys

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

The Image Generator helps teams generate visuals from prompts using AI image models via Openrouter, reducing manual design time and speeding up asset creation.

Core Features & Use Cases

  • Single or batch image generation from text prompts
  • Support for reference images to maintain brand consistency
  • Safe mode selection (test vs production) to control cost and quality
  • Outputs saved locally for quick iteration and delivery

Quick Start

Run the Python-based script to generate a single image from a prompt, or a batch of images from a JSON file.

Frequently Asked Questions about image-generator

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

FAQPage Schema
How do I generate AI images from text prompts in batch?

Yes, you can generate AI images in batch by providing a JSON file with multiple text prompts to the Python script. The script outputs all generated images to a local directory.

Do I need an OpenRouter API key to generate images?

Yes, providing the OPENROUTER_API_KEY environment variable is required to authenticate with the Openrouter API and generate AI-created images from your text prompts.

Can I use reference images to maintain brand consistency?

Yes, the image generation process supports optional reference images to maintain brand consistency. This allows you to guide the AI output to match your established visual identity.

What is the difference between test and production modes for image generation?

Test and production modes control the cost and quality of AI image generation. Test mode enables cheaper iteration, while production mode outputs higher-quality final visual assets.

How are generated AI images saved locally?

The script creates the necessary output directories and saves the generated AI images locally. This ensures your visual assets are securely stored and available for quick iteration and delivery.

How does the script handle errors during image generation?

The script handles errors gracefully during the image generation process. If an issue occurs while processing text prompts via the Openrouter API, it manages the exception to prevent crashing.