agnes-multimodal

agnes-multimodal is a skill for Claude Code from DuanZGit/D-Hub. It costs 144 tokens per session (1,038 once invoked), scanned A, original, MIT.

A media-generation route for the Agnes service, covering image generation through the agent's image interface and video generation through a command-line tool. It supports text prompts and image-based inputs as documented.

In plain words
What is it for?
Creating images from text or reference images, and creating short videos from prompts, images, or other documented references.
Why use it?
It tells the agent which supported path to use for Agnes images and videos, avoiding unsupported model or tool routes.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter.

Good fit Creating images from text or reference images, and creating short videos from prompts, images, or other documented references.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/duanzgit/d-hub/agnes-multimodal
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add DuanZGit/D-Hub --skill agnes-multimodal
Clone the repo
git clone --depth 1 https://github.com/DuanZGit/D-Hub

Made for: Claude Code.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agnes-multimodal

README.md
[![agentmods](https://agentmods.dev/badge/skills/duanzgit/d-hub/agnes-multimodal/github.svg)](https://agentmods.dev/skills/duanzgit/d-hub/agnes-multimodal)
Your own site
<a href="https://agentmods.dev/skills/duanzgit/d-hub/agnes-multimodal"><img src="https://agentmods.dev/badge/skills/duanzgit/d-hub/agnes-multimodal/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for agnes-multimodal

Your own site · 80×15
<a href="https://agentmods.dev/skills/duanzgit/d-hub/agnes-multimodal"><img src="https://agentmods.dev/badge/skills/duanzgit/d-hub/agnes-multimodal.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 144 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,038 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00144 $0.01038
Opus 5.5 $0.00058 $0.00415
Sonnet 5.5 $0.00029 $0.00208
Haiku 4.5 $0.00014 $0.00104

Measured 26d ago against content hash e1c2f48d1974, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

agnes-multimodal scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 26d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/agnes-multimodal/SKILL.md · 55 lines

What it actually says

Agnes 多模态(图像 + 视频)

图像(pi 原生入口,优先)

扩展 ~/.pi/agent/extensions/agnes-media 把 Agnes/agnes-image-2.5-flash 注册进 image 模型目录。 任何会话的 codemode 里直接调(默认已开 +codemode):

const painter = await models.getModelOfType("image", "Agnes", "agnes-image-2.5-flash");
const result = await models.generateImages(painter, {
  input: [
    { type: "text", text: "一只在沙发上打盹的橘猫,水彩风格,1K" },
    // 图生图/多参考帧:加 { type: "image", data: "<base64>", mimeType: "image/png" }
  ],
});
if (result.stopReason === "error") { console.log(result.errorMessage); }
for (const block of result.output) {
  if (block.type === "image") image(block); // 结果名会带临时文件路径
}
  • 出图尺寸档位:改扩展里 model.extraParams.size(1K/2K/3K/4K),不传默认 1K
  • key 自动走 ~/.agents-env/get-key.sh PI_AGNES_API_KEY(和 models.json 的 Agnes chat 同源)
  • 当前免费期;定价 1K/2K/3K/4K 档 ¥70/100/140/160 每千张

视频(CLI,走限时免费模型)

pi 的模型目录没有 video 类型,视频走 CLI。CLI 固定用 agnes-video-2.5-flash:限时免费 ¥0/秒,仅 720P(付费版 agnes-video-2.5 不碰;用户要求只用免费通道)。建任务→轮询→下载 mp4:

~/.pi/agent/bin/agnes-video "海浪拍打礁石,低角度慢镜头" \
  --seconds 5 --size 720P --aspect 16:9 --out ~/Videos
# 图生视频:加 --i2i <首帧URL>(可配 --i2i-end <尾帧URL>)
# 参考模式:--ref <图/音频/视频URL> 可多次;--v2v <视频URL>(可配 --audio)
# 成功 stdout 一行本地 mp4 路径;--json 输出 {video_id, path}
  • 时长 4–12s;免费 flash 仅 720P(传其它档位 CLI 直接报错)
  • 队列满时服务端返 503 video_queue_full,稍后重试即可,不是配置问题
  • 长任务:生成要几分钟,用 bg_run 跑,别用同步 bash 卡住
  • 轮询文档:GET https://api.agnes-ai.cn/agnesapi?video_id=X&model_name=agnes-video-2.5-flash

出片后

  • 图片/视频结果路径打给用户(可点链接,绝对路径)
  • 免费期间视频也不用为花钱确认,图像同样免费
  • 生图模型 agnes-image-2.5-flash 免费期;agnes-3.0-flash 是纯对话模型,不出图不出片
  • agnes-3.0-flash 能看图,但必须走 /v1/chat/completions(api 类型 openai-completions):/v1/responses 和 /v1/messages 两个入口的图片转换是坏的,带图必 400(2026-10-09 实测,报错里图片变成 {'type':'unknown'});models.json + agnes-media 扩展里该模型的 api 已固定为 openai-completions,改回去就会复爆
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 26d ago First seen · 55 lines · 144 tokens per session scan A e1c2f48d1974

Subscribe to this mod's changes

agnes-multimodal is a skill published in the GitHub repository DuanZGit/D-Hub (0 stars, last pushed yesterday), licensed MIT. It adds 144 tokens to every session and 1,038 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-10.

Related

agnes-multimodal compared with skills from other repositories

agnes-multimodal next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agnes-multimodalDuanZGit/D-HubSkill0yesterdayMITA144Claude Code
edgeone skill scannerTencent/AI-Infra-GuardSkill7.9k3d agoApache-2.0A148Claude Code, Codex
babysitkirodotdev/KiroCrewSkill5.2ktodayApache-2.0A45Claude Code
rubber-duckkirodotdev/KiroCrewSkill5.2ktodayApache-2.0A161Claude Code, Codex
project-wikiGeminiLight/MindOSSkill707yesterdayMITA63Claude Code, Codex
mindos-zhGeminiLight/MindOSSkill707yesterdayMITA490Claude Code
mindosGeminiLight/MindOSSkill707yesterdayMITA136Claude Code