Communitygithub.com

Army161/OpenMontage

여러 공급자 게이트웨이를 통해 텍스트 프롬프트에서 AI 비디오를 생성합니다. (1) 텍스트 설명에서 비디오 생성, (2) 콘텐츠 제작을 위한 AI 생성 비디오 클립 생성, (3) 참조 이미지를 사용한 이미지-투-비디오 생성, (4) 비디오 생성 공급자(VEO, Kling, Sora, Runway, Seedance, MiniMax) 선택 시 사용합니다. HeyGen API와 fal.ai API 두 가지 게이트웨이를 지원합니다.

OpenMontage란 무엇인가요?

이 스킬은 개발자와 AI 에이전트가 여러 AI 비디오 생성 공급자에 단일 인터페이스로 접근할 수 있도록 지원하는 멀티 게이트웨이 비디오 생성 도구입니다. HeyGen API와 fal.ai API라는 두 가지 게이트웨이를 통해 Seedance 2.0, VEO 3.1, Kling Pro, Sora v2, Runway Gen-4, MiniMax 등 주요 비디오 생성 모델을 활용할 수 있습니다. 특히 Seedance 2.0은 단일 패스 동기화 오디오, 멀티 샷 생성, 감독 수준의 카메라 제어 및 대화 립싱크를 지원하는 프리미엄 기본 모델로, 시네마틱 및 트레일러 작업에 최적화되어 있습니다. 사용자는 `video_selector` 도구를 통해 가용성, 비용, 품질을 자동으로 평가받고 최적의 공급자를 선택할 수 있으며, 각 게이트웨이 설정(환경 변수)만으로 손쉽게 통합이 가능합니다. 이 스킬은 Claude Code, Cursor, Codex와 같은 AI 에이전트 플랫폼에서 사용할 수 있도록 설계되었습니다.

지원 대상~Claude Code✓Codex CLI~Cursor
npx skills add https://github.com/Army161/OpenMontage/tree/HEAD/.agents/skills/ai-video-gen

즐겨 사용하는 AI에게 물어보기

이 에이전트 스킬이 미리 로드된 새 채팅을 엽니다.

문서

비디오 생성 (멀티 게이트웨이)

텍스트 프롬프트에서 AI 비디오를 생성합니다. 두 가지 API 게이트웨이를 통해 여러 공급자를 지원합니다:

게이트웨이환경 변수공급자도구
fal.aiFAL_KEYSeedance 2.0 (표준 + 빠름), Kling v3/v2.1, MiniMax, VEOseedance_video, kling_video, minimax_video, veo_video
HeyGenHEYGEN_API_KEYVEO 3.1, Kling Pro, Sora v2, Runway Gen-4, Seedance Pro / Lite (1.x)heygen_video

권장 프리미엄 기본값 — Seedance 2.0. 프리미엄 게이트웨이가 설정되어 있을 때(FAL_KEY → seedance_video, 또는 HeyGen의 비디오 에이전트/아바타 샷 경로), Seedance 2.0은 시네마틱, 트레일러 및 고충실도 클립 작업에 선호되는 기본값입니다. 이 모델은 단일 패스 네이티브 동기화 오디오, 멀티 샷 생성, 감독 수준의 카메라 제어 및 인용된 대화의 립싱크를 지원하는 유일한 모델이며, 2026년 초 기준 Artificial Analysis Elo에서 1위를 차지했습니다. 사용자가 특정 이유(예산, 공급자 선호도, VEO의 사실적인 풍경이나 Kling의 특정 애니메이션 스타일과 같은 스타일 적합성)가 있는 경우에만 전환하십시오. 권위 있는 프롬프팅 및 매개변수 가이드는 레이어 3 seedance-2-0을 참조하십시오.

중요: 공급자 도구를 직접 호출하는 대신 항상 video_selector를 사용하십시오. 선택기는 가용성 확인, 비용 비교 및 자동 폴백을 처리하며, 점수 엔진은 이미 시네마틱 의도에 대해 Seedance 2.0을 선호하도록 설정되어 있습니다.

인증

