Communitygithub.com

画像生成(OpenChatCut)

Fal.ai、gpt-image-2、nano-banana、MiniMax image-01、xAI Grok Imagine を使用してAI画像を生成します。ユーザーが画像・写真・静止画の生成を希望する際に使用します。

画像生成(OpenChatCut) とは?

このスキルは、複数の画像生成プロバイダー(Fal.ai、gpt-image-2、nano-banana、MiniMax image-01、xAI Grok Imagine)に対応したAI画像生成機能です。ユーザーのリクエストに応じて最適なモデルを自動選択し、高品質な画像を生成します。主にClaude CodeやCursor、CodexなどのAIエージェント環境で動作し、`submit_image` ツールを通じて画像生成を実行します。参照画像を用いた編集・合成や、複数バリエーションの生成もサポート。アスペクト比や解像度、画質などの細かいパラメータ制御が可能で、プロダクション用途にも適しています。また、gpt-image-2はテキストレンダリングとプロンプト追従性に優れ、nano-bananaは参照画像の忠実度が高く、MiniMaxは独自のスタイルを持ち、Grok Imagineはテキスト-to-画像に特化しています。各モデルの特性を理解し、ユーザーの意図に合わせた生成が行えます。

対応~Claude Code~Codex CLI~Cursor
npx skills add https://github.com/0xsline/openchatcut/tree/HEAD/src/agent/skills/image-gen

お気に入りのAIに質問する

このエージェントスキルを事前に読み込んだ状態で新しいチャットを開きます。

ドキュメント

画像生成

submit_image(設定済みプロバイダーのキーのみ)を使用してAI画像を生成します。ユーザーがバリエーションを明示的に要求しない限り、リクエストごとに1枚の明確な静止画を優先します。

モデル選択

モデルリファレンス強み最大参照数
fal + falModelreferences/fal.md明示的なFalカタログ;ツールスキーマでモデルごとの制限を確認モデル依存
gpt-image-2references/gpt-image-2.md最高のテキストレンダリング、最も強力なプロンプト追従16
nano-bananareferences/nano-banana.md最も高い参照画像忠実度14
image-01references/image-01.mdMiniMax静止画/ライブスタイル;R2経由で1つの被写体参照1
grok-imaginereferences/grok-imagine.mdxAI Grok Imagine;テキストto画像、最大4出力、1K/2K0
  • Fal.aiが選択または要求された場合は、model: "fal" と要求された falModel または capabilities から保存されているFalデフォルト値を使用。選択されていない場合はユーザーに確認。ネイティブプロバイダーのデフォルトと以下に示す制御はFalには適用されません。
  • デフォルト:そのキーが有効な場合は gpt-image-2。
  • 参照画像が多い場合 → nano-banana。
  • ユーザーがMiniMaxを指定した、またはMiniMax画像キーのみが有効な場合 → image-01。
  • capabilitiesを尊重:設定されていないベンダーのモデルは呼び出さない。

重要: 生成前に、選択したモデルのリファレンスを読んでください。

ツールパラメータ

パラメータ値デフォルト
aspectRatio1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 4:5, 5:4, 21:916:9
imageSize512px, 1K, 2K, 4K(モデル依存)1K
width / heightGPT Image: 512–3840、/16単位;MiniMax: 512–2048、/8単位—
qualitylow, medium, high, auto(gpt-image-2のみ)high
referenceAssetIdsプロジェクトアセットIDの配列 — バックエンドがサーバーサイドでバイト列を解決—
nameライブラリに表示される短い説明的なアセット名—
count生成する画像の枚数(1–10;image-01は最大9)1
promptOptimizerMiniMax image-01 のみ — prompt_optimizerfalse
seedMiniMax image-01 のみ—
maskAssetId, background, moderation, inputFidelityGPT Image編集/出力制御—
outputFormat, outputCompressionGPT Image PNG/JPEG/WebP制御PNG

デフォルト

  • アスペクト比:16:9。プロジェクトの構成が16:9でない場合は、生成前にユーザーに希望のアスペクト比を確認してください。
  • サイズ:1K。

送信前に確認

  • サイズを自動的にアップグレードしない。
  • ユーザーが明示的に要求した場合のみ、imageSize: "2K" または "4K" を渡す。2K/4Kは実験的であり、遅くなる可能性があることを警告する。

参照画像

ユーザーが編集、合成、または視覚的なガイドとして使用するソース素材を提供した場合に使用します(例:「背景を変更して」「これらをポスターに合成して」)。

  • referenceAssetIds にプロジェクトアセットIDを渡す。バックエンドがサーバーサイドでそれらを取得しエンコードするため、アセットのバイト列を自分で取得しないでください。
  • ユーザーが画像アセットを@参照した場合、そのIDを referenceAssetIds に直接渡します。
  • バックエンドが受け付けるフォーマット:png, jpeg, webp, svg(自動的にpngにラスタライズ), heic, heif。各ファイル50MB以下。

