当前位置: 首页 > Skill >

AI Image & Video Generator — GPT Image 2, Seedance, ComfyUI

AI Image & Video Generator — GPT Image 2, Seedance, ComfyUI

AI Image & Video Generator — GPT Image 2, Seedance, ComfyUI

使用多提供商路由的文本生成图像,支持 GPT Image 2、Nanobanana 2、MidjourneyV8.1 与 Seedance 2

1.0.36 2026.11.25 255
获取Skill文件查看使用说明
作 者:沈安 许可证: 更新时间:2026.11.25
本文目录展开

Creative Toolkit

Generate professional AI images through a unified interface that routes across multiple providers. Search curated prompts, enhance ideas into production-ready descriptions, and manage local ComfyUI workflows — all from a single MCP server.

Quick Start

Add the MCP server to your mcporter config (~/.config/mcporter/config.json):

{
  "mcpServers": {
    "creative-toolkit": {
      "command": "npx",
      "args": ["-y", "meigen@1.3.3"]
    }
  }
}

Free tools (search, enhance, inspire) work immediately — no API key needed:

mcporter call creative-toolkit.search_gallery query="cyberpunk"
mcporter call creative-toolkit.enhance_prompt brief="a cat in space" style="realistic"

To unlock image generation, configure one of these providers:

Provider Config What you need
MeiGen Cloud MEIGEN_API_TOKEN Token from meigen.ai (avatar → Settings → API Keys)
Local ComfyUI comfyuiUrl A running ComfyUI instance — no external API needed
Any OpenAI-compatible API openaiApiKey + openaiBaseUrl + openaiModel Your own key from Together AI, Fireworks AI, etc.

Set credentials in ~/.clawdbot/.env, ~/.config/meigen/config.json, or add an "env" block to the mcporter config above. See references/providers.md for details.

Sandboxed environments: if the host can't write to the default ~/Pictures/meigen save path, set the MEIGEN_OUTPUT_DIR env var to a writable directory (supports ~ expansion).

Available Tools

Free — no API key required

Tool What it does
search_gallery Semantic search across 1,446 AI image prompts. Supports category filtering and curated browsing. Returns prompt text, thumbnails, and metadata.
get_inspiration Get the full prompt and high-res images for any gallery entry. Use after search_gallery to get copyable prompts.
enhance_prompt Expand a brief idea into a detailed, style-aware prompt with lighting, composition, and material directions. Supports realistic, anime, and illustration styles.
list_models List all available models across configured providers with capabilities and supported features.

Requires configured provider

Tool What it does
generate_image Generate an image from a text prompt. Routes to the best available provider. Supports aspect ratio, seed, and reference images.
generate_image (with local paths) Pass local file paths directly in referenceImages — images are auto-compressed locally (max 2MB, 2048px) and prepared for the selected provider. ComfyUI handles local files entirely within the local workflow.
comfyui_workflow List, view, import, modify, and delete ComfyUI workflow templates. Adjust steps, CFG scale, sampler, and checkpoint without editing JSON.
manage_preferences Save and load user preferences (default style, aspect ratio, style notes, favorite prompts).

Important Rules

Never describe generated images

You cannot see generated images. After generation, only present the exact data from the tool response:

**Direction 1: Modern Minimal**
- Image URL: https://images.meigen.ai/...
- Saved to: ~/Pictures/meigen/2026-02-08_xxxx.jpg

Do NOT write creative commentary about what the image "looks like".

Never specify model or provider

Do NOT pass model or provider to generate_image unless the user explicitly asks. The server auto-selects the best available provider and model.

Midjourney V8.1

model: "midjourney-v8.1". Unified general-purpose Midjourney model — handles photorealistic AND stylized/anime content in one model (no separate Niji model exposed). ~45s, accepts max 1 reference image, returns 4 candidate images per generation.

  • Use for product photography, portraits, landscapes, cinematic shots, illustration, anime — V8.1 covers them all.
  • Resolution: pass resolution: "1K" (default) or "2K" (costs more, best for posters/wallpapers).
  • Advanced params (stylize/chaos/weird/raw/iw/sw/sv/quality) run with fixed server-side defaults and cannot be tuned from MCP. The only exception is sref, settable via --sref <code> at the end of the prompt (Midjourney style codes only — numeric like 3799554500 or text like niji-cute-v1; no URLs or local paths).
  • Other Midjourney flags (--ar, --chaos, --niji, --seed, etc.) and legacy syntax (::N weights, [a|b] permutations) are silently stripped. Pass aspect ratio via the aspectRatio parameter, not --ar.
  • Prompt enhancement: pass style: 'realistic' for general intent, style: 'anime' for anime/illustration intent — V8.1 follows the prompt and benefits from explicit anime trigger words for stylized output.

