Skip to content
Content
Command

/generate-image

Generate AI images for your Remotion project. Describe what you need — backgrounds, thumbnails, characters, abstract art — and get production-ready images via AI generation or Replicate models.

From plugin
9013 skills3 agents13 commands2 hooks5 MCP
shell
$ npx -y skills add DojoCodingLabs/remotion-superpowers --agent claude-code

Ships with remotion-superpowers. Installing the plugin gets this command.

How it fires

How this command gets triggered: by you, by Claude, or both.

  • Fires itselfClaude auto-loads it when your prompt matches the work.
  • You can call itInvoke it directly when you want it.
  • Slash command/generate-image

Context preview

What this command does when you run it.

Generate AI images for your Remotion project. Describe what you need — backgrounds, thumbnails, characters, abstract art — and get production-ready images via AI generation or Replicate models.

Command definition

generate-image.md
name: generate-image
description: Generate AI images for your Remotion project. Describe what you need — backgrounds, thumbnails, characters, abstract art — and get production-ready images via AI generation or Replicate models.

Generate Image — AI Image Creation

You are helping the user generate custom images for their Remotion video project.

Workflow

1. Understand the Need

Ask the user (if not already clear):

  • **What is the image for?** — Scene background, thumbnail, character, product shot, abstract art, diagram?
  • **Style** — Photorealistic, illustration, 3D render, flat design, watercolor, pixel art?
  • **Dimensions** — Landscape (1920x1080), portrait (1080x1920), square (1080x1080)?
  • **Mood/Colors** — Bright, dark, warm, cool, neon, pastel?

2. Craft the Prompt

Write a detailed image generation prompt. Good prompts include:

  • Subject description
  • Art style
  • Lighting and mood
  • Camera angle/perspective
  • Color palette
  • Background details

**Good prompt examples:**

  • "Modern tech startup office, aerial view, clean minimalist design, bright natural lighting, white and blue color scheme, photorealistic"
  • "Abstract geometric pattern, dark background, glowing neon purple and blue lines, futuristic, 3D render"
  • "Friendly robot mascot waving, cartoon illustration style, pastel colors, clean white background, suitable for logo"
  • "Golden hour cityscape, drone aerial shot, warm orange and pink sky, downtown skyline silhouette, cinematic"

3. Generate via remotion-media

Use remotion-media generate_image:
- prompt: [crafted prompt]
- project_path: [project root path]

The image is saved to the project's `public/` directory.

4. Generate via Replicate MCP (if available)

If the user has `REPLICATE_API_TOKEN` set and wants more model options, use the Replicate MCP tools:

# FLUX for high-quality images
replicate_run:
  model: "black-forest-labs/flux-1.1-pro"
  input:
    prompt: "[crafted prompt]"
    aspect_ratio: "16:9"
    output_format: "png"

Download the output to the project:

curl -o public/images/[descriptive-name].png "[replicate_output_url]"

Available Replicate models:

  • **FLUX 1.1 Pro** (`black-forest-labs/flux-1.1-pro`) — High quality, great prompt following
  • **Imagen 4** (`google/imagen-4`) — Google's latest, photorealistic
  • **Ideogram v3** (`ideogram-ai/ideogram-v3`) — Best for text-in-image
  • **FLUX Kontext** (`black-forest-labs/flux-kontext-pro`) — Style control, multi-reference

See `skills/remotion-production/rules/replicate-models.md` and `rules/image-generation.md` for detailed prompt engineering and model selection guidance.

5. Show Usage in Remotion

import { Img, staticFile } from "remotion";

// As a background
<Img
  src={staticFile("images/generated-background.png")}
  style={{ width: "100%", height: "100%", objectFit: "cover" }}
/>

// As an element with animation
const frame = useCurrentFrame();
const scale = spring({ frame, fps, config: { damping: 200 } });
<Img
  src={staticFile("images/product.png")}
  style={{ transform: `scale(${scale})` }}
/>

6. Iterate

If the image isn't right:

  • Adjust the prompt — be more specific about what's wrong
  • Try a different style descriptor
  • Generate multiple variations and let the user pick
  • Use negative prompts if the model supports them ("no text, no watermark")
Read more
Read it on GitHub ↗
Ships withremotion-superpowers

🎬 Claude Code plugin — full video production studio for Remotion. AI voiceovers, music, stock footage, image/video generation, TikTok captions, 3D, transitions & AI review loop. 5 MCP servers, 13 commands. Free & open source by Dojo Coding.

Get the whole plugin, auto-invoked
Stats
90
Stars
0
Views
19
Forks
Maintained
Maintenance
Shell
Language
MIT
License
5mo ago
Last commit
5mo ago
Created

Repo: DojoCodingLabs/remotion-superpowers