Agnes Ai Modelsのロゴ

Agnes Ai Models

組織
AgnesAI-Labs
agnes-ai-models

Agnes AI model integration skill for OpenAI-compatible text, image, video, and agent workflows. Use when Codex needs to configure Agnes AI API access, select or document Agnes models including agnes-2.5-flash, agnes-image-2.5-flash, agnes-video-2.5, and agnes-video-2.5-flash, write Python/Node/curl examples, debug common API errors, poll video results with video_id, adapt OpenAI-compatible clients to the Agnes API gateway, or prepare guidance for other agent software such as OpenClaw, Hermes, Manus, and custom agents.

概要

公開者AgnesAI-Labs
リポジトリskills
スキル名agnes-ai-models
スター
69
フォーク
12
同梱ファイル
5
リンク
  • Markdown形式の指示

    モデルが必要に応じて読み込むSKILL.mdファイルです。関連するリクエストがあったときだけトークンを消費します。

  • どのLLMでも利用可能

    AIスキルはプロバイダー固有のコードではなく、通常のMarkdownなので、GPT、Claude、Gemini、Grok、ローカルモデルで利用できます。

  • 5個の同梱ファイル

    モデルが作業中に読み取れるスクリプト、テンプレート、参考資料です。ファイルは読み取り専用で、実行されることはありません。

  • オープンソース

    AgnesAI-LabsがGitHubで公開しています。インストールする前にソースを確認してください。

インストール

AIスキル「Agnes Ai Models」をTypingMindにインストールすれば、どのLLMでも利用できます。SKILL.mdを読み取れる別のAIエージェントに追加することもできます。

1

TypingMindにインストール

TypingMindはGitHubフォルダから直接スキルをインストールします。SKILL.mdを読み取り、リソースファイルをまとめてローカルに保存します。

  1. アプリを開き、「プラグイン」→「スキル」に移動します。
  2. 「GitHubからインストール」を選択します。
  3. 以下のスキルフォルダのURLを貼り付けて確定します。
    https://github.com/AgnesAI-Labs/skills/tree/main/agnes-ai-models
  4. スキルを利用したいチャットごとに、そのスキルを有効にしてください。
「プラグイン」→「スキル」→「スキルを追加」→「GitHubのURLから」を選択し、フォルダのURLを貼り付けて「続行」を押します。
2

別のAIエージェントにインストール

Agent Skills形式を読み取れるAIエージェントなら、このスキルを利用できます。フォルダをそのAIエージェントのスキルディレクトリにコピーしてください。

Claude Code — .claude/skills
git clone --depth 1 https://github.com/AgnesAI-Labs/skills.git /tmp/skills
mkdir -p .claude/skills
cp -r /tmp/skills/agnes-ai-models .claude/skills/agnes-ai-models
コピー後、新しいスキルを読み込むためにClaude Codeを再起動してください。

TypingMindで使用

TypingMindのチャットでAgnes Ai Modelsを有効にするだけで、あとはモデルが対応します。名前と説明がシステムプロンプトに含まれ、関連するリクエストがあると、モデルが指示の全文を自動で読み込みます。手動で呼び出す必要はなく、実際に使用されるまでトークンを消費しません。

関連するリクエストがあるとすぐに、モデルが自動的にAgnes Ai Modelsを読み込みます。

どのAIモデルでも利用可能

AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、Agnes Ai Modelsは作成時に想定されたモデルに縛られません。TypingMindに一度インストールすれば、ご自身のAPIキーを使って、GPT-5、Claude、Gemini、Grok、DeepSeek、Mistral、Llama、またはご自身で実行するローカルモデルで利用できます。

  • 必要なときだけ読み込み

    システムプロンプトには名前と説明だけが含まれます。関連するリクエストが初めてあったときに指示を取得するため、スキルを使わない間は指示の読み込みにトークンを消費しません。

  • チャットの途中でモデルを切り替え

    スキルはコードではなく指示なので、モデルを切り替えてもそのまま使えます。次のモデルも同じSKILL.mdを読み込みます。

スキルの指示

モデルが読み込むSKILL.mdの内容です。スキルはモデルが従う指示なので、インストールする前に確認してください。

Agnes AI Models

Use this skill to help developers integrate Agnes AI models through the OpenAI-compatible API gateway.

