agnes-ai-skill

Agnes AI multimodal invocation skill: use this skill when you want to call Agnes AI (agnes-ai.com, Sapiens AI) via its OpenAI-compatible API for multimodal generation, supporting text generation, image generation, and video generation. Trigger examples include requests like 'use Agnes to generate copy/images/videos' or any task requiring Agnes AI multimodal generation. Free to use: users provide their own AGNES_API_KEY.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "agnes-ai-skill" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-046572fef081c7530b3db5daa30b3ce0b75360d68f2e5eb34f94227c45a124a8. Verify the upstream source and version against https://skillhub.cn/skills/user_d0c0b7f4/agnes-ai-skill before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Agnes AI multimodal invocation skill: use this skill when you want to call Agnes AI (agnes-ai.com, Sapiens AI) via its OpenAI-compatible API for multimodal generation, supporting text generation, image generation, and video generation. Trigger examples include requests like 'use Agnes to generate copy/images/videos' or any task requiring Agnes AI multimodal generation. Free to use: users provide their own AGNES_API_KEY.

0 Downloads

Introduction source: third_party · user_d0c0b7f4 · 1.1.3 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Software, accounts and paid services
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: agnes-ai-skill
slug: agnes-ai-skill
displayName: "Agnes AI 多模态生成"
description: "Use this skill when the user wants to call Agnes AI (agnes-ai.com, Sapiens AI) for multimodal generation via its OpenAI-compatible API: text generation (文生文), image generation (文生图), and video generation (文生视频). Trigger on requests like 用 Agnes 生成文案/图片/视频、调用 Agnes 文生图/文生视频,或任何需要 Agnes AI 多模态生成(text/image/video)的任务。 Free to use: users provide their own AGNES_API_KEY. See skillhub.json for category and details."
version: "1.1.3"
author: "joysinleung"
homepage: "https://github.com/joysinleung/agnes-ai-skill"
agent_created: true

Agnes AI 多模态接入

Overview

Agnes AI 提供 OpenAI 兼容的多模态 API(Base URL https://apihub.agnes-ai.com/v1), 统一支持三种生成能力:文生文、文生图、文生视频。本 skill 自带零依赖的 Python 客户端 scripts/agnes_client.py(仅用标准库 urllib,无需 pip 安装),把三种 能力封装为统一命令行入口。

本版本为免费版:用户自备 AGNES_API_KEY,免费安装、免费使用,不收取任何中间费用。

前置条件

  • Python 3(系统自带即可,无需虚拟环境)。
  • 需设置环境变量 AGNES_API_KEY(用户的 Agnes API Key)。不要把 Key 写死进文件或提交到仓库。
  • 尚无 Key 的用户:前往 platform.agnes-ai.com 免费注册,在控制台 API Keys 页面创建(形如 sk-xxx)。

快速开始

export AGNES_API_KEY="sk-xxx"

# 文生文
python3 scripts/agnes_client.py text "用一句话介绍 Agnes AI" -m 200

# 文生图(同步,自动下载图片)
python3 scripts/agnes_client.py image "一只金毛幼犬在阳光草地上玩耍" -o out.png

# 文生视频(异步任务,自动轮询并下载 mp4)
python3 scripts/agnes_client.py video "一只金毛幼犬在草地上奔跑" -o out.mp4 --duration 5

✅ 完成判据:脚本打印资源直链或下载到 -o 路径的目标文件且文件存在 = 生成成功;无输出路径或 stderr 报错 = 失败,需看报错信息(常见:AGNES_API_KEY 缺失、429 限频)。

三种能力说明

1. 文生文(text)

  • 接口:POST /v1/chat/completions(标准 OpenAI 格式)
  • 默认模型:agnes-2.0-flash(另可选 agnes-1.5-flash)
  • 客户端选项:-s/--system 系统提示,-m/--max-tokens 上限
  • 输出直接打印回复文本,并显示消耗 tokens

2. 文生图(image)

  • 接口:POST /v1/images/generations(同步)
  • 默认模型:agnes-image-2.1-flash(另可选 agnes-image-2.0-flash)
  • 返回 data[].url 图片直链,客户端自动下载到 -o 指定路径
  • 请求参数支持 size(如 1024x1024)、n

3. 文生视频(video)

  • 接口:POST /v1/videos(异步任务,注意不要误用 /v1/videos/generations)
  • 默认模型:agnes-video-v2.0
  • 返回 task_id → 轮询 GET /v1/videos/{task_id} 直到 status=="completed" → metadata.url 视频直链,客户端自动下载
  • 重要限频:视频生成 1 次/分钟,超限返回 429 {"code":"rate_limit_exceeded"};若需连续生成多段视频,每次间隔 ≥ 60 秒

完整 API 细节

详见 references/api_reference.md(模型列表、各接口请求/响应字段、错误码、分辨率自动映射规则)。

资源

  • scripts/agnes_client.py — 零依赖命令行客户端,支持 text/image/video 三个子命令
  • references/api_reference.md — 完整 API 参考(端点、模型、参数、限频、错误码)
  • skillhub.json — SkillHub 上架元信息(分类、标签)
  • examples/demo.md — 作品案例(AURORA 极光品牌全案)

Current listing version

1.1.3

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value78/100

Highlights

  • 提供 Agnes AI 多模态生成能力(文生文/图/视频),解决用户明确的生成需求
  • 免费版设计,用户自备 API Key,无中间费用
Trigger Precision92/100

Highlights

  • 触发词覆盖全面,包括多种语言和场景变体
  • 边界清晰,无明显歧义
Structure and Standards95/100

Highlights

  • 结构清晰,包含完整的使用流程和示例
  • frontmatter 完整,文档规范
Execution Reliability90/100

Areas to improve

  • 引用文件缺失 Reported severity: Minor

    SKILL.md 引用了 references/api_reference.md 但未传入

    Recommendation: 请补充 references/api_reference.md 文件或移除相关引用

Evidence Verifiability (mean of the first four)89/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Accounts, secrets or authorization

    Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.

    Mentioned in main document · lines 26
Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • apihub.agnes-ai.com
  • github.com
  • platform.agnes-ai.com

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Translation pending; see source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.