Loading...
Loading...
Compare original and translation side by side
cat ~/.config/meigen/config.json 2>/dev/nullls ~/.config/meigen/workflows/*.json 2>/dev/nullMeiGen Plugin ConfigurationThis is optional. Without configuration, you can still use free features:
- Search gallery for inspiration and prompts
- Enhance simple ideas into professional prompts
- Browse available AI models
Configuring a provider unlocks image generation.
cat ~/.config/meigen/config.json 2>/dev/nullls ~/.config/meigen/workflows/*.json 2>/dev/nullMeiGen插件配置此配置为可选操作。未配置时,你仍可使用免费功能:
- 搜索灵感图库及提示词
- 将简单想法优化为专业提示词
- 浏览可用AI模型
配置提供商后即可解锁图片生成功能。
/v1/images/generations/v1/images/generations/meigen:setup/meigen:setupDo you already have a MeiGen API token, or do you need to create one?
你是否已拥有MeiGen API令牌,还是需要创建新令牌?
meigen_sk_meigen_sk_meigen_sk_...meigen_sk_...meigen_sk_{
"meigenApiToken": "<the token>"
}meigen_sk_{
"meigenApiToken": "<令牌内容>"
}What is your ComfyUI server URL? (default:)http://localhost:8188
curl -s <URL>/system_stats | head -c 200Cannot connect to ComfyUI at. Please make sure:<URL>
- ComfyUI is running (start it with
or your launcher)python main.py- The URL and port are correct
- No firewall is blocking the connection
你的ComfyUI服务器地址是什么?(默认:)http://localhost:8188
curl -s <URL>/system_stats | head -c 200无法连接到地址的ComfyUI。请确保:<URL>
- ComfyUI已启动(使用
或启动器运行)python main.py- 地址及端口正确
- 无防火墙阻止连接
To use ComfyUI with this plugin, you need to export a workflow in API format:
- Open ComfyUI in your browser (usually
)http://localhost:8188- Load or create your preferred workflow
- Click ⚙️ Settings → enable "Enable Dev mode options"
- Click the "Save (API Format)" button that appears
- Save the downloaded
file somewhere convenient.json
Please provide the path to your exported workflow JSON file: Example:~/Downloads/workflow_api.json
comfyui_workflowimportcomfyui_workflow importfilePathname要在本插件中使用ComfyUI,你需要以API格式导出工作流:
- 在浏览器中打开ComfyUI(通常为
)http://localhost:8188- 加载或创建你偏好的工作流
- 点击**⚙️ 设置** → 启用**“启用开发者模式选项”**
- 点击出现的**“保存(API格式)”**按钮
- 将下载的
文件保存至方便访问的位置.json
请提供你导出的工作流JSON文件路径: 示例:~/Downloads/workflow_api.json
comfyui_workflowimportcomfyui_workflow importfilePathname{
"comfyuiUrl": "<the URL, omit if http://localhost:8188>",
"comfyuiDefaultWorkflow": "<the first imported workflow name>"
}{
"comfyuiUrl": "<服务器地址,默认地址可省略>",
"comfyuiDefaultWorkflow": "<首个导入的工作流名称>"
}| Service | Base URL | Default Model |
|---|---|---|
| OpenAI | | |
| Together AI | | (check their docs) |
| Fireworks AI | | (check their docs) |
| 服务 | 基础URL | 默认模型 |
|---|---|---|
| OpenAI | | |
| Together AI | | (请查阅其官方文档) |
| Fireworks AI | | (请查阅其官方文档) |
sk-...https://api.openai.comgpt-image-1.5sk-...https://api.openai.comgpt-image-1.5curl -s <BASE_URL>/v1/models \
-H "Authorization: Bearer <API_KEY>" | head -c 500openaiBaseUrlhttps://api.openai.comopenaiModelgpt-image-1.5curl -s <BASE_URL>/v1/models \
-H "Authorization: Bearer <API_KEY>" | head -c 500openaiBaseUrlhttps://api.openai.comopenaiModelgpt-image-1.5curl https://api.openai.com/v1/images/generations \
-H "Authorization: Bearer sk-xxx" \
-H "Content-Type: application/json" \
-d '{"model": "gpt-image-1.5", "prompt": "a cat", "n": 1, "size": "1024x1024"}'curl https://api.together.xyz/v1/models \
-H "Authorization: Bearer xxx"curl -u :sk-xxx https://api.fireworks.ai/inference/v1/images/generations \
-d '{"model": "accounts/fireworks/models/flux", "prompt": "a cat"}'curl https://api.openai.com/v1/images/generations \
-H "Authorization: Bearer sk-xxx" \
-H "Content-Type: application/json" \
-d '{"model": "gpt-image-1.5", "prompt": "a cat", "n": 1, "size": "1024x1024"}'curl https://api.together.xyz/v1/models \
-H "Authorization: Bearer xxx"curl -u :sk-xxx https://api.fireworks.ai/inference/v1/images/generations \
-d '{"model": "accounts/fireworks/models/flux", "prompt": "a cat"}'/v1/images/generations/v1/modelshttps://api.openai.com/v1/images/generationshttps://api.openai.comhttps://api.together.xyz/v1/modelshttps://api.together.xyz/v1/v1/.../v1api.openai.comAuthorization: Bearer <key>-u :<key>--header"model": "<value>"/v1/images/generations/v1/modelshttps://api.openai.com/v1/images/generationshttps://api.openai.comhttps://api.together.xyz/v1/modelshttps://api.together.xyz/v1/v1/...api.openai.com/v1Authorization: Bearer <密钥>-u :<密钥>--header"model": "<值>"I extracted the following from your curl command:
- API Key:
(first 10 chars)sk-xxx...- Base URL:
https://api.together.xyz/v1- Model:
black-forest-labs/FLUX.1-schnellDoes this look correct?
已从你的curl命令中提取以下信息:
- API密钥:
(前10个字符)sk-xxx...- 基础URL:
https://api.together.xyz/v1- 模型:
black-forest-labs/FLUX.1-schnell以上信息是否正确?
{
"meigenApiToken": "<the token>"
}{
"comfyuiUrl": "<url, omit if default>",
"comfyuiDefaultWorkflow": "<workflow name>"
}{
"openaiApiKey": "<the key>",
"openaiBaseUrl": "<base url, omit if default>",
"openaiModel": "<model, omit if default>"
}mkdir -p ~/.config/meigen~/.config/meigen/config.jsonchmod 600 ~/.config/meigen/config.json{
"meigenApiToken": "<令牌内容>"
}{
"comfyuiUrl": "<服务器地址,默认地址可省略>",
"comfyuiDefaultWorkflow": "<工作流名称>"
}{
"openaiApiKey": "<密钥内容>",
"openaiBaseUrl": "<基础URL,默认地址可省略>",
"openaiModel": "<模型名称,默认模型可省略>"
}mkdir -p ~/.config/meigen~/.config/meigen/config.jsonchmod 600 ~/.config/meigen/config.jsonConfiguration saved! To activate the new settings, please start a new Claude Code session (close and reopen, or open a new terminal tab).After restarting, you can:
- Use
to create AI imagesgenerate_image- Run
to see available models and workflowslist_models- Try: "Generate a beautiful sunset over mountains"
You can runagain anytime to change your configuration./meigen:setup
ComfyUI tips:
- Use
to see your saved workflowscomfyui_workflow list- Use
to see adjustable parameters (steps, CFG, sampler, etc.)comfyui_workflow view- Ask me to change any workflow parameter — e.g., "increase steps to 30" or "switch sampler to dpmpp_2m"
- You can import more workflows anytime with
comfyui_workflow import
配置已保存!请重启Claude Code会话(关闭并重新打开,或打开新终端标签页)以激活新设置。重启后,你可以:
- 使用
命令生成AI图片generate_image- 运行
查看可用模型及工作流list_models- 尝试输入:“生成一幅山脉上的绝美日落图”
你可随时再次运行修改配置。/meigen:setup
ComfyUI使用提示:
- 使用
查看已保存的工作流comfyui_workflow list- 使用
查看可调整参数(步数、CFG、采样器等)comfyui_workflow view- 可要求修改任意工作流参数——例如:“将步数增加至30”或“切换采样器为dpmpp_2m”
- 你可随时使用
导入更多工作流comfyui_workflow import