LittleBeaverStudio/agnes-media

LittleBeaverStudio★ 0JavaScript最后同步: 2026-08-21

在 GitHub 打开

Registers generate_image and generate_video tools for Agnes AI media models in DeepSeek Harness.

README 摘要

agnes-media A DeepSeek Harness (dsh) plugin that registers two host tools for the Agnes AI media models, so the agent can generate images and videos during a conversation. 🌟 功能特性 - 文生图 :使用 agnes-image-2.1-flash 模型生成高质量图片 - 文生视频 :使用 agnes-video-v2.0 模型生成短视频(最多 18 秒) - 免费无限 :Agnes AI 提供永久免费的 API 调用 - 双端点支持 :自动适配中国大陆和国际节点 - 零依赖 :仅使用 Node.js 内置模块,无需额外安装 ⚠️ 获取 API Key(重要!) 平台地址 地区 URL 中国大陆 platform.agnes-ai.cn 国际 platform.agnes-ai.com 两个平台使用同一个 API Key — 只需要切换端点 URL。 获取步骤 1. 登录与你所在地区匹配的平台 2. 进入 设置 → API 密钥 (Settings → API Keys) 3. 点击 "创建新密钥" (Create New Key) 4. 重要 :密钥只显示一次!立即复制保存! 5. 密钥格式为 sk-xxxxxxxx... (以 sk- 开头,约 50+ 字符) 常见问题:401 错误("无效的令牌") 如果你遇到 401 错误: 检查项 解决方案 复制完整? 确保完整复制 sk-... 字符串,不要截断 多余空格/换行? 去除首尾空格 — 确保没有多余空格 Key 已删除? 去设置 → API 密钥检查 Key 是否还存在 用错 Key? 创建新 Key 并重新测试 区域不匹配? .cn Key 用于 .cn 端点, .com Key 用于 .com 端点 手动测试你的 Key 如果返回模型数据,说明 Key 有效;如果返回 {"error":{"message":"无效的令牌"...}} ,请重新生成 Key。 ⚠️ API Key 与端点选择 获取你的 API Key 1. 在 Agnes AI 平台 (国内节点)或 国际节点 注册 - 中国大陆用户 :使用 .cn 平台 — 速度更快,无需代理 - 海外用户 :使用 .com 平台 2. 在控制台设置 → API 密钥中创建 API Key 3. 同一个 Key 在 .cn 和 .com 节点都可用 选择合适的端点 默认情况下,插件连接 国际节点 ( api.agnes-ai.com )。 如果你… 这样做 在中国大陆 启动 DSH 前设置 AGNES MEDIA DOMAIN=cn 使用国内节点( api.agnes-ai.c…

在 GitHub 查看完整 README →
工具/开发deepseek-harnessdshdsh-plugindsh-plugin-marketimage-generationvideo-generationagent

分类