zhangjunjesse/dsh-tool-image-gen ↗★ 0
dsh-tool-image-gen
DSH tool plugin: generate images through ToAPIs async GPT-Image-2 API (submit task, poll, download).
AI 分析
核心用途是为 Agent 赋予调用外部 API 生成图片并自动下载落盘的能力。适合需要让 AI 辅助绘图、生成视觉素材的任务。需要配置 TOAPIS_API_KEY 环境变量。
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:zhangjunjesse/dsh-tool-image-genドキュメント
README 全文を読む ↗配置
| 字段 | 默认 | 说明 |
|---|---|---|
apiKeyEnv | TOAPIS_API_KEY | 凭据引用名 |
baseURL | https://toapis.com/v1 | API 基址 |
model | gpt-image-2 | 模型 id(也可用 gpt-image-2-vip、gemini 系列等) |
size | 1:1 | 默认比例 |
resolution | 1k | 默认分辨率 |
pollIntervalMs / maxAttempts | 3000 / 60 | 轮询策略 |
timeoutMs | 600000 | 协作超时 |
outputDir | /generated | 图片落盘目录 |