Communitygithub.com

0xsline/openchatcut

通过 Fal.ai、gpt-image-2、nano-banana、MiniMax image-01 和 xAI Grok Imagine 进行 AI 图像生成。当用户想要生成或创建图像/图片/静态画面时使用。

openchatcut 是什么?

此技能将用户请求转化为由多个顶级 AI 图像生成模型生成的图像,所有模型均可通过统一的 `submit_image` 工具调用。它自动选择最佳模型:首选 `gpt-image-2` 以获取精确的提示遵循度;对于需要保持参考图像高保真度的任务,则选择 `nano-banana`;当用户特别指明或只有 MiniMax 密钥时,则使用 MiniMax 的 `image-01`;还支持通过 Fal.ai 目录或 xAI 的 Grok Imagine 进行特定模型选择。该技能严格控制输出尺寸(默认 1K),除非用户明确要求,否则不会升级至 2K 或 4K,以避免性能开销。参考图像通过服务器端处理的资产 ID 传递,支持常见的图像格式。该技能能够在 Cursor、Claude Code 和 Codex 等流行 AI 代理平台中运行,非常适合需要与现有工作流集成的开发者,可以快速生成高质量图像,并支持图片编辑、合成和批处理等功能。

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

在你喜欢的 AI 中提问

打开一个已预加载此 Agent Skill 的新对话。

文档

图像生成

通过 submit_image 生成 AI 图像(仅使用已配置的供应商密钥)。除非用户要求变体,否则每个请求优选生成一张清晰的静态图像。

模型选择

模型参考文档优势最大参考图像数
fal + falModelreferences/fal.mdFal 明确目录;各模型限制见工具 schema模型特定
gpt-image-2references/gpt-image-2.md最佳文字渲染,最强的提示遵循度16
nano-bananareferences/nano-banana.md最强的参考图像保真度14
image-01references/image-01.mdMiniMax 静态/活泼风格;通过 R2 支持一个主体参考1
grok-imaginereferences/grok-imagine.mdxAI Grok Imagine;文生图,最多 4 个输出,1K/2K0
  • 如果选择或要求 Fal.ai,请使用 model: "fal" 和请求的 falModel 或已保存的 Fal 默认值(来自能力信息)。若未选择,请询问。原生提供者的默认值及以下控件不适用于 Fal。
  • 默认值:当有对应密钥时,默认使用 gpt-image-2。
  • 参考图较多时 → 使用 nano-banana。
  • 用户明确提到 MiniMax / 仅 MiniMax 图像密钥启用时 → 使用 image-01。
  • 请遵守能力信息:不要调用供应商未配置的模型。

重要提示: 生成前,请阅读所选模型的参考文档。

工具参数

参数值默认值
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
promptOptimizer仅 MiniMax image-01 — prompt_optimizerfalse
seed仅 MiniMax 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。后端会在服务器端获取并编码这些图片字节 — 切勿自行拉取资产字节。
  • 当用户 @-引用某个图像资产时,直接在 referenceAssetIds 中传入其 ID。
  • 后端接受的格式: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,并使用简短描述性的资产名称。
  • 提交前,简要告知用户即将生成的内容 — 特别是在生成多张图像时。
  • 仅调用供应商密钥已配置的模型(依据能力信息)。

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.

相关技能