実行例

// 基本生成
submit_image({
  model: "gpt-image-2",
  prompt: "かわいいオレンジ色の猫",
  name: "Cat",
});

// 画質指定(gpt-image-2のみ)
submit_image({
  model: "gpt-image-2",
  prompt: "大胆なタイトルのヒーローポスター",
  quality: "high",
  name: "Hero Poster",
});

// 参照画像 — プロジェクトアセットIDを渡す;バックエンドがバイト列を解決
submit_image({
  model: "gpt-image-2",
  prompt: "背景をビーチに変更",
  referenceAssetIds: ["<assetId>"],
  name: "Beach Edit",
});

// 参照画像が多い場合 nano-banana
submit_image({
  model: "nano-banana",
  prompt: "合成ポスター",
  referenceAssetIds: ["<id1>", "<id2>"],
  name: "Composite",
});

// 複数画像
submit_image({
  model: "gpt-image-2",
  prompt: "商品写真",
  count: 3,
  name: "Product",
});

// MiniMax(オプションで単一被写体参照;参照にはR2の設定が必要)
submit_image({
  model: "image-01",
  prompt: "大理石の上に置かれたマットな商品ボトル、柔らかなスタジオ照明",
  name: "Bottle still",
  promptOptimizer: false,
});

OpenChatCutの submit_image は、プロバイダーのパスによって完了したプールアセットを同期的に返す場合があります。jobId が返された場合は track_progress を使用し、それ以外の場合は結果のアセットIDを完了として扱います。

ルール

  • 常に短い説明的なアセット名を name に指定する。
  • 送信前に、生成しようとしている内容をユーザーに簡単に伝える。特に複数画像を生成する場合は重要。
  • ベンダーキーが設定されているモデルのみを呼び出す(capabilitiesのプロンプトに従う)。

Individual skills in this repo

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

0xsline/openchatcut

Connect an MCP-capable coding agent to OpenChatCut and edit local video projects. Use when the user asks to install, connect, or set up OpenChatCut; inspect or edit an OpenChatCut project; work with its timeline, transcript, captions, media, generation, motion graphics, audio, color, or export tools; or recover from an OpenChatCut MCP error.

0xsline/openchatcut

Use when acquiring or importing media into a OpenChatCut project asset library for video editing or creation, including local/attached videos, user-provided paths, public media URLs, web video/audio/image assets, upload fallback decisions, and deciding between import_media, download_media, or manual user action.

0xsline/openchatcut

Use when a OpenChatCut video editing or creation workflow needs export, render, download, share, final delivery, subtitle-file export, render choice, local-only asset handling, or export fallback explanation.

0xsline/openchatcut

Use when a OpenChatCut tool call fails or returns an unexpected shape.

0xsline/openchatcut

Music generation via Mureka, MiniMax, Atlas Cloud, and Sonilo. Use for instrumentals, songs, soundtracks, track/stem generation, covers, or video-conditioned scoring of the finished cut through `submit_music`.

0xsline/openchatcut

OpenChatCut product knowledge — UI layout, editor features, and how generation providers are configured. Use when the user asks about the product interface, how to use a feature, where to find something, or needs GUI guidance for something the agent cannot do directly. Also use as fallback when a task fails and the user needs to complete it manually in the UI. NOT for live project-state queries ("where are my folders?", "what's on my timeline?", "where is clip X?") — those are answered by `read_project`, not by this skill.

0xsline/openchatcut

AI shader generator for WebGL video effects, transitions, masks, and color grading (LUT / 调色 / 电影感 / film look). Use when the user wants a video effect (滤镜 / 特效), a transition (转场 / crossfade / wipe / cube / 3d), a mask (蒙版 / 遮罩 / reveal), a zoom / push-in (推近 / 推镜头), or a color grade — try the built-in effects (zoom, builtin LUTs) before generating a new shader.

0xsline/openchatcut

Use when checking whether agent edits are reflected in the OpenChatCut project and editor.

0xsline/openchatcut

AI video generation via Fal.ai, Seedance 2.0, Kling, MiniMax Hailuo, xAI Grok Imagine, and OFox. Use when the user wants to generate a video clip — text-to-video, image-to-video, first/last-frame transitions, reference-guided generation, multi-shot, or generatively editing / extending an existing clip.

0xsline/openchatcut

Text-to-Speech (TTS), voiceover, narration placement/sync, and custom sound effects (SFX) generator. Use when the user wants generated speech from text, wants to add/replace/align narration or voiceover for an existing video/timeline, wants to keep existing voiceover synced after visual retiming edits, needs voice audition/selection, or explicitly wants a newly generated/custom sound effect that is not available in the Sound Effects library.

0xsline/openchatcut

Use when the agent should ask the user for structured input with an in-chat form, including single-select, multi-select, text fields, style pickers, or voice audition choices.

関連スキル