ai-image-generation

Generate and edit images via the RunComfy CLI across multiple AI image models.

12|2|Updated Aug 12, 2026
One-click install
npx skills add https://github.com/genmedia-labs/skills --skill ai-image-generation-genmedia-labs
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: ai-image-generation
Source: https://github.com/genmedia-labs/skills/tree/main/ai-image-generation
Command: npx skills add https://github.com/genmedia-labs/skills --skill ai-image-generation-genmedia-labs

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @runcomfy/cli.

What problem does it solve? Choosing the right AI image model and writing correct API calls for text-to-image or image-to-image tasks is tedious and error-prone. This Skill routes each request to the appropriate model on RunComfy and builds the exact runcomfy run CLI invocation with the correct schema. ## Core Features & Use Cases - Model routing for text-to-image: Picks among FLUX 2 Klein, GPT Image 2, Nano Banana 2, Seedream 5, Qwen Image, Wan 2-7, and Z-Image Turbo based on intent such as typography, photoreal portraits, or sub-second iteration. - Image-to-image editing: Routes edits to Nano Banana 2 Edit, GPT Image 2 Edit, or FLUX Kontext Pro for identity-preserving edits, multilingual text swaps, and single-instruction local changes. - Documented prompt patterns: Ships per-model prompting tips, schema tables, and ready-to-run CLI commands. - Use Case: A marketer needs a multilingual poster with an exact Japanese headline. The Skill selects GPT Image 2, quotes the headline text precisely, and runs the command with the correct size parameter. ## Quick Start Ask the agent to generate an image of your subject, for example a photoreal portrait or a poster with an exact headline, and it will pick the right model and run the RunComfy CLI command.

Frequently Asked Questions about ai-image-generation

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

FAQPage Schema
How do I generate an image with the RunComfy CLI?▼

Install the CLI with npm i -g @runcomfy/cli, authenticate with runcomfy login, then run runcomfy run <vendor>/<model>/<endpoint> with a JSON --input containing your prompt and an --output-dir for results.

Which AI image model should I use for text in images?▼

Use GPT Image 2 for in-image text and typography. It renders exact quoted headlines, supports Japanese kana, Cyrillic, and Arabic scripts, and honors layout instructions like centered or top-left positioning.

What is the difference between FLUX 2 Klein 9B and 4B?▼

FLUX 2 Klein 9B is the default for polished, higher-quality output at around 25 steps. The 4B variant is a sub-second version suited for storyboards, moodboards, and fast batch concepting with slight quality trade-off.

Can I edit an existing image instead of generating from scratch?▼

Yes, image-to-image endpoints accept reference image URLs. Nano Banana 2 Edit handles identity-preserving edits with 1-20 input images, GPT Image 2 Edit handles multilingual text swaps, and FLUX Kontext Pro handles single precise local edits.

Why did my RunComfy CLI command fail with exit code 77?▼

Exit code 77 means you are not signed in or the token was rejected. Run runcomfy login to authenticate interactively, or set the RUNCOMFY_TOKEN environment variable in CI or container environments.

Does Nano Banana 2 support batch image generation?▼

Yes, Nano Banana 2 accepts a num_images parameter from 1 to 4 per call. Combined with the 0.5K resolution setting, it is suited for fast ideation rounds before rendering finals at 2K or 4K.