사용 가능한 공급자와 비용/품질 목표에 가장 잘 맞는 설정된 게이트웨이를 사용하십시오.

  • HeyGen: HEYGEN_API_KEY를 설정하여 멀티 모델 게이트웨이에 액세스합니다.
  • fal.ai: FAL_KEY를 설정하여 Kling, MiniMax 및 Veo에 액세스합니다.

레지스트리와 현재 작업 적합성을 먼저 확인하지 않고 어떤 게이트웨이를 기본값 또는 최상위 선택으로 설명하지 마십시오.

curl -X POST "https://api.heygen.com/v1/workflows/executions" \
  -H "X-Api-Key: $HEYGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"workflow_type": "GenerateVideoNode", "input": {"prompt": "일몰 시 해안 도시 위를 비행하는 드론 샷"}}'

기본 워크플로우

  1. workflow_type: "GenerateVideoNode"와 프롬프트를 사용하여 POST /v1/workflows/executions 호출
  2. 응답에서 execution_id 받기
  3. 상태가 completed가 될 때까지 10초마다 GET /v1/workflows/executions/{id} 폴링
  4. 출력에서 반환된 video_url 사용

비디오 생성 실행

엔드포인트

POST https://api.heygen.com/v1/workflows/executions

요청 필드

필드유형필수설명
workflow_typestringY"GenerateVideoNode"여야 함
input.promptstringY생성할 비디오에 대한 텍스트 설명
input.providerstring비디오 생성 공급자 (기본값: "veo_3_1"). 아래 공급자 참조.
input.aspect_ratiostring종횡비 (기본값: "16:9"). 일반 값: "16:9", "9:16", "1:1"
input.reference_image_urlstring이미지-투-비디오 생성을 위한 참조 이미지 URL
input.tail_image_urlstring마지막 프레임 가이드를 위한 테일 이미지 URL
input.configobject공급자별 구성 재정의

공급자

공급자값설명
VEO 3.1"veo_3_1"Google VEO 3.1 (기본값, 최고 품질)
VEO 3.1 빠름"veo_3_1_fast"더 빠른 VEO 3.1 변형
VEO 3"veo3"Google VEO 3
VEO 3 빠름"veo3_fast"더 빠른 VEO 3 변형
VEO 2"veo2"Google VEO 2
Kling Pro"kling_pro"Kling Pro 모델
Kling V2"kling_v2"Kling V2 모델
Sora V2"sora_v2"OpenAI Sora V2
Sora V2 Pro"sora_v2_pro"OpenAI Sora V2 Pro
Runway Gen-4"runway_gen4"Runway Gen-4
Seedance Lite"seedance_lite"Seedance Lite
Seedance Pro"seedance_pro"Seedance Pro
LTX Distilled"ltx_distilled"LTX Distilled (가장 빠름)

curl

curl -X POST "https://api.heygen.com/v1/workflows/executions" \
  -H "X-Api-Key: $HEYGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "workflow_type": "GenerateVideoNode",
    "input": {
      "prompt": "골든 아워에 해안 도시 위를 비행하는 드론 샷, 시네마틱 조명",
      "provider": "veo_3_1",
      "aspect_ratio": "16:9"
    }
  }'

TypeScript

interface GenerateVideoInput {
  prompt: string;
  provider?: string;
  aspect_ratio?: string;
  reference_image_url?: string;
  tail_image_url?: string;
  config?: Record<string, any>;
}

interface ExecuteResponse {
  data: {
    execution_id: string;
    status: "submitted";
  };
}

async function generateVideo(input: GenerateVideoInput): Promise<string> {
  const response = await fetch("https://api.heygen.com/v1/workflows/executions", {
    method: "POST",
    headers: {
      "X-Api-Key": process.env.HEYGEN_API_KEY!,
      "Content-Type": "application/json",
    },
    body: JSON.stringify({
      workflow_type: "GenerateVideoNode",
      input,
    }),
  });

  const json: ExecuteResponse = await response.json();
  return json.data.execution_id;
}

Python

import requests
import os

