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).
安装
$
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 | 图片落盘目录 |