A
securityA
licenseA
qualityA MCP server that enables Claude and other MCP-compatible assistants to generate images from text prompts using Together AI's image generation models.
Last updated -
1
4
TypeScript
MIT License
一个 MCP(模型上下文协议)服务器,用于使用 Black Forest Lab 的 FLUX 模型生成图像。使用最新的 MCP SDK (v1.7.0)。
.env.example
创建一个.env
文件并添加您的 Black Forest Lab API 密钥:使用以下命令启动服务器:
对于使用自动重新编译的开发:
要将此服务器与 MCP 客户端(如 Claude)一起使用,请将以下内容添加到客户端的配置中:
根据具有可自定义设置的文本提示生成图像。
参数:
prompt
(字符串,必需):要生成的图像的文本描述width
(数字,可选,默认值:1024):图像的宽度(以像素为单位)height
(数字,可选,默认值:1024):图像的高度(以像素为单位)promptUpsampling
(布尔值,可选,默认值:false):通过对提示进行上采样来增强细节seed
(数字,可选):用于可重复结果的随机种子safetyTolerance
(数字,可选,默认值:3):内容审核容忍度(1-5)例子:
使用默认设置快速生成图像的简化工具。
参数:
prompt
(字符串,必需):要生成的图像的文本描述例子:
根据提示列表生成多个图像。
参数:
prompts
(字符串数组,必需):文本提示列表(最多 10 个)width
(数字,可选,默认值:1024):图像的宽度height
(数字,可选,默认值:1024):图像的高度例子:
所有工具都以这种格式返回响应:
对于错误:
批处理工具返回:
麻省理工学院
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
MCP 服务器使用 Black Forest Lab 的 FLUX 模型根据文本提示生成图像,允许自定义图像尺寸、提示上采样、安全设置和批量生成。
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/frankdeno/flux-image-generator-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server