def generate_video(
    prompt: str,
    provider: str = "veo_3_1",
    aspect_ratio: str = "16:9",
    reference_image_url: str | None = None,
    tail_image_url: str | None = None,
) -> str:
    payload = {
        "workflow_type": "GenerateVideoNode",
        "input": {
            "prompt": prompt,
            "provider": provider,
            "aspect_ratio": aspect_ratio,
        },
    }

    if reference_image_url:
        payload["input"]["reference_image_url"] = reference_image_url
    if tail_image_url:
        payload["input"]["tail_image_url"] = tail_image_url

    response = requests.post(
        "https://api.heygen.com/v1/workflows/executions",
        headers={
            "X-Api-Key": os.environ["HEYGEN_API_KEY"],
            "Content-Type": "application/json",
        },
        json=payload,
    )

    data = response.json()
    return data["data"]["execution_id"]

응답 형식

{
  "data": {
    "execution_id": "node-gw-v1d2e3o4",
    "status": "submitted"
  }
}

상태 확인

엔드포인트

GET https://api.heygen.com/v1/workflows/executions/{execution_id}

curl

curl -X GET "https://api.heygen.com/v1/workflows/executions/node-gw-v1d2e3o4" \
  -H "X-Api-Key: $HEYGEN_API_KEY"

응답 형식 (완료됨)

{
  "data": {
    "execution_id": "node-gw-v1d2e3o4",
    "status": "completed",
    "output": {
      "video": {
        "video_url": "https://resource.heygen.ai/generated/video.mp4",
        "video_id": "abc123"
      },
      "asset_id": "asset-xyz789"
    }
  }
}

완료 폴링

async function generateVideoAndWait(
  input: GenerateVideoInput,
  maxWaitMs = 600000,
  pollIntervalMs = 10000
): Promise<{ video_url: string; video_id: string; asset_id: string }> {
  const executionId = await generateVideo(input);
  console.log(`비디오 생성 제출됨: ${executionId}`);

  const startTime = Date.now();
  while (Date.now() - startTime < maxWaitMs) {
    const response = await fetch(
      `https://api.heygen.com/v1/workflows/executions/${executionId}`,
      { headers: { "X-Api-Key": process.env.HEYGEN_API_KEY! } }
    );
    const { data } = await response.json();

    switch (data.status) {
      case "completed":
        return {
          video_url: data.output.video.video_url,
          video_id: data.output.video.video_id,
          asset_id: data.output.asset_id,
        };
      case "failed":
        throw new Error(data.error?.message || "비디오 생성 실패");
      case "not_found":
        throw new Error("워크플로우를 찾을 수 없음");
      default:
        await new Promise((r) => setTimeout(r, pollIntervalMs));
    }
  }

  throw new Error("비디오 생성 시간 초과");
}

사용 예제

간단한 텍스트-투-비디오

curl -X POST "https://api.heygen.com/v1/workflows/executions" \
  -H "X-Api-Key: $HEYGEN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "workflow_type": "GenerateVideoNode",
    "input": {
      "prompt": "햇살 가득한 공원을 걷는 사람, 얕은 피사계 심도"
    }
  }'

이미지-투-비디오

{
  "workflow_type": "GenerateVideoNode",
  "input": {
    "prompt": "이 제품 사진을 느린 줌과 부드러운 입자 효과로 애니메이션화",
    "reference_image_url": "https://example.com/product-photo.png",
    "provider": "kling_pro"
  }
}

소셜 미디어용 세로 형식

{
  "workflow_type": "GenerateVideoNode",
  "input": {
    "prompt": "트렌디한 커피숍 내부, 카운터 위를 천천히 패닝하는 카메라",
    "aspect_ratio": "9:16",
    "provider": "veo_3_1"
  }
}

LTX를 사용한 빠른 생성

{
  "workflow_type": "GenerateVideoNode",
  "input": {
    "prompt": "추상적인 화려한 모양이 변형되고 흐르는",
    "provider": "ltx_distilled"
  }
}

