Communitygithub.com

Aseel1600/Edit01

テキストプロンプトからAI動画を生成するマルチゲートウェイスキル。VEO、Kling、Sora、Runway、Seedance、MiniMax、Gemini Omniなど、複数のプロバイダーとAPIパスをサポートします。

Edit01 とは?

このスキルは、AIエージェントがテキスト記述から動画を生成するための統一インターフェースを提供します。HeyGen API、fal.ai API、Kling公式API、Gemini APIという4つのゲートウェイをサポートし、それぞれが異なるプロバイダー(VEO、Kling、Sora、Runway、Seedance、MiniMax、Gemini Omni)にアクセスできます。動画生成は`video_selector`ツールを介して行うことが推奨されており、このツールが自動的に利用可能なプロバイダーを確認し、コスト比較とフォールバック処理を行います。特に、Seedance 2.0はシネマティックな動画作成に最適なデフォルトプロバイダーとして位置づけられており、シングルパスでの同期オーディオ、マルチショット生成、ディレクターレベルのカメラ制御、リップシンクなどの高度な機能を提供します。また、Gemini Omni Flashは、既存の動画クリップの反復編集(オブジェクトの追加/削除、スタイル変更、照明調整など)をステートフルなマルチターン会話で行える唯一のプロバイダーです。このスキルはClaude CodeやCursor、CodexなどのAIエージェントプラットフォームで使用することを想定しており、開発者は環境変数を設定するだけで、複雑なAPI連携を意識することなく高品質なAI動画生成をエージェントに指示できます。

対応~Claude Code✓Codex CLI~Cursor✓Gemini CLI
npx skills add https://github.com/Aseel1600/Edit01/tree/HEAD/.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はこの機能群の中で唯一、ステートフルなマルチターン編集を提供するプロバイダーです。Gemini Omni用のプロンプトを作成する前に、レイヤー3 gemini-omni の権威あるプロンプトガイド(参照画像タグ、タイムコード構文、編集プロンプトルール)を参照してください。

推奨プレミアムデフォルト — Seedance 2.0。 プレミアムゲートウェイ(FAL_KEY → seedance_video、またはHeyGenのVideo Agent / Avatar Shotsパス)が設定されている場合、Seedance 2.0はシネマティック、トレーラー、高忠実度クリップワークの推奨デフォルトです。これは、この機能群の中で単一パスでのネイティブ同期オーディオ、マルチショット生成、ディレクターレベルのカメラ制御、引用されたダイアログからのリップシンクを提供する唯一のモデルであり、2026年初頭時点でArtificial Analysis Eloで第1位にランクされています。ユーザーに特定の理由(予算、プロバイダーの好み、VEOのようなフォトリアルな風景やKlingのような特定のアニメスタイルなど)がある場合にのみ、Seedance 2.0から切り替えてください。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. POST /v1/workflows/executions を workflow_type: "GenerateVideoNode" とプロンプトとともに呼び出します
  2. 応答で execution_id を受け取ります
  3. ステータスが completed になるまで、GET /v1/workflows/executions/{id} を10秒ごとにポーリングします
  4. 出力から返された video_url を使用します

動画生成の実行

エンドポイント

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

リクエストフィールド

フィールド型必須説明
workflow_typestringはい"GenerateVideoNode" である必要があります
input.promptstringはい生成する動画のテキスト記述
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 Fast"veo_3_1_fast"より高速なVEO 3.1バリアント
VEO 3"veo3"Google VEO 3
VEO 3 Fast"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.

Aseel1600/Edit01

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.

Aseel1600/Edit01

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

Aseel1600/Edit01

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

Aseel1600/Edit01

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

Aseel1600/Edit01

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.

Aseel1600/Edit01

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.

Aseel1600/Edit01

Generate expressive, multilingual narration with fish.audio (S1 / S2-generation models) and reuse cloned voices via reference_id. Use when the user prefers fish.audio/Fish Audio TTS, wants a specific playground voice model, or needs high-emotion voice-clone narration.

Aseel1600/Edit01

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

Aseel1600/Edit01

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.

Aseel1600/Edit01

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

Aseel1600/Edit01

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.

Aseel1600/Edit01

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

Aseel1600/Edit01

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.

Aseel1600/Edit01

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

Aseel1600/Edit01

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.

Aseel1600/Edit01

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.

Aseel1600/Edit01

Best practices for Remotion - Video creation in React

Aseel1600/Edit01

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.

Aseel1600/Edit01

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.

Aseel1600/Edit01

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

関連スキル