Users must register at https://platform.agnes-ai.com/ and apply for an API key before making requests. Never invent, expose, or ask the user to paste secrets into public files.

Core Defaults

  • API base URL: https://apihub.agnes-ai.com/v1
  • Optional base URL override: AGNES_BASE_URL
  • API key env var: AGNES_API_KEY
  • Auth header: Authorization: Bearer $AGNES_API_KEY
  • Official docs: https://agnes-ai.com/en/docs/overview
  • Platform: https://platform.agnes-ai.com/

Regional Endpoint Routing

Choose the service route before configuring a client. Do not automatically rotate an API key across services after an authentication or quota error.

Service routeBase URLWhen to use it
International service (primary)https://apihub.agnes-ai.com/v1Default route for the international service
International service (alternate)https://apihub.agnes-ai.cn/v1Only when the primary route has a network, DNS, TLS, or connection-timeout failure
China servicehttps://api.agnes-ai.cn/v1Use for the China service

If the base URL cannot connect, confirm /v1 is present, identify the intended service, and test at most one minimal alternate-route request. Do not switch routes to solve 400, 401, 403, 422, or 429 responses.

Model Selection

Use these defaults unless the user specifies a different model:

WorkflowModelEndpoint
Chat, coding, reasoning, tools, streaming, vision inputagnes-2.5-flashPOST /v1/chat/completions
Image generation, editing, and multi-image compositionagnes-image-2.5-flashPOST /v1/images/generations
Text-to-video, keyframes, and multimodal referencesagnes-video-2.5POST /v1/videos
Fast 720P text-to-video and reference generationagnes-video-2.5-flashPOST /v1/videos

For detailed model notes, read references/model_catalog.md.

For OpenClaw, Hermes, Manus, or other non-Codex agent setup, read references/agent_compatibility.md.

Integration Workflow

  1. Confirm the user has an Agnes Platform account and API key for the selected service.
  2. Store the key in AGNES_API_KEY; do not hardcode it.
  3. Set AGNES_BASE_URL when using an alternate or China route.
  4. Use the OpenAI SDK when the workflow is chat or image generation.
  5. Use direct HTTP requests for video creation and polling if the SDK does not expose the video endpoint.
  6. For image-to-image or multi-image requests, pass input images in extra_body.image (public URLs or Data URI Base64). Put response_format in extra_body, not at the top level.
  7. For video results, always poll with the returned video_id and the model name:
text
GET https://apihub.agnes-ai.com/agnesapi?video_id=<VIDEO_ID>&model_name=<MODEL_ID>
  1. Treat the video response's top-level status and url as the source of truth. Stop on completed or failed; use backoff for 429 responses.
  2. Add retries with exponential backoff for 408, 429, 500, 502, 503, 504, 520, 522, and 524.
  3. When writing public docs or examples, state that limits and model availability may change and users should confirm production-critical values in official docs or the platform console.

Image Generation Pattern

python
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["AGNES_API_KEY"],
    base_url=os.getenv("AGNES_BASE_URL", "https://apihub.agnes-ai.com/v1"),
)

result = client.images.generate(
    model="agnes-image-2.5-flash",
    prompt="A cinematic product hero image for a desktop monitor wallpaper",
    size="2K",
    extra_body={"ratio": "16:9", "response_format": "url"},
)
print(result.data[0].url)

Use size tiers 1K, 2K, 3K, or 4K with a supported ratio. For image-to-image and multi-image composition, add extra_body={"image": ["<PUBLIC_URL_OR_DATA_URI>"]}. Do not add a legacy tags field.

Video Generation Pattern

Create a video with agnes-video-2.5 or agnes-video-2.5-flash at POST /v1/videos, then poll /agnesapi with both video_id and model_name. The base model supports 720P, 1080P, 1K, and 2K; Flash is limited to 720P and does not accept reference videos.

Minimal Python Pattern

python
import os
from openai import OpenAI

client = OpenAI(
    api_key=os.environ["AGNES_API_KEY"],
    base_url=os.getenv("AGNES_BASE_URL", "https://apihub.agnes-ai.com/v1"),
)

response = client.chat.completions.create(
    model="agnes-2.5-flash",
    messages=[{"role": "user", "content": "Write a short intro to Agnes AI."}],
    stream=True,
)

for chunk in response:
    delta = chunk.choices[0].delta.content
    if delta:
        print(delta, end="")