Always confirm before generating multiple images

When the user wants multiple variations, present options first and ask which direction(s) to try. Include an "all of the above" option. Never auto-generate all variants without user confirmation.

Workflow Modes

Mode 1: Single Image

User wants one image. Write a prompt (or call enhance_prompt if the description is brief), generate, present URL + path.

Mode 2: Prompt Enhancement + Generation

For brief ideas (under ~30 words, lacking visual details), enhance first:

1. enhance_prompt brief="futuristic city" style="realistic"
   -> Returns detailed prompt with camera lens, lighting, atmospheric effects

2. generate_image prompt="<enhanced prompt>"
   -> Omit aspectRatio to let MeiGen auto-infer (recommended). Pass an explicit
      value like aspectRatio="16:9" only when the user asked for that ratio.

Mode 3: Parallel Generation (2+ images)

User needs multiple variations — different directions, styles, or concepts.

  1. Plan directions, present as a table
  2. Ask user which direction(s) to try
  3. Write distinct prompts for each — don't just tweak one word
  4. Generate selected directions (max 4 parallel for API providers, 1 at a time for ComfyUI)
  5. Present URLs + paths

Mode 4: Multi-Step Creative (base + extensions)

User wants a base design plus derivatives (e.g., "design a logo and make mockups").

  1. Plan 3-5 directions, ask user which to try
  2. Generate selected direction(s)
  3. Present results, ask user to approve or try another
  4. Plan extensions using the approved Image URL as referenceImages
  5. Generate extensions

Never jump from plan to generating everything at once.

Mode 5: Edit/Modify Existing Image

User provides an image and asks for changes (add text, change background, etc.).

  • Pass the image (URL or local path) as referenceImages, then generate with a short, literal prompt describing ONLY the edit
  • The reference image carries all visual context — do NOT re-describe the original image
  • Example prompt: "Add the text 'meigen.ai' at the bottom of this image"

Mode 6: Inspiration Search

1. search_gallery query="dreamy portrait with soft light"
   -> Finds semantically similar prompts with thumbnails

2. get_inspiration id="<entry_id>"
   -> Get full prompt text — copy and modify for your own generation

Mode 7: Reference Image Generation

Use an existing image to guide visual style. Pass URLs or local file paths directly to referenceImages.

generate_image prompt="coffee mug mockup with this logo" referenceImages=["~/Desktop/my-logo.png"]
   -> Local files are auto-compressed (max 2MB, 2048px) and prepared for the selected provider

Reference image sources: gallery URLs, previous generation URLs, or local file paths. All providers accept local paths — they are automatically handled.

Mode 8: ComfyUI Workflows

1. comfyui_workflow action="list"           -> See saved workflows
2. comfyui_workflow action="view" name="txt2img"  -> See adjustable parameters
3. comfyui_workflow action="modify" name="txt2img" modifications={"steps": 30}
4. generate_image prompt="..." workflow="txt2img"  -> Generate

Alternative Providers

You can use your own OpenAI-compatible API or a local ComfyUI instance instead of — or alongside — the default MeiGen provider. See references/providers.md for detailed configuration and provider comparison. For MeiGen model pricing, see https://www.meigen.ai/model-comparison.

Troubleshooting

See references/troubleshooting.md for common issues, solutions, and security & privacy details.

推荐文章

更多
PHP时间戳与日期字符串相互转换方法详解

本文介绍PHP中时间数值(Unix时间戳)与日期字符串之间的相互转换方法。通过strtotime和date函数,实现将当前时间、指定日期转换为时间戳,以及将时间戳格式化为可读的日期时间字符串,并提供相关在线计算工具推荐。

2025.11.30 1,034
PHP日期转时间戳时区偏差怎么解决