모범 사례

  1. 프롬프트를 자세하게 작성 — 카메라 움직임, 조명, 스타일, 분위기 세부 정보 포함
  2. 시네마틱 및 모션 중심 작업의 경우 기본적으로 Seedance 2.0 사용 (seedance_video 통해) (FAL_KEY 설정 시) — 단일 패스 동기화 오디오, 멀티 샷, 립싱크, 감독 수준의 카메라. 사용자가 특별히 Google 또는 OpenAI 모션 캐릭터를 원하는 경우 VEO 3.1 / Sora V2 Pro 사용; 속도가 중요한 제약 조건인 경우에만 ltx_distilled 또는 veo3_fast 사용
  3. 이미지-투-비디오 생성을 위해 참조 이미지 사용 — 제품 사진이나 정지 이미지 애니메이션에 적합
  4. 비디오 생성은 가장 느린 워크플로우 — 최대 5분까지 허용, 10초마다 폴링
  5. 종횡비 중요 — 소셜 미디어 스토리/릴에는 9:16, 가로에는 16:9, 정사각형에는 1:1 사용
  6. 출력에는 asset_id 포함 — 다른 HeyGen 워크플로우에서 생성된 비디오를 참조하는 데 사용
  7. 출력 URL은 임시적 — 생성된 비디오를 즉시 다운로드하거나 저장

Individual skills in this repo

This repo contains 20 individual skills — each has its own dedicated page.

Army161/OpenMontage

Create AI avatar videos with precise control over avatars, voices, scripts, scenes, and backgrounds using HeyGen's v2 API. Use when: (1) Choosing a specific avatar and voice for a video, (2) Writing exact scripts for an avatar to speak, (3) Building multi-scene videos with different backgrounds per scene, (4) Creating transparent WebM videos for compositing, (5) Using talking photos as video presenters, (6) Integrating HeyGen avatars with Remotion, (7) Batch video generation with exact specs, (8) Brand-consistent production videos with precise control.

Army161/OpenMontage

Use p5.js/canvas for local procedural character effects: particles, weather, squash/stretch, walk cycles, and environmental motion.

Army161/OpenMontage

Review local character animation with schema checks, Playwright browser previews, frame sampling, and FFmpeg/ffprobe final output checks.

Army161/OpenMontage

Create videos from a text prompt using HeyGen's Video Agent. Use when: (1) Creating a video from a description or idea, (2) Generating explainer, demo, or marketing videos from a prompt, (3) Making a video without specifying exact avatars, voices, or scenes, (4) Quick video prototyping or drafts, (5) One-shot prompt-to-video generation, (6) User says "make me a video" or "create a video about X".

Army161/OpenMontage

Generate Mandarin and multilingual narration with Volcengine Doubao Speech 2.0. Use when creating Chinese voiceovers, when the user prefers Doubao/Volcengine/火山引擎/豆包 TTS, or when narration needs character-level timestamp metadata for subtitles.

Army161/OpenMontage

Video and audio processing with FFmpeg. Use for format conversion, resizing, compression, audio extraction, and preparing assets for Remotion. Triggers include converting GIF to MP4, resizing video, extracting audio, compressing files, or any media transformation task.

Army161/OpenMontage

Use when implementing Disney's 12 animation principles with Framer Motion in React applications

Army161/OpenMontage

All animation knowledge for HyperFrames — atomic motion rules, multi-phase scene blueprints, scene transitions, broader motion-design techniques, AND the seven runtime adapters (GSAP default, plus Lottie, Three.js, Anime.js, CSS keyframes, Web Animations API, TypeGPU). Use for any motion or animation task: pick 2-4 rules and compose, or load a blueprint, or look up runtime-specific API (e.g. GSAP eases / Lottie player / Three.js mixer). HyperFrames-native: single paused timeline, seek-safe, deterministic.

Army161/OpenMontage

HyperFrames CLI dev loop. Use when running npx hyperframes init, add, catalog, capture, lint, validate, inspect, layout, snapshot, preview, play, render, publish, lambda, doctor, browser, info, upgrade, skills, compositions, docs, benchmark, telemetry, transcribe, tts, or remove-background, or when troubleshooting the HyperFrames build/render environment. Entry point for AWS Lambda cloud rendering (`hyperframes lambda deploy / render / progress / destroy / policies`).

Army161/OpenMontage

The HyperFrames composition contract — build one renderable project. Use for composition structure, the `data-*` timing attributes, `class="clip"`, tracks, sub-compositions, variables, framework-owned media playback, deterministic-render rules, and validation. Read before writing composition HTML.

