跳到正文

JuneLearn/dsh-image2-draw

41最近提交 2026年8月15日

dsh-image2-draw DSH 插件

该插件允许在 DeepSeek Harness 聊天中实现文本生成图像和图像编辑。只需配置 baseURL 和 API 密钥,即可使用 gpt-image-2 模型进行生成。插件提供专用工具卡片,支持自适应尺寸、本地文件保存,并避免将图像内容注入 DeepSeek 模型上下文。

如何安装 dsh-image2-draw DSH 插件

dsh plugin --profile web add github:JuneLearn/dsh-image2-draw

复制不会执行命令。安装 dsh-image2-draw DSH 插件前请核对仓库和版本。

dsh-image2-draw DSH 插件数据来源

dsh-image2-draw DSH 插件快照日期:2026年8月16日

discovered

dsh-image2-draw DSH 插件能做什么

  • 在设置 > 插件 > 可配置插件下添加 Image2 Draw 卡片。
  • 提供 image2-generate 工具,支持 1-8 张连续文本生成图像。
  • 提供 image2-edit 工具,支持 1-8 张 PNG、JPEG 或 WebP 参考图像编辑。
  • 支持自适应竖屏、横屏、方形尺寸以及经过验证的自定义尺寸。
  • 在对话中显示生成的图像,支持缩略图、缩放和另存为操作。
  • 将图像保存到会话工作目录的 outputs/image2/ 下,避免覆盖同名文件。
  • API 密钥仅存储在 DSH 凭据中,不会进入常规设置文档或插件状态端点。

dsh-image2-draw DSH 插件适合哪些场景

  • 在聊天中通过文本提示生成图像。
  • 提供参考图像路径和指令来编辑现有图像。
  • 使用第三方中继服务访问图像生成功能,无需直接订阅 OpenAI。
  • 连续生成最多 8 张图像,保持风格一致。

dsh-image2-draw DSH 插件适合谁

  • 需要图像生成功能的 DeepSeek Harness 用户。
  • 希望将 OpenAI 兼容图像 API 集成到聊天工作流中的开发者。
  • 希望避免将图像上下文注入不支持视觉输入的 DeepSeek 模型的用户。

dsh-image2-draw DSH 插件的限制

  • 需要第三方中继服务提供 OpenAI 图像兼容 API;必须自行准备 baseURL 和 API 密钥。
  • 图像编辑功能依赖于中继服务的实现,并非所有中继支持编辑。
  • 生成的图像仅限于 PNG、JPEG 或 WebP 格式;参考图像每个最大 4MB,总计 32MB。
  • 超时可配置为 1 到 3600 秒;HTTP 524 和超时失败不会自动重试,以避免重复收费。
  • DeepSeek Harness 仍处于开发者预览阶段,插件兼容性可能因更新而失效。

dsh-image2-draw DSH 插件的仓库 README 摘录

以下文字摘自 dsh-image2-draw DSH 插件的上游仓库 JuneLearn/dsh-image2-draw 的 README,版权归原作者,仅作引用。

Unable to generate images directly in DeepSeek Harness? This plugin adds Image2 generation through a third-party relay that exposes an OpenAI Images-compatible API. Configure only a `baseURL` and an `API Key`, then use `gpt-image-2` for text-to-image and image-to-image tasks in chat. [中文说明](./README.zh-CN.md) > **Third-party service recommendation (referral link)** > > If you are looking for an OpenAI-compatible API relay, you can take a look at > [WPIronman API](https://api.wpironman.top/register?aff=JUNE). This is my > referral link, and I may receive a referral benefit if you register through > it; any promotion or benefit is subject to the provider's current terms. This > plugin is independent of that service and does not require any particular > relay. Evaluate pricing, reliability, and privacy terms before choosing a > provider. > > New users can redeem the gift quota with code `99F509ABC6C38F77`. ## Related project Need independent reasoning-effort controls for third-party models in DeepSeek Harness? See my other plugin: [DSH Reasoning Settings](https://github.com/JuneLearn/dsh-reasoning-settings). It configures reasoning levels, provider defaults, and API wire values fo

阅读完整 README仓库许可: MIT

dsh-image2-draw DSH 插件常见问题

如何安装 DSH Image2 Draw 插件?

可以通过 npx 安装:运行 `npx --yes -p @deepseek-ai/dsh dsh plugin --profile web add github:JuneLearn/dsh-image2-draw`。如果你有 DeepSeek Harness 源码目录,也可以使用 `pnpm dsh plugin --profile web add github:JuneLearn/dsh-image2-draw`。两种方法都需要安装 Git 和 pnpm。

需要配置什么 API 密钥和 baseURL?

你需要一个第三方中继服务,该服务暴露了 OpenAI 图像兼容 API。插件需要配置 baseURL(例如 `https://example.com/v1`)和该中继的 API 密钥。默认模型为 `gpt-image-2`。插件会自动在 baseURL 后追加 `/images/generations` 用于生成,并使用 `/images/edits` 进行编辑。

这个插件可以编辑图像吗?

可以,插件提供了 `image2-edit` 工具。你可以提供最多 8 张参考图像,格式为 PNG、JPEG 或 WebP,每张最大 4MB,总计不超过 32MB。编辑功能是否可用取决于你的中继服务是否支持图像编辑端点。

生成的图像为什么不在聊天中显示?

插件会在对话中通过专用工具卡片显示生成的图像,支持缩略图、缩放和另存为操作。如果图像未显示,请检查你的中继服务是否返回了有效的 PNG、JPEG 或 WebP 响应。同时确保插件已在“设置 > 插件 > 可配置插件 > Image2 Draw”中正确配置并保存。

这个插件安全地存储我的 API 密钥吗?

是的,插件将 API 密钥仅存储在 DSH 凭据中,与常规设置文档分开。密钥永远不会通过插件状态端点返回,也不会注入到 DeepSeek 模型上下文中。插件会验证设置写入,并且不会在日志中暴露密钥。