dsh-image-generate
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| IMG_OUTPUT_DIR | No | 输出目录 | ~/.dsh/outputs/dsh-image-generate |
| DASHSCOPE_API_KEY | Yes | Required, 百炼 API Key | |
| IMG_OPENAI_API_KEY | No | API key for OpenAI-compatible backend | |
| IMG_OPENAI_BASE_URL | No | OpenAI 兼容接口根 | https://dashscope.aliyuncs.com/compatible-mode/v1 |
| IMG_DEFAULT_TRANSPORT | No | 默认传输方式 | dashscope-native |
| IMG_DASHSCOPE_BASE_URL | No | DashScope 原生接口根 | https://dashscope.aliyuncs.com/api/v1 |
| IMG_VIDEO_POLL_TIMEOUT | No | 视频任务最长等待(秒) | 900 |
| IMG_DEFAULT_IMAGE_MODEL | No | 默认文生图模型 | z-image-turbo |
| IMG_DEFAULT_VIDEO_MODEL | No | 默认视频模型 | wan2.6-t2v |
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server publishes no instructions, or was last inspected before Glama recorded them.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
| experimental | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| generate_imageA | 文生图:根据文本提示词生成图片(参数语义对齐 OpenAI Images API)。 Args: prompt: 描述期望图像内容、风格与构图的提示词(中英文均可)。 model: 模型名。默认 z-image-turbo;可选 qwen-image-3.0 / qwen-image-3.0-pro, 或任意 OpenAI 兼容后端模型(如 qwen-image-3)。 size: 输出分辨率,OpenAI 风格 "宽x高"(如 "1024x1024"),DashScope 下自动转换为 "宽*高"。 n: 生成张数(z-image 每张单独调用,qwen-image-3.0 单次最多 6 张)。 quality: 质量档位(OpenAI 语义;DashScope 原生接口忽略)。 style: 风格(OpenAI 语义;DashScope 原生接口忽略)。 response_format: "url" 返回远端 URL + 本地路径;"b64_json" 额外返回 base64 数据。 seed: 随机种子 [0, 2147483647],用于结果复现。 negative_prompt: 反向提示词(qwen-image-3.0 支持;z-image 不支持)。 prompt_extend: 是否开启提示词智能改写(z-image/qwen 均支持,默认跟随模型侧默认值)。 watermark: 是否添加水印(仅 qwen-image-3.0 支持)。 output_dir: 本地保存目录(相对路径相对于全局输出目录)。 user: 透传给 OpenAI 兼容后端的 user 字段(可选)。 |
| edit_imageA | 图生图 / 图像编辑:基于 1-3 张参考图与编辑指令生成新图。 Args: image: 参考图(必填)。支持本地绝对/相对路径、http(s) URL 或 data: URL。 prompt: 编辑指令,描述期望的输出内容、风格与构图。 model: 模型名。默认 qwen-image-3.0;或 OpenAI 兼容的编辑模型(如 qwen-image-3-edit)。 image2, image3: 第 2、3 张参考图(DashScope 原生接口最多 3 张)。 mask: 蒙版图(仅 OpenAI 兼容 /images/edits 后端支持;DashScope 原生接口不支持)。 size: 输出分辨率,OpenAI 风格 "宽x高";不填由模型自动推荐。 n: 生成张数。 response_format: "url" 或 "b64_json"。 seed: 随机种子。 negative_prompt: 反向提示词(qwen-image-3.0 支持)。 prompt_extend: 是否开启提示词智能改写。 watermark: 是否添加水印(仅 qwen-image-3.0 支持)。 strength: 编辑强度/与原图相似度(仅 OpenAI 兼容后端,可选)。 output_dir: 本地保存目录(相对路径相对于全局输出目录)。 |
| generate_videoA | 视频生成:文生视频或图生视频(DashScope 万相异步任务)。 生成耗时较长(通常 1-10 分钟)。默认阻塞等待完成;若超时或被中断, 可用返回的 task_id 通过 get_video_status 继续查询。 Args: prompt: 视频内容描述(支持分镜头描述,如 "第1个镜头... 第2个镜头...")。 model: 模型名。默认 wan2.6-t2v;图生视频用 wan2.5-i2v-preview / wan2.6-i2v 等。 image: 图生视频的首帧图片(本地路径 / URL / data: URL;文生视频留空)。 duration: 视频时长(秒),2-15 之间。 size: 分辨率 "宽x高"(如 "1280x720",wan2.5/2.6 系列)。 resolution: 分辨率档位 480P/720P/1080P(wan2.7 系列)。 ratio: 画幅比例(如 "16:9"、"9:16"、"1:1",wan2.7 系列)。 seed: 随机种子。 negative_prompt: 反向提示词。 prompt_extend: 是否开启提示词智能改写。 watermark: 是否添加水印(默认随模型)。 shot_type: 镜头类型(如 "multi" 多镜头,wan2.6 支持)。 wait: 是否阻塞等待任务完成(默认 true;false 立即返回 task_id)。 output_dir: 本地保存目录(相对路径相对于全局输出目录)。 |
| get_video_statusA | 查询视频生成任务状态;任务完成时可选下载视频到本地。 Args: task_id: generate_video 返回的任务 ID(24 小时内有效)。 model: 生成时的模型名(仅用于记录,可不填)。 download: 任务成功时是否把视频下载到本地(默认 true)。 output_dir: 本地保存目录(相对路径相对于全局输出目录)。 |
| list_modelsA | 列出本服务器支持的模型及其能力、默认模型与配置。 |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/smjda0719/dsh-image-generate'
If you have feedback or need assistance with the MCP directory API, please join our Discord server