JuneLearn/dsh-image2-draw4

dsh-image2-draw

适用于 DeepSeek Harness 的 Image2 (gpt-image-2) 图像生成插件,支持简易中转设置与会话内图像预览。

AI 分析

核心用途是在 DSH 会话中直接调用 API 生成和编辑图片,并提供预览。适合需要在对话中进行 AI 绘画、图像编辑任务的用户。需要配置中转 API 密钥和端点。

包名
dsh-image2-draw
版本
0.1.0
许可证
MIT
最近更新
2026年8月16日

安装

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:JuneLearn/dsh-image2-draw

Usage

  1. Open Settings > Plugins > Configurable plugins > Image2 Draw.
  2. Enter the API key supplied by your relay.
  3. Enter the relay endpoint, for example https://example.com/v1.
  4. Adjust the model, edit endpoint, or timeout if needed; the defaults normally work without changes.
  5. Click Save and wait for the Saved status.
  6. Start a new session and ask the model to call image2-generate, or provide reference image paths and use image2-edit.

Example prompts:

Call image2-generate to create a portrait cinematic poster of a future city at high quality.
Call image2-edit with D:\images\room.png and restyle the room with light Japanese wood while preserving the layout.

Support for gpt-image-2, image editing, custom dimensions, and quality levels depends on the relay implementation. If the API returns HTTP 400 or 404, check the provider's model name and Images endpoint documentation.