Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
aviz85 avatar

Image Generation

  • 75 installs
  • 44 repo stars
  • Updated July 8, 2026
  • aviz85/claude-skills-library

Image Generation is a Claude skill that generates images with Gemini or fal.ai FLUX.2 and videos with Grok Imagine or fal.ai LTX-2 from text prompts.

About

Image Generation creates images with Google Gemini by default or fal.ai FLUX.2 klein 4B in a cheaper, faster mode, and generates video with Grok Imagine or fal.ai LTX-2. A developer runs its TypeScript script with a text prompt, optional reference assets, aspect ratio, and quality settings. It documents special prompt handling for Hebrew RTL content.

  • Generates images with Gemini (default) or fal.ai FLUX.2 klein 4B in --cheap mode (~$0.003/image)
  • Generates video with Grok Imagine or fal.ai LTX-2, and supports reference-image editing
  • Configurable aspect ratios and 1K/2K quality, with explicit Hebrew RTL prompt handling

Image Generation by the numbers

  • 75 all-time installs (skills.sh)
  • Ranked #837 of 1,337 Generative Media skills by installs in the Skillselion catalog
  • Data as of Jul 28, 2026 (Skillselion catalog sync)
At a glance

image-generation capabilities & compatibility

byo-api-key; fal.ai cheap mode ~$0.003/image, Gemini higher

Capabilities
image generation · video generation · poster design
Use cases
image generation · video generation
Pricing
Bring your own API key
From the docs

What image-generation says it does

Generate images using Google's Gemini model (default) or fal.ai FLUX.2 klein 4B (cheap mode).
SKILL.md
Generate videos with Grok Imagine (default) or fal.ai LTX-2 (--cheap).
SKILL.md
npx skills add https://github.com/aviz85/claude-skills-library --skill image-generation

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs75
repo stars44
Last updatedJuly 8, 2026
Repositoryaviz85/claude-skills-library

What it does

Generating images and videos from text prompts via Gemini, fal.ai FLUX.2, or Grok Imagine, with a cheap fast mode.

Who is it for?

Generating images or videos from prompts with a choice of quality Gemini output or a cheap fast fal.ai mode.

Skip if: Final production assets when only the cheap fal.ai mode is used, or workflows without any provider API key.

When should I use this skill?

When the user wants to create an image, generate a visual, make a poster, or generate a video.

What you get

An image or video file generated at a chosen provider, aspect ratio, and quality, saved to a specified path.

  • generated image file
  • generated video file

By the numbers

  • cheap mode costs ~$0.003 per image
  • supports 5 aspect ratios and 1K/2K quality

Files

SKILL.mdMarkdownGitHub ↗

Image Generation

Generate images using Google's Gemini model (default) or fal.ai FLUX.2 klein 4B (cheap mode).

Quick Start

MANDATORY: Always use -d (destination) flag to specify output path. This avoids file management issues with poster_0.jpg in the scripts folder.

cd ~/.claude/skills/image-generation/scripts

# ALWAYS specify destination with -d flag
npx tsx generate_poster.ts -d /tmp/my-image.jpg "A futuristic city at sunset"

# Cheap mode: fal.ai FLUX.2 klein 4B (fast, lower cost)
npx tsx generate_poster.ts --cheap -d /tmp/city.jpg "A futuristic city at sunset"

# With aspect ratio
npx tsx generate_poster.ts -d /tmp/landscape.jpg --aspect 3:2 "A wide landscape poster"
npx tsx generate_poster.ts --cheap -d /tmp/story.jpg -a 9:16 "A vertical story format"

# With reference assets (image editing)
npx tsx generate_poster.ts -d /tmp/banner.jpg --assets "/path/to/avatar.jpg" "Create banner with character"
npx tsx generate_poster.ts --cheap -d /tmp/photo.jpg --assets "/path/to/image.jpg" "Turn this into a realistic photo"

Why `-d` is mandatory:

  • Output goes to predictable location (e.g., /tmp/ for temp images)
  • Avoids hunting for poster_0.jpg in scripts folder
  • Enables immediate use without file renaming

Providers

ProviderFlagUse CaseCost
Gemini(default)High quality, best resultsHigher
fal.ai klein 4B--cheapFast, budget-friendly~$0.003/image

Cheap Mode (--cheap)

Uses fal.ai FLUX.2 klein 4B - a distilled FLUX model optimized for speed and cost.

