
dongsheng123132/dsh-xiapan-media
30Last commit Aug 14, 2026
dsh-xiapan-media DSH plugin
dsh-xiapan-media is a DSH plugin that brings three native media capabilities to DeepSeek Harness: OCR/vision analysis, image generation, and video generation. It leverages XiaPan Cloud's APIs (Qwen3.7-flash for vision, GPT-Image-2 for images, Seedance for videos) while keeping the client open-source under MIT.
How to install the dsh-xiapan-media DSH plugin
dsh plugin --profile web add "link:D:/uking编程/dsh-xiapan-mediaCopying does not run this command. Review the repository and version before installing the dsh-xiapan-media DSH plugin.
dsh-xiapan-media DSH plugin data source
dsh-xiapan-media DSH plugin snapshot date: Aug 16, 2026
discovered
What the dsh-xiapan-media DSH plugin can do
- OCR and vision analysis: xiapan_vision_analyze, xiapan_vision_ocr, xiapan_vision_locate file tools; also xiapan-vision route for pasting images directly into chat.
- Image generation: xiapan_image_generate tool using gpt-image-2, supports 1-4 images, size/quality and reference image, saves to workspace .dsh-media/images/.
- Video generation: xiapan_video_generate tool using Seedance, supports text-to-video, image-to-video, 5-15 seconds, 480p/720p/1080p, saves to workspace .dsh-media/videos/.
- Payment approval gate: pre-execute approval for image and video generation tools to prevent silent charges; headless environments require explicit requireApproval=false override.
- Security: input files must be within workspace root; no path traversal; max input 10 MiB, download 200 MiB; temp file atomic rename; only HTTPS.
Where the dsh-xiapan-media DSH plugin fits
- Analyze images or extract text from screenshots in DeepSeek conversations.
- Generate images from text descriptions or modify existing images.
- Create short videos from text prompts or reference images for content creation.
Who the dsh-xiapan-media DSH plugin is for
- DeepSeek Harness users who want to extend the assistant with media capabilities.
- Developers building AI-powered applications that need image and video generation.
dsh-xiapan-media DSH plugin limitations
- Requires a XiaPan Cloud account and API key (UKING_DSH_API_KEY) with sufficient credits.
- Image and video generation incur costs based on model and resolution; headless environments require explicit approval override.
- Video generation is limited to 5-15 seconds and currently only supports Seedance models.
- Input image size limited to 10 MiB per file.
dsh-xiapan-media DSH plugin: from the repository README
Quoted from the dongsheng123132/dsh-xiapan-media README, the upstream source of the dsh-xiapan-media DSH plugin. Copyright remains with the original authors.
给 [DeepSeek Harness](https://github.com/deepseek-ai/deepseek-harness) 增加三项原生媒体能力: 1. **识图/OCR**:`xiapan-vision` 路由让仍由 DeepSeek 负责思考的会话可以直接粘贴图片;图片先由虾盘云 `qwen3.7-flash` 转译为文本,再交回原文本模型。另提供 `xiapan_vision_analyze`、`xiapan_vision_ocr`、`xiapan_vision_locate` 三个文件工具。 2. **作图/改图**:`xiapan_image_generate` 调用 `gpt-image-2`,支持 1–4 张、尺寸/质量与参考图,产物保存到工作区 `.dsh-media/images/`。 3. **视频生成**:`xiapan_video_generate` 调用 Seedance,支持文生视频、图生视频、5–15 秒、480p/720p/1080p,产物保存到 `.dsh-media/videos/`。 这不是把 API Key 写死在开源代码中的“共享密钥插件”。客户端插件使用 MIT 开源;模型推理、额度、风控和充值由虾盘云服务端提供。用户安装 U-King、登录并充值后,插件复用设备级凭据 `UKING_DSH_API_KEY`。也可自行在 DSH 凭据仓库或环境变量中设置该引用。 ## 安装 本地开发安装: ```powershell dsh plugin --profile web add "link:D:/uking编程/dsh-xiapan-media" ``` GitHub 固定提交安装: ```powershell dsh plugin --profile web add "github:dongsheng123132/dsh-xiapan-media#COMMIT_SHA" ``` 发布后请把 `COMMIT_SHA` 换成 README/Release 中经过 CI 的完整提交。插件包通过 `cordis.patch.yml` 一次安装三个独立插件行,任何一项都可以单独从 profile 中删除。 自动粘贴识图依赖文本路由 `uking-managed`。安装完成后在 DSH 模型选择器里选择 **U-King DeepSeek + 虾盘云识图**(路由 ID `xiapan-vision`)。如果用户只安装了原生 DeepSeek 路由,可把视觉插件的 `innerProvider` 改成实际文本 provider ID。 ## 凭据顺序 每次调用时动态解析,不缓存、不打印: 1. DSH credentials 服务中的 `UKING_DSH_API_KEY`; 2. 同名环
Read the full READMERepository license: MIT
dsh-xiapan-media DSH plugin questions
How do I install dsh-xiapan-media?
Use the DSH command: `dsh plugin --profile web add "github:dongsheng123132/dsh-xiapan-media#COMMIT_SHA"`. Replace COMMIT_SHA with the actual commit hash from the release. You can also install locally with a link to the directory. The plugin installs three separate plugins at once; you can remove any individually from the profile.
Do I need to pay to use the image and video generation?
Yes, image and video generation consume credits from XiaPan Cloud. You need to have a U-King account, log in, and recharge. The plugin includes a pre-execute approval gate that shows estimated costs before proceeding. Headless environments require explicit approval override.
How do I set up the API key?
The plugin looks for the credential in this order: DSH credentials service for `UKING_DSH_API_KEY`, then environment variable with same name, then `XIAPAN_API_KEY`, then device credentials in `~/.uking/device.json`. If not found, it will prompt you to log in/recharge.
Can I use my own API key instead of U-King credentials?
Yes, you can set the `XIAPAN_API_KEY` environment variable or store it in DSH credentials. The plugin does not hardcode any shared key.
What video models are supported?
Currently, the plugin uses Seedance models: mini (approx ¥2.9/5s/480p), fast (doubao-seedance-2-0-fast-260128), and full (doubao-seedance-2-0-260128). Resolution options: 480p, 720p, 1080p. Duration: 5-15 seconds. Prices are rough estimates; actual billing is from XiaPan Cloud.