生成式AI API服务

Scenario.com MCP Server提供生成式AI API访问,包括文本到图像、图像到图像、模型训练、图像放大等70多种工具。

  • by pasie15
  • TypeScript
  • 本地部署
  • 2 星标
  • 更新于
在 GitHub 查看 pasie15/scenario.com-mcp-server

使用说明

Scenario.com MCP服务器

MCP服务器提供对Scenario.com生成AI API的访问-文本到图像、图像到图像、模型训练、放大和70+其他工具。

安装

添加到MCP客户端配置中:

{
  "mcpServers": {
    "scenario": {
      "command": "npx",
      "args": ["-y", "scenario.com-mcp-server"],
      "env": {
        "SCENARIO_API_KEY": "your_api_key_here",
        "SCENARIO_API_SECRET": "your_api_secret_here"
      }
    }
  }
}

从获取您的API证书 https://app.scenario.com/ → 设置→ API密钥

替代方案:基于会话的凭据

不想使用env变量?只需使用:

{
  "mcpServers": {
    "scenario": {
      "command": "npx",
      "args": ["-y", "scenario.com-mcp-server"]
    }
  }
}

然后在您的MCP客户端中:

Use set-credentials with API key api_xxx and secret yyy

可用工具

设置:

  • set-credentials -为会话配置API访问权限
  • get-credentials-status -检查凭证状态

图像生成:

  • post-txt2img-inferences -从文本生成
  • post-img2img-inferences -从图像生成
  • post-controlnet-inferences -ControlNet生成
  • post-inpaint-inferences -绘画
  • post-upscale-inferences -高档图像
  • post-remove-background-inferences -删除背景

资产管理:

  • get-assets -列出资产
  • delete-asset -删除资产
  • get-models -列出型号

模型培训:

  • post-models -创建模型
  • put-models-train-by-model-id -列车模型
  • post-models-training-images-by-model-id -添加训练图像

…以及60多种工具。使用 list_tools 看到一切。

许可证

ISC