Skip to main content

yooztech_mcp_omniroute_t2i - OmniRoute 文生图 MCP 工具

通过 OmniRoute 提供的 OpenAI 兼容接口 /v1/images/generations 生成图片,并将返回的 URL 或 Base64 图片保存到本地。

MCP 配置

使用 uvx

{
  "mcpServers": {
    "yooztech_mcp_omniroute_t2i": {
      "command": "uvx",
      "args": ["yooztech_mcp_omniroute_t2i"],
      "env": {
        "OMNIROUTE_BASE_URL": "https://your-omniroute.example.com",
        "OMNIROUTE_API_KEY": "your-api-key"
      }
    }
  }
}

也可以安装后直接运行 yooztech_mcp_omniroute_t2i

环境变量

  • OMNIROUTE_BASE_URL:OmniRoute 服务地址,不包含 /v1/images/generations
  • OMNIROUTE_API_KEY:OmniRoute API Key

工具

text_to_image

  • prompt:必填,图片描述
  • model:必填,OmniRoute 上可用的图片生成模型
  • size:可选,例如 1024x1024
  • n:可选,生成数量,默认 1,范围 1..10
  • quality:可选,透传给图片模型
  • style:可选,透传给图片模型
  • response_format:可选,b64_jsonurl,默认 b64_json
  • output_dir:可选,保存目录,默认当前目录
  • filename_prefix:可选,文件名前缀,默认 omniroute-image

示例:

{
  "prompt": "一座漂浮在云海上的未来城市,电影感光照",
  "model": "your-image-model",
  "size": "1024x1024",
  "output_dir": "./tmp"
}

成功时返回 saved_files,其中包含生成图片的绝对路径。

依赖

  • Python >= 3.10
  • MCP SDK >= 2.0.0, < 3
  • httpx >= 0.27.0

许可证

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yooztech_mcp_omniroute_t2i-0.0.1.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yooztech_mcp_omniroute_t2i-0.0.1-py3-none-any.whl (5.6 kB view details)

Uploaded Python 3

File details

Details for the file yooztech_mcp_omniroute_t2i-0.0.1.tar.gz.

File metadata

File hashes

Hashes for yooztech_mcp_omniroute_t2i-0.0.1.tar.gz
Algorithm Hash digest
SHA256 f942085097ac3882be5fad6fe05a606d81307147a2cc0be41868a109f3b9e67d
MD5 292da87acb65556e45f7b6d4c495bd33
BLAKE2b-256 20659e467620862ff39fd2fbc8c700d3c3800021c458f0c915e34a7407c75dbb

See more details on using hashes here.

File details

Details for the file yooztech_mcp_omniroute_t2i-0.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for yooztech_mcp_omniroute_t2i-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 c572ec9bc161d5c3070aa1c3ac2070a641d83410578a4045236bc95cfd6adc65
MD5 35a8a9d201cb6d0cdb3b5612120f516e
BLAKE2b-256 78f4d66d37754eb753707280cd0a6c482e5ed1e97f93f07c0578cf44ee1dfb96

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page