Generates images and videos via Gemini, fal.ai FLUX.2 klein 4B, Grok Imagine, and fal.ai LTX-2. Supports cheap mode, aspect ratio, quality settings, and reference image editing.
Ships in aviz85-claude-skills-library. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Generate images using Google's Gemini model (default) or fal.ai FLUX.2 klein 4B (cheap mode).
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:
/tmp/ for temp images)poster_0.jpg in scripts folder| Provider | Flag | Use Case | Cost |
|---|---|---|---|
| Gemini | (default) | High quality, best results | Higher |
| fal.ai klein 4B | --cheap | Fast, budget-friendly | ~$0.003/image |
--cheap)Uses fal.ai FLUX.2 klein 4B - a distilled FLUX model optimized for speed and cost.
Why use cheap mode?
Endpoints:
fal-ai/flux-2/klein/4bfal-ai/flux-2/klein/4b/editBest for:
Use Gemini instead for:
Control image resolution with --quality or -q:
| Quality | Resolution | Use Case |
|---|---|---|
1K | 1024px | Default - fast, good for web |
2K | 2048px | High quality - print, detailed posters |
npx tsx generate_poster.ts -q 2K "High quality poster"
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:
| Ratio | Use Case |
|---|---|
3:2 | Horizontal (DEFAULT - use this unless user specifies otherwise) |
1:1 | Square - Instagram, profile pics |
2:3 | Vertical - Pinterest, posters |
16:9 | Wide - YouTube thumbnails, headers |
9:16 | Tall - Stories, reels, TikTok |
npx tsx generate_poster.ts --aspect 3:2 "Your prompt"
npx tsx generate_poster.ts -a 16:9 "Your prompt"
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.
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:
_1, _2, etc./tmp/ for temporary images that will be uploaded elsewhereCreate scripts/.env:
GEMINI_API_KEY=your_gemini_api_key
FAL_KEY=your_fal_api_key
XAI_API_KEY=your_xai_api_key
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.
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."
-d flag (MANDATORY)--aspect (default: 3:2)Generate videos using xAI Grok Imagine Video (default) or fal.ai LTX-2 (cheap mode).
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"
| Provider | Flag | Quality | Duration | Resolution | Cost |
|---|---|---|---|---|---|
| Grok Imagine | (default) | High, cinematic | 1-15s | 480p/720p | Per-second billing |
| fal.ai LTX-2 | --cheap | Good, fast | 1-10s | ~480p | Budget-friendly |
| Option | Flag | Default | Description |
|---|---|---|---|
| Prompt | (positional) | required | Text description of the video |
| Destination | -d | required | Output file path (.mp4) |
| Duration | -t | 5 | Duration in seconds |
| Aspect ratio | -a | 16:9 | 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3 |
| Resolution | -r | 720p | 480p or 720p (Grok only) |
| Image source | --image | none | Source image for image-to-video |
| Cheap mode | --cheap | false | Use LTX-2 instead of Grok |
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
image-generation, video-generation, fal-ai, gemini, grok-imagine, ai-poster
/aviz85-claude-skills-library:image-generationfrom aviz85-claude-skills-library
aviz85-claude-skills-library@cascade-content-creation-misc-1 is listed by joshuarweaver/cascade-content-creation-misc-1 — review the source before installing
npx claudepluginhub joshuarweaver/cascade-content-creation-misc-1 --plugin aviz85-claude-skills-library35 skills in this plugin
/aviz-skills-installerInstall skills from the AVIZ Skills Library. Use when user wants to install a skill, browse available skills, set up Claude Code skills, or asks about skill installation. Triggers on "install skill", "add skill", "setup skill", "available skills", "skill library", "browse skills"./calendarGoogle Calendar integration via Apps Script API. Use when checking schedule, meetings, today's events, weekly calendar, or adding events./cinematic-slidesCreate cinematic HTML presentations with AI video backgrounds, deployed to GitHub Pages. Use for: slides, presentation, deck, cinematic slides, video presentation, animated slides, live presentation./claudability-analyzerAnalyzes professions/jobs for Claude Code automation opportunities. Triggers: 'how can Claude help me', 'what can Claude do for', 'I'm a [profession]', 'help me as a [job]', 'I work as', describing their work + asking about Claude. Use whenever user mentions their profession/role and wants to discover what Claude can automate./creative-seedsInject creative absurdity to break AI pattern-thinking before creative tasks. Randomly samples surreal micro-stories to spark unconventional thinking. Use before brainstorming, naming, writing, or any task needing fresh perspective./deep-interviewConduct deep adaptive interviews to extract and organize knowledge into structured files and folders. Use when user says "interview me about X", "deep interview", "extract my knowledge", "build knowledge base from interview", "ask me questions about X", or wants to systematically capture expertise on any topic through guided questioning.2 plugins in one repository ship this exact skill · first indexed Jul 8, 2026
Other plugins' skills for the same job