Why use cheap mode?

  • Cost: ~$0.003 per image (vs Gemini's higher cost)
  • Speed: Fast 4-step inference (~2-4 seconds)
  • Quality: Good enough for drafts, social media, iterations
  • Batch friendly: Generate many variations quickly

Endpoints:

  • Text-to-image: fal-ai/flux-2/klein/4b
  • Image editing (with --assets): fal-ai/flux-2/klein/4b/edit

Best for:

  • Quick iterations and previews
  • Social media content
  • Concept exploration
  • Batch generation (10+ images)

Use Gemini instead for:

  • Final production assets
  • Complex compositions
  • Text-heavy images (especially Hebrew)

Quality

Control image resolution with --quality or -q:

QualityResolutionUse Case
1K1024pxDefault - fast, good for web
2K2048pxHigh quality - print, detailed posters
npx tsx generate_poster.ts -q 2K "High quality poster"

Aspect Ratio

IMPORTANT: Always use the default 3:2 aspect ratio unless the user explicitly requests a different format (like "vertical", "story", "square", etc.). Do NOT change the aspect ratio on your own.

Control image dimensions with --aspect or -a:

RatioUse Case
3:2Horizontal (DEFAULT - use this unless user specifies otherwise)
1:1Square - Instagram, profile pics
2:3Vertical - Pinterest, posters
16:9Wide - YouTube thumbnails, headers
9:16Tall - Stories, reels, TikTok
npx tsx generate_poster.ts --aspect 3:2 "Your prompt"
npx tsx generate_poster.ts -a 16:9 "Your prompt"

Adding Assets (Reference Images)

Use --assets with full paths to include reference images:

# Single asset
npx tsx generate_poster.ts --assets "/full/path/to/image.jpg" "Your prompt"

# Multiple assets (comma-separated)
npx tsx generate_poster.ts --assets "/path/a.jpg,/path/b.png" "Use both images"

# With cheap mode - uses fal.ai edit endpoint
npx tsx generate_poster.ts --cheap --assets "/path/to/image.jpg" "Turn this into a painting"

Supported formats: .jpg, .jpeg, .png, .webp, .gif

IMPORTANT: Assets are NOT automatically included. You must explicitly pass them via --assets.

Destination (MANDATORY)

ALWAYS use --destination or -d to specify output path:

# REQUIRED: Always specify destination
npx tsx generate_poster.ts -d /tmp/poster.jpg "My poster"

# If file exists, auto-adds suffix: poster_1.jpg, poster_2.jpg, etc.

Features:

  • Auto-creates parent directories if needed
  • Collision avoidance: if file exists, adds _1, _2, etc.
  • Use /tmp/ for temporary images that will be uploaded elsewhere

API Configuration

Create scripts/.env:

GEMINI_API_KEY=your_gemini_api_key
FAL_KEY=your_fal_api_key
XAI_API_KEY=your_xai_api_key

Hebrew/RTL Content

IMPORTANT: When the image contains Hebrew text, you MUST add the following sentence to the prompt:

"CRITICAL: Layout is RTL (right-to-left). All text in Hebrew. Visual flow, reading order, and panel sequence go from RIGHT to LEFT."

Copy this exact sentence and paste it at the BEGINNING of your prompt. Without it, the image will render left-to-right which is wrong for Hebrew content.

WOW Mode

When user asks for "wow mode" or wants maximum visual impact, add these epic elements to the prompt:

"EPIC CINEMATIC WOW: Amazed expression, mind-blown reaction, intense VFX - shattered glass particles, explosive energy bursts, volumetric light rays, dramatic lens flares, particle explosions, motion blur streaks, holographic glitches, electric sparks, cinematic color grading, dramatic rim lighting, depth of field bokeh, anamorphic lens effects. Maximum visual spectacle."

Output

  • Files saved to path specified by -d flag (MANDATORY)
  • Aspect ratio: Configurable via --aspect (default: 3:2)
  • Quality: 1K (1024px on longest edge)

---

Video Generation

Generate videos using xAI Grok Imagine Video (default) or fal.ai LTX-2 (cheap mode).

Quick Start

cd ~/.claude/skills/image-generation/scripts

# Text-to-video (Grok Imagine - high quality, 720p)
npx tsx generate_video.ts -d /tmp/video.mp4 "A futuristic city at sunset, cinematic drone shot"

# Cheap mode: fal.ai LTX-2 (fast, low cost)
npx tsx generate_video.ts --cheap -d /tmp/video.mp4 "A futuristic city at sunset"

# Image-to-video (animate a still image)
npx tsx generate_video.ts -d /tmp/animated.mp4 --image /path/to/image.jpg "Slow zoom with particles floating"
npx tsx generate_video.ts --cheap -d /tmp/animated.mp4 --image /path/to/image.jpg "Gentle camera movement"

# Custom duration and aspect ratio
npx tsx generate_video.ts -d /tmp/long.mp4 -t 10 -a 9:16 "Vertical video for stories"

Video Providers

ProviderFlagQualityDurationResolutionCost
Grok Imagine(default)High, cinematic1-15s480p/720pPer-second billing
fal.ai LTX-2--cheapGood, fast1-10s~480pBudget-friendly

Video Options

OptionFlagDefaultDescription
Prompt(positional)requiredText description of the video
Destination-drequiredOutput file path (.mp4)
Duration-t5Duration in seconds
Aspect ratio-a16:916:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3
Resolution-r720p480p or 720p (Grok only)
Image source--imagenoneSource image for image-to-video
Cheap mode--cheapfalseUse LTX-2 instead of Grok

Related skills

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.