Communitygithub.com

9018/mychat

여러 공급자 게이트웨이를 사용하여 텍스트 프롬프트로 AI 비디오를 생성합니다. 사용 시나리오: (1) 텍스트 설명에서 비디오 생성, (2) 콘텐츠 제작을 위한 AI 생성 비디오 클립 생성, (3) 참조 이미지를 사용한 이미지-비디오 생성, (4) 비디오 생성 공급자(VEO, Kling, Sora, Runway, Seedance, MiniMax, Gemini Omni) 선택. 지원 게이트웨이: HeyGen API, fal.ai API, Kling 공식 직접 API, Gemini API(Gemini Omni Flash).

mychat란 무엇인가요?

이 스킬은 여러 AI 비디오 생성 공급자에 대한 통합 게이트웨이 역할을 하며, 단일 API 인터페이스를 통해 VEO, Kling, Sora, Runway, Seedance, MiniMax, Gemini Omni와 같은 다양한 모델에 액세스할 수 있습니다. 개발자는 `video_selector` 도구를 사용하여 최적의 공급자를 자동으로 선택할 수 있으며, 이 도구는 가용성, 비용, 품질 및 의도된 사용 사례(예: 영화적 느낌의 경우 Seedance 2.0 선호)를 기반으로 평가합니다. 이 스킬은 텍스트-비디오, 이미지-비디오 생성은 물론 Gemini Omni Flash를 통한 대화형 편집을 지원하며, 선택적 참조 이미지, 종횡비 구성 및 공급자별 매개변수 재정의를 허용합니다. 비동기식 워크플로우를 사용하므로 작업 제출 후 완료를 위해 폴링하며, HeyGen API, fal.ai, Kling 공식 API, Gemini API 등 여러 인증 경로를 지원하여 유연한 배포가 가능합니다.

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

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

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

문서

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

텍스트 프롬프트에서 AI 비디오를 생성합니다. 4가지 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
Kling 공식KLING_API_KEYKling 공식 Classic, Turbo 및 기본 Omni 비디오kling_official_video
Gemini APIGEMINI_API_KEY / GOOGLE_API_KEYGemini Omni Flash (생성 + 대화형 편집)gemini_omni_video

반복 편집 — Gemini Omni. 요청이 재생성 대신 기존 클립을 개선하는 경우(개체 추가/제거, 스타일 변경, 조명 또는 화면 텍스트 변경) Gemini Omni Flash는 상태 저장 다중 턴 편집을 제공하는 유일한 공급자입니다. 프롬프트를 작성하기 전에 레이어 3 gemini-omni의 권위 있는 프롬프트 가이드(참조 이미지 태그, 타임코드 구문, 편집 프롬프트 규칙)를 참조하세요.

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

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

인증

사용 가능한 공급자와 비용/품질 목표에 가장 잘 맞는 구성된 게이트웨이를 사용하세요.

  • HeyGen: HEYGEN_API_KEY를 설정하여 멀티 모델 게이트웨이에 액세스하세요.
  • fal.ai: FAL_KEY를 설정하여 fal.ai를 통해 Kling, MiniMax 및 Veo에 액세스하세요.
  • Kling 공식: KLING_API_KEY를 설정하여 provider="kling_official"을 통해 Kling의 공식 직접 API에 액세스하세요.
  • Gemini API: GEMINI_API_KEY 또는 GOOGLE_API_KEY를 설정하여 Gemini Omni 비디오 생성 및 대화형 편집에 액세스하세요.

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

fal.ai Kling(kling_video, provider="kling")과 Kling 공식(kling_official_video, provider="kling_official")은 다른 경로입니다. 공식 공급자가 선택된 경우 fal.ai 대기열 URL, FAL_KEY 또는 이미지 업로드 동작을 재사용하지 마십시오.

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_type문자열Y"GenerateVideoNode"여야 함
input.prompt문자열Y생성할 비디오의 텍스트 설명
input.provider문자열비디오 생성 공급자 (기본값: "veo_3_1"). 아래 공급자 참조
input.aspect_ratio문자열종횡비 (기본값: "16:9"). 일반적인 값: "16:9", "9:16", "1:1"
input.reference_image_url문자열이미지-비디오 생성을 위한 참조 이미지 URL
input.tail_image_url문자열마지막 프레임 가이드를 위한 꼬리 이미지 URL
input.config객체공급자별 구성 재정의

공급자

공급자값설명
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. FAL_KEY가 설정된 경우 시네마틱 및 모션 중심 작업에는 Seedance 2.0( seedance_video 통해)을 기본값으로 사용 — 단일 패스 동기화 오디오, 멀티 샷, 립싱크, 감독 수준 카메라. 사용자가 특별히 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.

9018/mychat

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.

9018/mychat

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

9018/mychat

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

9018/mychat

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".

9018/mychat

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.

9018/mychat

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.

9018/mychat

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

9018/mychat

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.

9018/mychat

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`).

9018/mychat

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.

9018/mychat

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`.

9018/mychat

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.

9018/mychat

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).

9018/mychat

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.

9018/mychat

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.

9018/mychat

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.

9018/mychat

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.

9018/mychat

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

9018/mychat

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

9018/mychat

Download video and audio from YouTube and 1000+ sites using yt-dlp. No API keys needed. Use when: (1) Downloading a video from YouTube or other sites, (2) Extracting audio from a video URL, (3) Downloading subtitles/captions from a video, (4) Getting video metadata without downloading.

관련 스킬