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/generationsOMNIROUTE_API_KEY:OmniRoute API Key
工具
text_to_image
prompt:必填,图片描述model:必填,OmniRoute 上可用的图片生成模型size:可选,例如1024x1024n:可选,生成数量,默认1,范围1..10quality:可选,透传给图片模型style:可选,透传给图片模型response_format:可选,b64_json或url,默认b64_jsonoutput_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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file yooztech_mcp_omniroute_t2i-0.0.1.tar.gz.
File metadata
- Download URL: yooztech_mcp_omniroute_t2i-0.0.1.tar.gz
- Upload date:
- Size: 4.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f942085097ac3882be5fad6fe05a606d81307147a2cc0be41868a109f3b9e67d
|
|
| MD5 |
292da87acb65556e45f7b6d4c495bd33
|
|
| BLAKE2b-256 |
20659e467620862ff39fd2fbc8c700d3c3800021c458f0c915e34a7407c75dbb
|
File details
Details for the file yooztech_mcp_omniroute_t2i-0.0.1-py3-none-any.whl.
File metadata
- Download URL: yooztech_mcp_omniroute_t2i-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/6.1.0 CPython/3.10.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c572ec9bc161d5c3070aa1c3ac2070a641d83410578a4045236bc95cfd6adc65
|
|
| MD5 |
35a8a9d201cb6d0cdb3b5612120f516e
|
|
| BLAKE2b-256 |
78f4d66d37754eb753707280cd0a6c482e5ed1e97f93f07c0578cf44ee1dfb96
|