DeepSeek Harness Plugin Hub

Publish and manage complete Harness Profiles. Discover Plugins for your next setup.

Explore

PluginsPresetsDocsNews

Community

Publish a pluginContactReport an issue

Resources

Plugin Hub on GitHubDeepSeek HarnessSystem statusPrivacy notice
© 2026 DeepSeek Harness Plugin HubPowered byPaxTech

Independent and unofficial. Not affiliated with, authorized by, or endorsed by DeepSeek.

Yali Image Generator — DSH Plugin for DeepSeek Harness
DeepSeek Harness Plugin Hub
ProfilesPluginsCategoriesNewsDocsSign inManage Profiles
ProfilesPluginsCategoriesNewsDocsSign in
← Plugins

dsh-yali-image-generator

Yali Image Generator

DeepSeek-Harness 图像生成插件。申请 Yali AI API Key:https://api.yaliai.com/

The plugin will be installed here. Keep web if you are unsure.

npx -y @deepseek-ai/dsh plugin --profile web add dsh-yali-image-generator@0.1.1
READMECompatibilityVersions

Compatibility and provenance

Yali Image Generator is published as dsh-yali-image-generator and currently resolves to version 0.1.1. The Hub verifies its manifest and preserves the exact installation source for reproducible installs.

DSH compatibility
*
Runtime surfaces
any
Release source
npm
Registry updated
9/22/2026

Versions

0.1.1stable
8/14/2026
0.1.0stable
8/13/2026

Related plugins

Loading related plugins…

Latest
0.1.1
DSH
*
HMR
Process restart
Tree shaking
Safe tree shaking not declared
Unpacked size
42.4 kB
Files
6
Surface
any
License
MIT
Source
npm
GitHub
★ 1
Weekly downloads
41
Last push
8/14/2026
View source ↗Project homepage ↗
README badge

Click the badge to copy Markdown for your README.

Do you maintain this Plugin?Claim benefit · Priority security scan

Verify the GitHub repository declared in package.json to manage this listing. After you claim it, Hub will prioritize a security scan of the current version and publish the result when it passes.

Claim this Plugin →
Report an issue

README

DeepSeek-Harness 图像生成插件

dsh-yali-image-generator 是一个可独立安装的 DeepSeek Harness Bundle,为 Agent 提供 generate_image 图像生成工具,并通过 Yali AI 异步图像网关调用模型。

包名和 Harness 模块名使用官方示例一致的 dsh- 前缀;面向用户的插件名称和工具说明统一为“DeepSeek-Harness 图像生成插件”。

官方规范符合性

本插件遵循 DeepSeek Harness 的 docs/user/develop/basic 与 docs/cookbook/adding-a-tool.md:

  • 这是 Bundle,不是 Profile;package.json 通过 dsh.bundle.patch 声明安装补丁。
  • 插件导出 name、inject = ['tools', 'credentials']、Schemastery Config 和 apply(ctx, config)。
  • 工具通过 ctx.tools.register(defineTool(...)) 注册;执行结果是由 output.schema 定义的规范 JSON,模型可见文本由 output.render 单独渲染。
  • 接口地址、密钥环境变量、模型默认值、输出位置、超时和轮询参数均为可配置项;配置或凭据错误会明确失败。

完整逐条审计见 COMPLIANCE.md。

支持的模型与接口

模型接口规格说明
gemini-3.1-flash-image-previewPOST /v1beta/models/{model}:generateContent1K、2K、4K支持完整 Gemini 宽高比;使用 contents、responseModalities: ["IMAGE"] 与 imageConfig。
gemini-3-pro-image-preview同 Gemini 原生接口1K、2K、4K默认的第二阶段超分模型。
gpt-image-2POST /v1/images/generations 或 /v1/images/edits1K、2K、4K根据宽高比映射为像素 size,发送 quality、n: 1、output_format 和 async: true。
grok-imagine-image-qualityOpenAI 兼容 generations/edits 接口1K、2K使用 resolution 与 aspect_ratio,不会发送 quality 或 size。
agnes-image-2.1-flashPOST /v1/images/generations1K、2K、3K、4K使用 size、ratio;参考图写入 extra_body.image,不会发送 quality。

Gemini 的本地参考图使用 inlineData,URL 参考图使用 fileData。GPT 的本地参考图采用 multipart image,URL 参考图采用 JSON image。所有模型均使用异步任务:提交请求、校验 202 和 task_id、轮询 query_path,再下载或解码首个图像结果。

安装

npm 安装

发布到 npm 后,用户可直接安装:

dsh plugin --profile web add dsh-yali-image-generator
dsh web --dump-config
dsh web

GitHub 安装

公开 GitHub 仓库发布后,也可以直接从 Git 安装:

dsh plugin --profile web add github:pptt121212/dsh-yali-image-generator
dsh web

GitHub 仓库与 npm 包均使用 dsh-yali-image-generator。

自定义或无界面 Profile 使用相同方式:

dsh plugin --profile my-profile add dsh-yali-image-generator
dsh --profile my-profile --dump-config
dsh --profile my-profile

本包直接发布 ESM 运行时文件,不需要构建步骤或 prepare 脚本。

配置密钥

请先在 Yali AI 申请 API Key。

在 Harness 的凭据设置中保存所选模型系列对应的密钥,凭据引用名称如下:

$env:YALI_GEMINI_API_KEY = "..."
$env:YALI_GPT_API_KEY = "..."
$env:YALI_GROK_API_KEY = "..."
$env:YALI_AGNES_API_KEY = "..."

也可以在启动 Harness 的环境中设置同名变量。插件会在每次生成时通过 Harness 凭据服务解析密钥,因此在设置页保存或更新密钥后无需重装插件。默认接口地址为 https://api.yaliai.com。密钥引用名称、接口地址、默认模型、规格、质量、超分参数、输出目录和异步超时均可通过安装后的 Profile 配置修改。

使用方式

在 DeepSeek Harness 中直接让 Agent 调用 generate_image,例如:

请使用 generate_image 生成一张 16:9、4K 的电影感夜间图书馆,暖色台灯照亮书桌。

常用参数:prompt(必填)、model、aspect_ratio、image_size、quality、reference_image_paths、reference_image_urls、output_name。generation_mode: "upscale" 会先生成基础图像,再由 upscale_model 完成第二阶段超分。默认输出目录为 ./generated/yali-images。

Related plugins

More verified plugins in vision-media.

Tool Describe Image@linxin666/dsh-tool-describe-imageModel-facing describe_image tool for the dsh web GUI: gives a text-only model image understanding by asking a vision-language model at an OpenAI-compatible endpoint to describe one image (local path, http(s) URL, or attachment reference). Hot-pluggable — Modlens@liustack/modlensPlug-in vision for text-only LLMs, powered by the free Antigravity CLIVision Routerdsh-vision-routerEyes for text-only DeepSeek Harness agents: built-in free vision chain (no key) + pixel-level vision tools (Q&A, grounding, crop, pixel diff, colors, OCR, SVG trace, cutout, screenshots). One-command install, no Python, image turns work like ordinary toolDeepseek Ivideodeepseek-ivideoiPolloWork HyperFrames Video Studio and 27 editable video templates as a native DeepSeek Harness conversation view.