Army161/OpenMontage

Non-animation creative direction for HyperFrames videos. Use for design spec (frame.md / design.md) handling, palettes, typography, narration, beat planning, audio-reactive visuals, composition patterns, and brand / style decisions. For atomic motion patterns and scene blueprints, use `hyperframes-animation`.

Army161/OpenMontage

Audio and media assets for HyperFrames compositions, produced by one shared audio engine (`scripts/audio.mjs`) — multi-provider TTS (HeyGen / ElevenLabs / Kokoro local), background music + sound effects (HeyGen audio-library retrieval by default, with local Lyria / MusicGen BGM generation and a bundled SFX library as the no-credential fallback), Whisper transcription, background removal, and caption authoring. Use for voiceover / TTS, BGM, SFX / sound effects, transcription, captions / subtitles / lyrics / karaoke / per-word styling, voice + provider selection, and music-mood prompting.

Army161/OpenMontage

Install and wire registry blocks and components into HyperFrames compositions. Use when running hyperframes add, installing a block or component, wiring an installed item into index.html, or working with hyperframes.json. Covers the add command, install locations, block sub-composition wiring, component snippet merging, registry discovery, and authoring a new block or component to contribute upstream (idea → scaffold → validate → PR).

Army161/OpenMontage

Use when the user wants a short, design-led motion graphic where motion is the message: kinetic typography, stat or number count-up, chart/data-viz hit, logo sting, brand lockup, lower-third, callout, social overlay, animated headline/tweet/news item, motion poster, or quick captured-page highlight. Usually under 10s and up to ~30s, with no narration arc, voice-over, or live-action subject. Can render to MP4 or transparent overlay. Not for longer, multi-scene, narrated, or brand-reel pieces (use general-video), narrated website videos (website-to-video), topic explainers (faceless-explainer), product promos (product-launch-video), PR videos (pr-to-video), or captions on existing footage (embedded-captions). When unsure whether it's a quick motion-first piece or a longer / narrated treatment, see /hyperframes.

Army161/OpenMontage

Use when the user has a music track (an audio file, or a video to pull audio from) and wants a beat-synced HyperFrames video, calm to hard-hitting. The music drives everything: one analyzer reads it once, the orchestrator lays out the frames and fills a per-frame plan, and one sub-agent builds each frame. Typography and templates are the floor — a complete video needs zero assets — but any images or videos the user supplies are cut into the frames on the same beat grid (beat-cut / ken-burns). The genre (lyric video, slideshow, kinetic promo) falls out of the per-frame choices; the pipeline never branches on it.

Army161/OpenMontage

Best practices for Remotion - Video creation in React

Army161/OpenMontage

Toolkit-specific Remotion patterns — custom transitions, shared components, and project conventions. For core Remotion framework knowledge (hooks, animations, rendering, etc.), see the `remotion-official` skill.

Army161/OpenMontage

Port an existing Remotion (React) composition to HyperFrames HTML. Use ONLY when the user explicitly asks to port/convert/migrate/translate a Remotion source. Do NOT use: (a) authoring a new HyperFrames composition; (b) Remotion mentioned in passing; (c) Remotion code shared as reference only; (d) "same video as my Remotion one" without explicit migrate request — treat as fresh build. Doubt → `/general-video`. One-way, Remotion-only: no reverse export (HyperFrames→Remotion or any framework), no non-Remotion source (After Effects, Framer Motion, plain React/CSS) → out of scope, re-create via `/general-video`. Flags unsupported patterns (useState, useEffect, async calculateMetadata, third-party React libs, `@remotion/lambda`) and recommends runtime interop over lossy translation. Unsure whether to port vs. build fresh, or only a passing Remotion mention? → /hyperframes.

Army161/OpenMontage

Animate SVG character rigs with GSAP, CSS transforms, Remotion frame control, and HyperFrames-compatible browser previews.

Army161/OpenMontage

Three.js animation - keyframe animation, skeletal animation, morph targets, animation mixing. Use when animating objects, playing GLTF animations, creating procedural motion, or blending animations.

관련 스킬