在 PHP 中将日期字符串转换为时间戳时,若未显式指定时区,默认使用脚本配置的 date.timezone 或系统时区。当服务器时区与业务逻辑预期(如 UTC )不一致时,会产生偏差。解决核心是确保输入字符串携带明确时区信息,或在转换前统一设置时区上下文。

2026.10.24 1,031
PHP跨域配置:怎么安全地允许指定域名而非使用通配符

在 PHP 中安全地允许指定域名跨域,核心是解析请求头中的 Origin ,验证其是否在白名单内,然后动态设置 Access-Control-Allow-Origin 响应头。不要使用通配符 * ,也不要硬编码单一域名。

2025.03.29 1,018
JavaScript中利用replace结合正则实现replaceAll效果

JavaScript原生仅支持replace()进行单次或全局替换,缺乏类似Java的replaceAll()便捷方法。本文总结四种在JS中实现全量替换的方案:使用带g标志的正则、带gm标志的正则、扩展String原型以及split后join。通过对比代码示例,展示各方法的实现细节与适用场景,帮助开发者根据需求选择最优解。

2025.04.29 1,017
OpenAI的Jalapeno芯片未落地,教你分辨300兆瓦算力消息

OpenAI计划在SB Energy租赁的数据中心部署约300兆瓦自研Jalapeno推理芯片,但目前双方仍处于洽谈阶段,交易细节与上线时间表均未公布。本文带你按报道原文核实项目所处阶段,厘清芯片发布、电力功率与实际推理算力的边界,并将融资意向与签约、开工、投运节点分开追踪,避免误将规划容量计入现有算力。

2026.12.02 1,013
PHP实现基础文件上传:HTML表单与$_FILES处理流程

在 HTML 表单中设置 enctype="multipart/form-data" ,并在 PHP 后端通过 $_FILES 数组接收文件,调用 move_uploaded_file() 将临时文件移动到目标目录即可完成上传。

2026.09.07 1,013
Skill 文件
  • SKILL.md
    • Creative Toolkit
    • Quick Start
    • Available Tools
      • Free — no API key required
      • Requires configured provider
    • Important Rules
      • Never describe generated images
      • Never specify model or provider
      • Midjourney V8.1
      • Always confirm before generating multiple images
    • Workflow Modes
      • Mode 1: Single Image
      • Mode 2: Prompt Enhancement + Generation
      • Mode 3: Parallel Generation (2+ images)
      • Mode 4: Multi-Step Creative (base + extensions)
      • Mode 5: Edit/Modify Existing Image
      • Mode 6: Inspiration Search
      • Mode 7: Reference Image Generation
      • Mode 8: ComfyUI Workflows
    • Alternative Providers
    • Troubleshooting
  • 项目或源文件

相关 Skill

更多
sudocode-gpt-image-2-gen sudocode-gpt-image-2-gen 图片生成技能,用于生成、创建、编辑图片或信息图。基于 SudoCode 平台(https://sudocode.us)的 GPT Image 2 模型,支持精准尺寸/画质(含4K),按 token 计费。关键点:使用 /v1/images/generations 接口。
gpt-image-prompting-guide gpt-image-prompting-guide 基于 OpenAI 官方《GPT Image Generation Models Prompting Guide》的专业提示词生成技能。帮助用户按照官方最佳实践创建高质量、可控的 GPT Image 2 提示词。
庄的配图创作 Master 庄的配图创作 Master 为知识型配图、文章配图、概念解释图、流程图、数据图表和信息图创作高质量生图 Prompt,并可在用户确认后生成图片。适用于用户想把文字、数据、流程、方法论或概念做成 GPT Image 2 配图,或需要在 Web UI、2.5D isometric、墨水简约、Notion 手绘、概念卡片等风格中选择并作图的场景。
doc-illustration-by-gpt-image-2 doc-illustration-by-gpt-image-2 使用 OpenAI GPT Image 2 生成技术文档插图、设计说明信息图和仓库架构图。当代理需要将 AI 生成的文本转化为可视化时使用。
GPT生图提示词 GPT生图提示词 将用户需求转化为结构化高质量 GPT Image 2 提示词;支持专业/新手双模式、场景预设、多风格方案生成、迭代优化反馈;用于海报、人像、UI、插画等视觉创作