Debugging

For common errors, read references/troubleshooting.md.

Required issue/debug fields:

  • model
  • endpoint
  • SDK or client
  • sanitized request body
  • timestamp and request ID if available
  • status code and response body
  • expected behavior
  • actual behavior

Never include API keys, bearer tokens, private logs, or customer data.

Optional Smoke Test

Use scripts/smoke_chat.py to test whether AGNES_API_KEY and the chat endpoint are configured correctly:

bash
python scripts/smoke_chat.py

同梱ファイル

スキルが読み込まれている間、モデルは必要に応じてこれらを読み取ります。読み取り可能なファイルとして提供され、実行されることはありません。

よくある質問

AIスキル「Agnes Ai Models」では何ができますか?

Agnes AI model integration skill for OpenAI-compatible text, image, video, and agent workflows. Use when Codex needs to configure Agnes AI API access, select or document Agnes models including agnes-2.5-flash, agnes-image-2.5-flash, agnes-video-2.5, and agnes-video-2.5-flash, write Python/Node/curl examples, debug common API errors, poll video results with video_id, adapt OpenAI-compatible clients to the Agnes API gateway, or prepare guidance for other agent software such as OpenClaw, Hermes, Manus, and custom agents.

TypingMindでAgnes Ai Modelsを使うメリットは何ですか?

一度インストールすれば、どのモデルでも使えるからです。Agnes Ai Modelsはプロバイダー固有のコードではなく、通常のMarkdownで記述されているため、同じスキルをGPT-5、Claude、Gemini、Grok、ローカルモデルで利用できます。チャットの途中でモデルを切り替えても、そのまま使い続けられます。TypingMindは自分のAPIキーで動作するため、シート単位のサブスクリプションではなく、プロバイダーに直接料金を支払います。スキルとチャットは自分のストレージに保持されます。

TypingMindにAgnes Ai Modelsをインストールするにはどうすればよいですか?

TypingMindで「プラグイン」→「スキル」→「GitHubからインストール」を開き、https://github.com/AgnesAI-Labs/skills/tree/main/agnes-ai-modelsを貼り付けてください。TypingMindがSKILL.mdを読み込み、関連ファイルをまとめて、チャットごとに有効にできるスキルとしてインストールします。

Agnes Ai Modelsを使えるAIモデルはどれですか?

TypingMindに接続したどのモデルでも利用できます。AIスキルはプロバイダー固有のコードではなく、通常のMarkdownで書かれた指示です。そのため、GPT、Claude、Gemini、Grok、ローカルモデルのいずれも、リクエストの内容がこのスキルの用途に合ったときに、このスキルを読み込めます。

Agnes Ai Modelsで使えるAIモデルの数に制限はありますか?

数に制限はありません。スキルに対応したモデルであれば、GPT、Claude、Gemini、Grok、DeepSeek、Mistral、Llamaなど、どのモデルでもAgnes Ai Modelsを利用できます。すべてTypingMind上で、自分のAPIキーを使って利用できます。

AIスキル「Agnes Ai Models」は無料ですか?

AgnesAI-LabsがGitHubで公開しています。ライセンス条件はリポジトリでご確認ください。ご利用のAIプロバイダーに支払うのは、使用したトークンの料金だけです。

AIスキルとは何ですか?

AIスキルは、特定のタスクの実行方法をAIモデルに教える、再利用可能な指示のセットです。オープンなAgent Skills形式に従い、名前と説明を含むSKILL.mdファイルに加え、モデルが必要とするスクリプト、テンプレート、参照ファイルで構成されます。モデルはリクエストがスキルに合致したときだけ指示を読み込むため、インストール済みのスキルも、使うまでは費用がかかりません。

AIスキルは、プラグインやMCPサーバーとどう違いますか?

プラグインやMCPサーバーは、モデルが呼び出せる新しいツールを提供します。ツールとは、どこかで実行され、結果を返すコードです。一方、AIスキルは、タスクへの取り組み方、従うべき手順、望ましい出力の例といった知識や進め方をモデルに伝えます。スキルは通常のMarkdownで記述されているため、サーバー、APIキー、実行環境は不要で、どのモデルでも利用できます。

すべて見る

今すぐ自分専用のAIワークスペースを作成

ニュースレターに登録すると、新機能や今後のプレゼント企画のお知らせが届きます👇